Skip to content

Releases: 11ty/webc

WebC v0.5.0

14 Oct 19:56
Compare
Choose a tag to compare

New features

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

New Contributors

WebC v0.4.5

30 Sep 14:30
Compare
Choose a tag to compare

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

29 Sep 19:24
Compare
Choose a tag to compare
  • Adds new uid property available in components for use as an easy per-instance id 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 and link in component definitions (they were being split between implicit head and body internally)

Milestone: https://github.com/11ty/webc/milestone/4?closed=1

WebC v0.4.0

28 Sep 14:15
Compare
Choose a tag to compare

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

28 Sep 14:11
Compare
Choose a tag to compare

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 and getJS 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 &lt; and &gt;) and attributes

WebC v0.2.0

20 Sep 20:10
Compare
Choose a tag to compare

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

New Contributors

Full Changelog: v0.1.1...v0.2.0
Milestone: https://github.com/11ty/webc/milestone/2?closed=1