Skip to content

Releases: google/playground-elements

v0.14.2

30 Sep 23:58

Choose a tag to compare

Changed

  • Updated bundled version of TypeScript to 4.4.3.
  • Internal refactoring of language service.

v0.14.1

21 Sep 16:41

Choose a tag to compare

Changed

  • GitHub org changed from PolymerLabs to google.

v0.14.0

21 Sep 16:41
27b4346

Choose a tag to compare

Changed

  • Upgrade to Lit 2.0.
  • TypeScript files are now compiled incrementally for improved performance

v0.13.0

14 Sep 18:33
e5cb846

Choose a tag to compare

Changed

  • Node package exports
    are now supported when resolving dependency modules.

    The module, import, and development
    conditions
    are enabled.

    Note this change should not theoretically be BREAKING, but this release is
    versioned with a major increment because there a risk of breakage in practice
    due to misconfigured package.json files, differences between prod and
    dev modes, etc.

Added

  • Added modified property to <playground-project> and <playground-ide>
    which indicates whether the user has modified, added, or removed any project
    files. Resets whenever a new project is loaded.

v0.12.1

26 Aug 21:38
ce3e12e

Choose a tag to compare

Changed

  • If a file is marked hidden, and the user creates a new file by that name,
    the file will become visible and editable.

v0.12.0

18 Aug 00:35
8940339

Choose a tag to compare

Fixed

  • Fixes duplicate module errors by canonicalizing all import specifiers. Import
    specifiers are now canonicalized by version number and default module. This
    applies both to local project files, and throughout the entire external
    dependency tree.

  • Import maps now apply to modules in external dependencies, not just to local
    project files.

  • The TypeScript compiler can now deal with multiple versions of the same
    dependency. Previously, if the import graph included two versions of the same
    package, only one arbitrary version of the types would be compiled. This
    caused various errors and missing type issues.

Changed

  • If the project contains a package.json file, then its
    dependencies
    field will be used to determine the version of dependencies (just like how NPM
    works locally).

  • Dependencies are now served from the special
    "<service-worker-scope>/node_modules/..." path, instead of directly from
    https://unpkg.com/...?module URLs. Behind-the-scenes, dependencies are still
    fetched from unpkg, but they are now themselves transformed to ensure correct
    specifier canonicalization.

  • BREAKING Due to large changes to the way dependencies are handled, there
    is some risk of breakage due to subtle behavior changes that existing
    configurations may be relying on. Therefore, this release is versioned with a
    major increment.

v0.11.1

10 Aug 00:05

Choose a tag to compare

Added

  • Added MIME-type detection for the following project file extensions: gif,
    ico, jpeg, jpg, mid, midi, mp3, png, svg, weba, webm,
    webp.

v0.11.0

28 Jul 20:29
13e6bf9

Choose a tag to compare

Fixed

  • Playgrounds now ensure that the service worker they are connected to have a
    matching version. Fixes issues relating to playgrounds being broken for some
    time after an upgrade.

  • The --playground-tab-bar-font-size CSS custom property now behaves as
    documented, and defaults to 14px.

  • The --playground-floating-controls-color CSS custom property now behaves as
    documented.

  • Fix missing .js extension from import in build.js that may have broken
    Webpack and other builds.

  • The hover effect and touch area for tabs in the tab bar are no longer offset
    by the height of the active tab indicator.

  • Fix bug that caused failures to load d.ts files and "Could not resolve
    module specifier" console errors when using import maps.

Changed

  • BREAKING playground-base-url is now resolved relative to the
    import.meta.url of the module containing the definition of
    <playground-project>, instead of relative to document.location.href as
    before. This means that . can now be used to refer to the local playground
    installation directory.

  • The service worker now sets the Origin-Agent-Cluster: ?1 heading on all
    responses, to encourage browsers to allocate a separate process or thread for
    Playground preview iframe under certain conditions. See the Process
    isolation

    section of the README for more details.

  • It is now possible to change the font-family of the tab-bar using a
    ::part(tab-bar) selector.

v0.10.1

14 Jul 23:11
ea5758c

Choose a tag to compare

Changed

  • Bumped MWC dependency versions.

v0.10.0

01 Jul 16:24
0756433

Choose a tag to compare

Added

  • Adds --playground-code-padding and --playground-code-line-padding for
    configuring code editor padding.

  • Bare module specifiers are now transformed in dynamic import() statements.

Changed

  • BREAKING The src/ directory is no longer published to NPM.

  • BREAKING .js files are no longer compiled by TypeScript, so they cannot
    contain types, decorators, or other TypeScript-specific syntax.

  • Previews will now begin loading immediately, instead of waiting for
    compilation to completely finish, and each .js file is served as it
    compiles.