Releases: 11ty/webc
WebC v0.5.0
New features
this
is optional in Attributes, Props,@html
#35 #40 #41- Better error messaging for undefined props in
@html
by @NickColley in #17 #18 #21 - Resolve components in render functions and custom transforms by @kleinfreund in #33 #34
Fixes
- Fix asset bundling through
@html
(e.g. return a<script>
in your@html
prop) #16 - fix: slots not working in template components by @kleinfreund in #31 #32
- Fix: dynamic attributes example in README by @andybluntish in #38
- fix: not falling back to default slot content correctly by @kleinfreund in #42
Resources
- Full issue list on the milestone https://github.com/11ty/webc/milestone/5?closed=1 (14 closed)
- Commit log v0.4.5...v0.5.0
New Contributors
- @NickColley made their first contribution in #18
- @kleinfreund made their first contribution in #32
- @andybluntish made their first contribution in #38
WebC v0.4.5
Fixes bug that required values returned in @html
or dynamic attributes (prefixed with :
) to return string values. Non-string values threw weird errors. These are now converted to strings.
You could see this in the video https://www.youtube.com/watch?v=p0wDUK0Z5Nw where I used:
<output @html="'2'">
<output @html="`${this.value || 2}`">
The following now works as expected:
<output @html="2">
<output @html="this.value || 2">
WebC v0.4.4
- Adds new
uid
property available in components for use as an easy per-instanceid
attribute. #25 - Fix for
<!DOCTYPE html>
(doctype case sensitivity issue) #24 - Adds support for
webc:root webc:keep
to override the host component with a node inside the component definition. Also keeps scoped class and attributes from the host component around on the webc:root node. - Fixes bug with
script
andlink
in component definitions (they were being split between implicithead
andbody
internally)
Milestone: https://github.com/11ty/webc/milestone/4?closed=1
WebC v0.4.0
Defaults Bundler mode to disabled on WebC core. This means that assets will not be aggregated by default.
Re-enable with setBundlerMode
method:
let page = new WebC();
// This enables aggregation of CSS and JS
// As of 0.4.0+ this is disabled by default
page.setBundlerMode(true);
Notably, if you’re using the Eleventy WebC plugin, it does run with bundler mode enabled.
Docs updated: https://github.com/11ty/webc#javascript-api
WebC v0.3.4
We did a few quick releases in the 0.3.x and I’ll just bundle the release notes for those together (sorry!)
- Adds a global AST parsing cache
- A bunch of internals changes to support the Eleventy WebC plugin (and incremental builds—new
getComponentList
method) - Tweaks to default data available in Transforms (global data, attributes, component props)
- Adds asset bucketing to
getCSS
andgetJS
helpers - Swap to use dynamic attributes (full JS) instead of lookup attributes (lodash get)
- Fix to allow WebC to process an empty string as a page template
- Adds bundler mode (but is enabled by default in WebC)
- Fixes for escaped text content (e.g. text nodes with
<
and>
) and attributes
WebC v0.2.0
WebC is a framework-independent standalone HTML compiler for generating server rendered progressive-enhancement friendly markup for Web Components. Go to the README.
What's Changed
- Add support for
<script src>
and<link rel="stylesheet" href>
in CSS/JS aggregation. Reported by @hsablonniere - Fix for
<slot>
HTML #3. Reported by @knowler - Fixes for using custom elements as (or nested in)
<head>
, read more: https://github.com/11ty/webc#limitations-and-exceptions - Add fix for attribute serialization with quotes #11 #13 @hsablonniere @aturingmachine
- Fix for Render function whitespace consistency #9
- Set minimum node version to 14.18 by @manekinekko in #8
- Docs: Fix a webc -> page rename by @paulirish in #4
New Contributors
- @paulirish made their first contribution in #4
- @aturingmachine made their first contribution in #13
- @manekinekko made their first contribution in #8
Full Changelog: v0.1.1...v0.2.0
Milestone: https://github.com/11ty/webc/milestone/2?closed=1