Skip to content

Releases: google/playground-elements

v0.14.6

21 Oct 17:00
a431eb5
Compare
Choose a tag to compare

Fixed

  • Fixed bug where files could not be deleted or renamed using MWC v0.25.2 or above.

v0.14.5

07 Oct 22:38
a66ce2f
Compare
Choose a tag to compare

Fixed

v0.14.4

07 Oct 01:49
6d5b391
Compare
Choose a tag to compare

Fixed

  • Fixed positioning of overlay that displays over previews when service workers
    are not available so that it is constrained to the preview, rather than the
    nearest containing positioned ancestor.

v0.14.3

07 Oct 00:33
cd4d1c0
Compare
Choose a tag to compare

Added

  • Added an overlay that will display over the preview when we detect that
    service workers are not available. One reason this can happen is using
    Playground in Firefox private browsing mode, which does not support service
    workers (https://bugzilla.mozilla.org/show_bug.cgi?id=1320796).

  • Added cursorPosition, cursorIndex, and tokenUnderCursor getters to
    <playground-code-editor>.

Changed

  • Upgraded dependencies, including CodeMirror.

Fixed

  • Fixed a bottleneck that prevented previews from loading until semantic
    TypeScript errors were computed. This should significantly improve the latency
    between updating a file and the new preview loading.

  • Fixed bug where parent window history entries were added every time the
    preview reloaded.

  • Improvements to service worker version updates:

    • The service worker will require less frequent updates going forward.
      Previously it needed updating for every playground-elements release. Now it
      only needs updating if the bytes of the service worker have changed between
      releases.

    • The default service worker scope has changed from
      <sandboxBaseUrl>/playground-project to
      <sandboxBaseUrl>/__playground_swfs_<serviceWorkerHash>. This should make service
      worker updates more reliable because old and new versions of service workers
      will no longer be in contention to control the same URLs.

    • Misc other small service worker robustness improvements, and additional
      logging to help debug future issues.

v0.14.2

30 Sep 23:58
Compare
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
Compare
Choose a tag to compare

Changed

  • GitHub org changed from PolymerLabs to google.

v0.14.0

21 Sep 16:41
27b4346
Compare
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
Compare
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
Compare
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
Compare
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.