Skip to content

v0.6.0

Compare
Choose a tag to compare
@thescientist13 thescientist13 released this 13 Aug 14:11
· 59 commits to master since this release

Overview

Introduces a new experimental feature supporting the use of JSX and render functions for your custom elements! Also made addEventListener a no-op, and other misc enhancements.

Changelog

https://github.com/ProjectEvergreen/wcc/issues?q=label%3Av0.6.0

  1. JSX for compiling to custom elements
  2. add support for addEventListener as a no-op
  3. mark entry point custom element when returning metadata
  4. assumed methods and members of custom element classes break the compiler

Breaking Changes

None

Known Issues

N / A

Diff

git diff 0.5.0 0.6.0 --stat
 .c8rc.json                                           |   2 +-
 .eslintrc.cjs                                        |   5 +-
 .github/workflows/ci-jsx-win.yml                     |  31 +++++
 .github/workflows/ci-jsx.yml                         |  34 +++++
 .github/workflows/ci-win.yml                         |   2 +-
 .github/workflows/ci.yml                             |   7 +-
 .gitignore                                           |   3 +-
 .mocharc.cjs                                         |   5 -
 docs/pages/docs.md                                   |  73 +++++++++-
 docs/pages/examples.md                               |   6 +-
 docs/pages/index.md                                  |   1 +
 package-lock.json                                    |  70 +++++-----
 package.json                                         |  15 ++-
 rollup.config.js                                     |   2 +
 src/dom-shim.js                                      | 113 ++++++++--------
 src/jsx-loader.js                                    | 273 ++++++++++++++++++++++++++++++++++++++
 src/wcc.js                                           |  46 +++++--
 test-jsx-loader.js                                   |  43 ++++++
 test/cases/empty/empty.spec.js                       |  34 +++++
 test/cases/empty/src/empty.js                        |   3 +
 test/cases/event-listener/event-listener.spec.js     |  34 +++++
 test/cases/event-listener/src/my-component.js        |  15 +++
 test/cases/jsx/jsx.spec.js                           |  87 ++++++++++++
 test/cases/jsx/src/badge.jsx                         |  41 ++++++
 test/cases/jsx/src/counter.jsx                       |  40 ++++++
 test/cases/metadata/metadata.spec.js                 |  14 ++
 test/cases/render-from-html/render-from-html.spec.js |   3 +
 27 files changed, 874 insertions(+), 128 deletions(-)