Releases: 11ty/eleventy-plugin-webc
Releases · 11ty/eleventy-plugin-webc
Eleventy WebC v0.9.1: Asset bucketing fix
- Fix CSS and JS not getting bundled for non-default buckets by @Gyanreyer in #57 #56
Milestone: https://github.com/11ty/eleventy-plugin-webc/milestone/8?closed=1
Full Changelog: v0.9.0...v0.9.1
Eleventy WebC v0.9.0: `<script webc:setup>` and `@attributes`
Eleventy WebC v0.9.0
Docs have been updated on: https://www.11ty.dev/docs/languages/webc/
WebC v0.9.0
- Using WebC v0.9.0 which includes
⚠️ 2 medium risk and ✅ 2 low risk breaking changes. - WebC v0.9.0 features:
- New
<script webc:setup>
feature to use arbitrary JavaScript to export data for use in the component - Support new
shadowrootmode
attribute to opt-out of asset bundling in Declarative Shadow DOM - New
@attributes
feature to render an attributes object - New
:@
prefix for dynamic properties (e.g.:@dynamic-property
) webc:ignore
will completely ignore a node (no processing or output)- Support :host() and :host-context() pseudo classes in
webc:scoped
by @Gyanreyer in 11ty/webc#96
- New
Eleventy WebC Plugin v0.9.0
- Now using the
eleventy-plugin-bundle
internally for WebC bundling #48 #46 #4 - Various fixes for permalink, including a better fallback case for raw (non-JS) strings #50 #47 #52
- Example code to populate front matter data using JavaScript (similar to webc:setup above) #45
WebC v0.9.0 Release Notes
Full Milestone: https://github.com/11ty/eleventy-plugin-webc/milestone/7?closed=1
Full Changelog: v0.8.1...v0.9.0
Eleventy WebC v0.8.0: Little Bundler of Joy
Breaking Changes
- Enables Bundler mode consistently for all WebC files (notably, this was not enabled for Eleventy Layout files previously). Read more at #33 and #11.
- ACTION NEEDED 🚨 You will need to add
webc:keep
to any<style>
or<script>
tags in Eleventy Layout WebC files to prevent them from being re-bundled out of existence! (You can check out an example of a WebC file as an Eleventy Layout on the WebC docs) - This was important as it allows the use of WebC components in Eleventy Layout files and will bundle their assets as expected. Read more about WebC Bundler Mode
- ACTION NEEDED 🚨 You will need to add
- From WebC v0.8.0:
attribute-name
properties and attributes are now available in data as camel-case:attribute-name
in JS data isattributeName
. Read more at@11ty/webc#71
WebC release notes:
- v0.8.0 https://github.com/11ty/webc/releases/tag/v0.8.0 (mostly fixes for
webc:type="js"
)
Milestone: https://github.com/11ty/eleventy-plugin-webc/milestone/6?closed=1
Full Changelog: v0.7.0...v0.8.0
Eleventy WebC v0.7.0
Breaking Changes
- BREAKING: 🚨 You will need to use
@raw
instead of@html
in your Eleventy Layout files to avoid double-processing WebC content. See this comment or on the WebC docs: https://www.11ty.dev/docs/languages/webc/#css-and-js-(bundler-mode)- (This re-enables reprocessing mode in Eleventy Layouts so that you can use render functions to return components in Layout Files #20)
- BREAKING: Adds a default
components
glob:./_components/**/*.webc
(project root relative) #14
Fixes
- Fix for
permalink
rendering in webc files (uses the same as dynamic attributes now) #27 - Fix for
webc:type="11ty"
#16 - Leftover
uid
styles during--watch
or--serve
#17 - Config leftovers 11ty/eleventy#2642 (via
@11ty/eleventy@2.0.0-canary.17
)
WebC version updates:
- v0.7.1 https://github.com/11ty/webc/releases/tag/v0.7.1
@raw
webc:if
webc:type="js"
- v0.7.0 https://github.com/11ty/webc/releases/tag/v0.7.0
Milestone: https://github.com/11ty/eleventy-plugin-webc/milestone/5?closed=1
Full Changelog: v0.6.0...v0.7.0
Eleventy WebC v0.6.0
- Upgrades to WebC v0.6.0
- Milestone: https://github.com/11ty/eleventy-plugin-webc/milestone/3?closed=1
- Full Changelog: v0.5.1...v0.6.0
Eleventy WebC v0.5.1
- Fixes bug with removing a component file during
--watch
or--serve
#13 - Documentation improvement to note project-root relative
components
directory option #12
Milestone: https://github.com/11ty/eleventy-plugin-webc/milestone/2?closed=1
Full Changelog: v0.5.0...v0.5.1
Eleventy WebC v0.5.0
New Features
- Upgrades to
@11ty/webc@0.5.2
- WebC v0.5.0 https://github.com/11ty/webc/releases/tag/v0.5.0
- WebC v0.5.1 https://github.com/11ty/webc/releases/tag/v0.5.1
- WebC v0.5.2 https://github.com/11ty/webc/releases/tag/v0.5.2
- Eleventy Universal Filters (and JavaScript Template functions) are now available for-free as WebC Helpers: #3
- Fix bug with
permalink: false
templates withuseTransform
: #9
Full milestone: https://github.com/11ty/eleventy-plugin-webc/milestone/1?closed=1