WebC v0.12.0-beta.1
Pre-release
Pre-release
- Breaking: Node minimum 18+
- Breaking:
export defaultis now required when usingwebc:type="js"andwebc:type="render"and drops support for CommonJSmodule.exports. See more examples at #229 (notably, this change also aliaseswebc:type="render"towebc:type="js"and they have the same code path now) - Breaking: ESM
exportkeyword is now required inwebc:setupfor anything you want to use inside the component (no more implicit globals). Implicit globals from the data cascade are not available here (use$data.*instead)- Fix for leaking page context across multiple instances of components using
webc:setupnodes #174 This means stale access topageis no longer available inwebc:setup
- Fix for leaking page context across multiple instances of components using
- Adds ESM support (including
import, thoughrequireis also still available) towebc:setup,webc:type="js", andwebc:type="render". Swapped to useimport-module-stringinstead ofnode-retrieve-globalsin #229 #226 #225 - Fix to
@attributesandwebc.renderAttributesto preserve original attribute names (fixes dashes being stripped) #163 #202, #178, #216 - Fix to
webc:forto preserve variable context on nested loops #175 - Fix to
webc:forto work withSetandMap(or anything that isArray.from-friendly) #179 - Fix double-escaping bug with HTML entities inside
<style>content assigned via@rawand@html#208 - Tests added for
webc:ifshort-circuit to skip dynamic attribute evaluation #191 - Fix bug with
webc:ifon multiple subsquent void sibling elements #217 - Adds links in npm config by @nichoth in #223
- Use
node:protocol in imports by @Zearin in #168 - Fix npm audit in
nanoiddependency #218 - Fix
slots.textstill referencing the wrong component #165
Major version dependency upgrades:
| Name | Version | Changelog | Notable |
|---|---|---|---|
| css-tree | ^2.3.1 → ^3.1.0 | Changelog | CSS support changes |
| dependency-graph | ^0.11.0 → ^1.0.0 | Changelog | Internals only |
| entities | ^4.5.0 → ^6.0.1 | Changelog and Changelog | Deep import file locations moved |
| nanoid | ^4.0.2 → ^5.1.5 | Changelog | Node 18+ |
| parse5 | ^7.3.0 → ^8.0.0 | Changelog | ESM-only |
Milestone: https://github.com/11ty/webc/milestone/23?closed=1
Full Changelog: v0.11.4...v0.12.0-beta.1