Skip to content

v0.12.0

Compare
Choose a tag to compare
@thescientist13 thescientist13 released this 09 Mar 19:39
· 6 commits to master since this release

Overview

This release fixes and stabilizes the DOM shim loading to be more resilient in SSR environments, in addition to forking some of our dependencies to an ESM and more bundler friendly version.

Changelog

https://github.com/ProjectEvergreen/wcc/issues?q=label%3A0.12.0

  1. duplicate loads of the DOM shim leads to an infinite rendering issue
  2. registration of a custom element is being assumed when initializing a custom element
  3. vendor a bundle friendly and ESM compatible version of acorn-jsx
  4. adopt a bundle friendly and ESM compatible fork of escodegen

Breaking Changes

You won't require a JSON plugin (e.g. for Rollup) now that our fork of escodegen does not have a require call in it to read package.json for getting the version

Known Issues

  1. error for missing acorn-jsx package

Diff

$ git diff 0.11.0 0.12.0 --stat
 .npmrc            |   1 +
 package-lock.json | 739 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------
 package.json      |  13 +-
 rollup.config.js  |   6 +-
 src/dom-shim.js   |  20 ++-
 src/jsx-loader.js |   6 +-
 src/wcc.js        |   8 +-
 7 files changed, 560 insertions(+), 233 deletions(-)