Releases: posthtml/posthtml-components
Releases · posthtml/posthtml-components
v2.2.2
v2.2.1
This patch fixes an issue with slots not being filled when nested inside another component.
This will now work:
<!-- alert.html component -->
<x-alert>
<x-header>
<slot:title>
Default header title
</slot:title>
<p>This is always visible in the header</p>
</x-header>
</x-alert>
<!-- usage -->
<x-alert>
<fill:title>
Custom header title
</fill:title>
</x-alert>- build(deps-dev): bump @biomejs/biome from 2.2.3 to 2.2.4 6f90eb9
- Move filledSlots variable 476bad0
- Process slots before processing subtree by @StratusFearMe21 be27e21
v2.2.0
Added
- Add support for Parcel hot reloading (Fix #19) 23942a8 by @StratusFearMe21
Updated
- build(deps-dev): bump @biomejs/biome from 2.0.6 to 2.1.1 7ca30fa
- build(deps-dev): bump posthtml-markdownit from 3.1.1 to 3.1.2 1550362
v2.1.1
- chore: apply linter fixes 0600fb2
- build(deps-dev): bump @biomejs/biome from 1.9.4 to 2.0.5 bfd14de
- build(deps-dev): bump @vitest/coverage-v8 from 3.2.3 to 3.2.4 fac7eb9
- build(deps-dev): bump vitest from 3.0.7 to 3.0.8 363994e
- build(deps-dev): bump highlight.js from 11.10.0 to 11.11.1 c5c75e7
- build(deps): bump posthtml-attrs-parser from 1.1.1 to 1.1.2 33c9cca
- build(deps-dev): bump posthtml-markdownit from 3.1.0 to 3.1.1 5427633
v2.1.0
New features
You may now pass fileExtension as an Array and the plugin will look for all matching files with those extensions.
For example:
posthtml([
plugin(
{
fileExtension: ['html', 'md'] // looks for both md-layout.html and md-layout.md
}
)
])
.process('`<x-md-layout>test</x-md-layout>`')
.then(result => result.html)Note that this is just an example - markdown content isn't parsed, it just reads the file as usual.
This is useful in cases where some components in your project should be sourced directly from files with extensions other than html (because you can't change them or prefer they'd be left unchanged for further processing).
If both md-layout.html and md-layout.md exist in the root folder, the first fileExtension match will be used (in this case, md-layout.html).
v2.1.0-beta.2
v2.1.0-beta.1
- test: update tests 2c69ad8
- feat: support fileExtension as array 5175272
- refactor: use native for loops instead of lodash/each bcd80ef
- build(deps-dev): bump @vitest/coverage-v8 from 2.1.5 to 2.1.6 e07feae
- build(deps-dev): bump @biomejs/biome from 1.9.3 to 1.9.4 6e6323d
- build(deps): bump posthtml-parser from 0.12.0 to 0.12.1 e4f7e73
- build(deps): bump style-to-object from 1.0.7 to 1.0.8 ad81c84
- build(deps-dev): bump markdown-it-anchor from 9.1.0 to 9.2.0 0fbfcfa
v2.0.0
v2.0.0-beta.2
- chore: update package description 9732a70
- refactor: add
filesfield in package.json fea2f3c - chore: export types in package.json 2fb61b7
- feat: add types 7feb3af
- chore: update readme.md 336558b
- refactor: rename
blacklistAttributestoblocklistAttributes0cd302e - build(deps-dev): update
posthtml-includeto 2.0.1 3d168d4 - feat: require node 18 907de89