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