












export default is now required when using webc:type="js" and webc:type="render" and drops support for CommonJS module.exports. See more examples at #229 (notably, this change also aliases webc:type="render" to webc:type="js" and they have the same code path now)export keyword is now required in webc:setup for 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)
webc:setup nodes #174 This means stale access to page is no longer available in webc:setupimport, though require is also still available) to webc:setup, webc:type="js", and webc:type="render". Swapped to use import-module-string instead of node-retrieve-globals in #229 #226 #225@attributes and webc.renderAttributes to preserve original attribute names (fixes dashes being stripped) #163 #202, #178, #216webc:for to preserve variable context on nested loops #175webc:for to work with Set and Map (or anything that is Array.from-friendly) #179<style> content assigned via @raw and @html #208webc:if short-circuit to skip dynamic attribute evaluation #191webc:if on multiple subsquent void sibling elements #217node: protocol in imports by @Zearin in #168nanoid dependency #218slots.text still referencing the wrong component #165Major 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
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。