Releases: ProjectEvergreen/wcc
v0.15.0
Overview
This release introduces formal support for HTML (Light DOM) Web Components and fixing a bug for "top level" attributes not serializing and showing up as undefined
.
Changelog
https://github.com/ProjectEvergreen/wcc/issues?q=label%3A0.15.0
Breaking Changes
N / A
Known Issues
N / A
Diff
v0.14.0
Overview
This release introduces parsing support for TypeScript authored custom elements.
Changelog
https://github.com/ProjectEvergreen/wcc/issues?q=label%3A0.14.0
Breaking Changes
N / A
Known Issues
N / A
Diff
v0.13.0
Overview
This release introduces support for parsing Import Attributes syntax and and a basic no-op DOM shim for CSSStyleSheet
(Constructable Stylesheets).
Changelog
https://github.com/ProjectEvergreen/wcc/issues?q=label%3A0.13.0
- Import Attributes syntax parsing
- Support Constructable Stylesheets (CSS Modules) in DOM Shim
- WCC dropping query params when loading module URLs
Breaking Changes
N / A
Known Issues
N / A
Diff
$ git diff 0.12.1 0.13.0 --stat
.eslintrc.cjs | 10 +
.nvmrc | 2 +-
docs/pages/docs.md | 6 +-
docs/pages/index.md | 1 +
package-lock.json | 1398 +++++++++++++++++++++++++++++++++++++++++++++++++++++-
package.json | 13 +-
src/dom-shim.js | 12 +-
src/jsx-loader.js | 6 +-
src/wcc.js | 17 +-
test/cases/constructable-stylesheet/constructabe-stylesheet.spec.js | 38 ++
test/cases/constructable-stylesheet/src/components/header/header.js | 23 +
test/cases/constructable-stylesheet/src/pages/index.js | 10 +
test/cases/import-attributes/import-attributes.spec.js | 48 ++
test/cases/import-attributes/src/components/header/data.json | 3 +
test/cases/import-attributes/src/components/header/header.js | 17 +
test/cases/import-attributes/src/pages/index.js | 10 +
16 files changed, 1576 insertions(+), 38 deletions(-)
v0.12.1
Overview
This release fixes missing package reference coming out of the changes to adopt an ESM friendly version of acorn-jsx.
Changelog
https://github.com/ProjectEvergreen/wcc/issues?q=label%3A0.12.1
Breaking Changes
N / A
Known Issues
N / A
Diff
$ git diff 0.12.0 0.12.1 --stat
package.json | 2 +-
src/jsx-loader.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
v0.12.0
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
- duplicate loads of the DOM shim leads to an infinite rendering issue
- registration of a custom element is being assumed when initializing a custom element
- vendor a bundle friendly and ESM compatible version of acorn-jsx
- 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
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(-)
v0.11.0
Overview
This release fixes a bug in the DOM shim and some enhancements / fixes around JSX compilation.
For posterity there was also a good question issue raised around handling the browser warning - ["declarative Shadow DOM has not been enabled by includeShadowRoots"](declarative Shadow DOM has not been enabled by includeShadowRoots), for those curious.
Changelog
https://github.com/ProjectEvergreen/wcc/issues?q=label%3A0.11.0
HTMLTemplateElement
should not have aset innerHTML
method- leverage
getRootNode()
for referencing Shadow DOM based parent node reference in JSX output - JSX components not rendering into a declarative shadow root (e.g.
<template>
tag)
Breaking Changes
None
Known Issues
N / A
Diff
$ git diff 0.10.0 0.11.0 --stat
.github/workflows/ci-exp-win.yml | 2 +-
.github/workflows/ci-exp.yml | 2 +-
.github/workflows/ci-win.yml | 2 +-
.github/workflows/ci.yml | 2 +-
.github/workflows/master.yml | 28 ------
.gitignore | 3 +-
.github/CONTRIBUTING.md => CONTRIBUTING.md | 13 +--
docs/pages/docs.md | 32 +++++-
netlify.toml | 2 +-
package-lock.json | 228 +++++++++++++++++--------------------------
package.json | 15 +--
sandbox.js | 58 +++++++++++
sandbox/components/card.js | 43 ++++++++
sandbox/components/card.jsx | 54 ++++++++++
sandbox/components/counter-dsd.jsx | 30 ++++++
sandbox/components/counter.jsx | 27 +++++
sandbox/components/header.js | 11 +++
sandbox/components/header.jsx | 16 +++
sandbox/index.html | 142 +++++++++++++++++++++++++++
src/dom-shim.js | 24 ++---
src/jsx-loader.js | 37 ++++---
.../fixtures/attribute-changed-callback.txt | 0
.../fixtures/get-observed-attributes.txt | 0
.../jsx-inferred-obsevability.spec.js} | 2 +-
test/cases/{jsx-coarse-grained => jsx-inferred-observability}/src/counter.jsx | 0
test/cases/jsx-shadow-dom/jsx-shadow-dom.spec.js | 71 ++++++++++++++
test/cases/jsx-shadow-dom/src/heading.jsx | 27 +++++
test/cases/node-modules/src/components/events-list.js
v0.10.0
Overview
This release migrates WCC to use the spec compliant shadowrootmode
attribute. (instead of shadowroot
)
Changelog
https://github.com/ProjectEvergreen/wcc/issues?q=label%3A0.10.0
Breaking Changes
None
Known Issues
N / A
Diff
$ git diff 0.9.1 0.10.0 --stat
README.md | 2 +-
docs/pages/docs.md | 2 +-
docs/pages/index.md | 2 +-
package.json | 3 ++-
src/dom-shim.js | 2 +-
test/cases/attributes/attributes.spec.js | 4 ++--
test/cases/attributes/src/components/counter.js | 2 +-
test/cases/children-and-slots/children-and-slots.spec.js | 6 +++---
test/cases/custom-extension/custom-extension.spec.js | 4 ++--
test/cases/get-data/get-data.spec.js | 4 ++--
test/cases/get-data/src/components/counter.js | 2 +-
test/cases/nested-elements/nested-elements.spec.js | 10 +++++-----
test/cases/nested-elements/src/components/header.js | 2 +-
test/cases/render-from-html/render-from-html.spec.js | 4 ++--
test/cases/single-element/single-element.spec.js | 4 ++--
15 files changed, 27 insertions(+), 26 deletions(-)
v0.9.1
Overview
This release improves some of the log messaging related to WCC heuristics for detecting custom element definitions.
Changelog
https://github.com/ProjectEvergreen/wcc/issues?q=label%3A0.9.1
Breaking Changes
None
Known Issues
N / A
Diff
$ git diff 0.9.0 0.9.1 --stat
package.json | 2 +-
src/wcc.js | 34 +++++++++++++++++++---------------
test/cases/no-export/no-export.spec.js | 10 ++++++++--
3 files changed, 28 insertions(+), 18 deletions(-)
v0.9.0
Overview
This release introduces an option to pass "constructor props" renderToString
as part of a data loading strategy for frameworks.
Changelog
https://github.com/ProjectEvergreen/wcc/issues?q=label%3A0.9.0
Breaking Changes
None
Known Issues
N / A
Diff
$ git diff 0.8.0 0.9.0 --stat
.github/workflows/ci-exp-win.yml | 2 +-
.github/workflows/ci-exp.yml | 2 +-
.github/workflows/ci-win.yml | 2 +-
.github/workflows/ci.yml | 2 +-
docs/pages/docs.md | 70 +++++++++++++++++++++++++++++++++++++++--
package.json | 2 +-
src/wcc.js | 12 ++++---
test/cases/constructor-props/constructor-props.spec.js | 43 +++++++++++++++++++++++++
test/cases/constructor-props/src/index.js | 19 +++++++++++
9 files changed, 143 insertions(+), 11 deletions(-)
v0.8.0
Overview
This release introduces a feature for renderToString
to control how returned HTML is (or isn't wrapped).
Changelog
https://github.com/ProjectEvergreen/wcc/issues?q=label%3Av0.9.0
Breaking Changes
None
Known Issues
N / A
Diff
$ git diff 0.7.0 0.8.0 --stat
.eslintrc.cjs | 6 +-
.ls-lint.yml | 20 +++++
docs/pages/docs.md | 15 +++-
docs/pages/examples.md | 8 +-
docs/pages/index.md | 2 +-
package-lock.json | 170 ++++++++++++++++++++++++++++++++++-
package.json | 7 +-
src/jsx-loader.js | 8 +-
src/wcc.js | 6 +-
test-exp-loader.js | 12 ++-
test/cases/no-wrapping-entry-tag/no-wrapping-entry-tag.spec.js | 37 ++++++++
test/cases/no-wrapping-entry-tag/src/no-wrap.js | 27 ++++++
12 files changed, 296 insertions(+), 22 deletions(-)