WebC v0.9.0
⚠️ ⚠️ ⚠️ Breaking (risk: 3/5, likely requires changes): You must usewebc:root="override"
instead ofwebc:root webc:keep
to override the host component tag #112⚠️ ⚠️ Breaking (risk: 2/5):webc:raw
is no longer implied on<template>
and<noscript>
#105- ✅ Breaking (risk: 1/5): Using
webc:type="js"
now has an impliedwebc:is="template" webc:nokeep
to render child content as WebC HTML by default (override with your ownwebc:is
and/orwebc:keep
). Related Docs #91 - Breaking (risk: 0/5): Removes internal WebC
getComponentList
method to simplify code base, no longer needed for incremental WebC builds in Eleventy #113
Features
- New
<script webc:setup>
feature to use arbitrary JavaScript to export data for use in the component #109 - Support new
shadowrootmode
attribute to opt-out of asset bundling in Declarative Shadow DOM #108 - New
@attributes
feature to render an attributes object #114 - New
:@
prefix for dynamic properties (e.g.:@dynamic-property
) #94 #98 webc:ignore
will completely ignore a node (no processing or output) #110- Support :host() and :host-context() pseudo classes in
webc:scoped
by @Gyanreyer in #96
Fixes
- More Node.js
global
support inwebc:type="js"
#116, #99, #100 - Fix bug with component rendering mode with leading whitespace on page #115
- Fix for missing helpers in JavaScript Render Functions (
webc:type="js"
andwebc:type="render"
)
Full Milestone: https://github.com/11ty/webc/milestone/13?closed=1
Full Changelog: v0.8.0...v0.9.0