Releases: 11ty/webc
WebC v0.8.0
- Breaking:
attribute-name
properties and attributes are now available in data as camel-case:attribute-name
in JS data isattributeName
. Read more at #71 - Breaking: Removes page level API method for toggling reprocessing mode off (control more granularly with
webc:raw
or@raw
instead). #72 - Docs clarity and bug fixes to new
webc:type="js"
render function #78 - Bug fix when consuming dynamic attributes from a parent component #80
- Bug fix for
webc:import
s in components that needed to be relative to the component file. #79
Full milestone: https://github.com/11ty/webc/milestone/12?closed=1
Full Changelog: v0.7.1...v0.8.0
WebC v0.7.1: `@raw`, `webc:if`, and `webc:type="js"`
@raw
as an alias forwebc:raw @html
#70webc:type="js"
for simpler custom JavaScript (the successor towebc:type="render"
) #50 #73 #75webc:if
for conditional tags #76 #77
Milestone: https://github.com/11ty/webc/milestone/11?closed=1
Full Changelog: v0.7.0...v0.7.1
Docs are updated on https://www.11ty.dev/docs/languages/webc/ and https://github.com/11ty/webc
WebC v0.7.0: The Safety Maintenance Release
Changes to facilitate fixes in @11ty/eleventy-plugin-webc
, specifically:
This release has no breaking changes in WebC, but will have breaking changes in @11ty/eleventy-plugin-webc
and we want to keep version parity between the two.
Full Changelog: v0.6.2...v0.7.0
WebC v0.6.2: webc:import from npm
Import directly from npm
This example uses @11ty/[email protected]
.
<syntax-highlight language="js" webc:import="npm:@11ty/eleventy-plugin-syntaxhighlight">
function myFunction() {
return true;
}
</syntax-highlight>
Uses the component tag name (syntax-highlight
) to look for a WebC component at node_modules/@11ty/eleventy-plugin-syntaxhighlight/syntax-highlight.webc
and imports it for use.
This works with webc:is
too:
<template webc:is="syntax-highlight" language="js" webc:import="npm:@11ty/eleventy-plugin-syntaxhighlight">
- The WebC standalone docs (and Eleventy
webc:import
docs and Syntax Highlighter plugin docs) have been updated.
Other Changes
- Fix for void elements WebC components that use render functions #67
- chore: copy examples to folder by @manekinekko in #12
- chore: caches node modules in GitHub Actions workflow by @kleinfreund in #43
- Milestone: https://github.com/11ty/webc/milestone/10?closed=1
- Full Changelog: v0.6.1...v0.6.2
WebC v0.6.1: Bug fixes
- Fixes #66, allowing you to glob WebC components from inside the
node_modules
folder directly. - Milestone https://github.com/11ty/webc/milestone/9?closed=1
Full Changelog: v0.6.0...v0.6.1
WebC v0.6.0: Import Aliases and `@text`
- Adds
npm:
prefix towebc:import
to import directly fromnode_modules
(e.g.webc:import="npm:@11ty/eleventy-plugin-syntaxhighlighter/syntax-highlight.webc"
) #63 - Option to add your own
webc:import
prefix alias to point to any folder (e.g.page.setAlias("key", "./my_custom_folder/");
) #63 - Adds
@text
prop for escaped content #51 - Add support for
<link rel="stylesheet" href="" webc:scoped>
#53 - Use any npm package in
webc:type="render"
functions by @RobinCsl in #59 #60 - Access default slot as text in
webc:type="render"
functions #61 - Fix for missing
base64url
encoding was on Stackblitz #56 - Fix for extra
<html><head><body>
elements when using@html
#57 - Document
page
andcomponent
rendering modes #54 #64
- Milestone: https://github.com/11ty/webc/milestone/8?closed=1
- Full Changelog: v0.5.4...v0.6.0
- New Contributor: @RobinCsl
WebC v0.5.4
- Fixes issue with HTML raw input passed to transforms (via
<template webc:type>
) and raw passthrough for<template webc:raw>
. #48 - Better error messaging when attempting to reserved word
class
in JS code #45 - Milestone: https://github.com/11ty/webc/milestone/7?closed=1
- Full Changelog: v0.5.3...v0.5.4
WebC v0.5.3
#44 Reverts strict property usage from #18.
Milestone: https://github.com/11ty/webc/issues?q=is%3Aclosed+milestone%3A0.5.3
WebC v0.5.2
Fixes a regression with @html
(due to reprocessing #34), resulting in extra <!doctype html><html>β¦
wrapped around return value from @html
.
WebC v0.5.1
Quick fix edition! Two fixes:
- Attempting to compile an empty string incorrectly threw an error. Empty string templates should compile as empty documents.
- Adds
reprocessingMode
toggle to WebC class to support Eleventy Layout templates using@html
without reprocessing all of the already-processed content.