Skip to content

Releases: posthtml/posthtml-components

v2.2.2

02 Nov 15:34

Choose a tag to compare

  • chore: allow align attribute 1343cfd

v2.2.1...v2.2.2

v2.2.1

25 Sep 14:50

Choose a tag to compare

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>

v2.2.0...v2.2.1

v2.2.0

10 Jul 09:51

Choose a tag to compare

Added

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...v2.2.0

v2.1.1

24 Jun 12:37

Choose a tag to compare

  • 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...v2.1.1

v2.1.0

16 Dec 15:20

Choose a tag to compare

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

v2.1.0-beta.2

29 Nov 19:29

Choose a tag to compare

v2.1.0-beta.2 Pre-release
Pre-release
  • chore: update fileExtension type 410d21e

v2.1.0-beta.1...v2.1.0-beta.2

v2.1.0-beta.1

29 Nov 16:34

Choose a tag to compare

v2.1.0-beta.1 Pre-release
Pre-release
  • 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.1.0-beta.1

v2.0.0

25 Jul 16:08

Choose a tag to compare

  • [BREAKING] Node.js 18+ 907de89
  • migrate to Vitest 8cb2619
  • [BREAKING] renamed blacklistAttributes to blocklistAttributes 0cd302e
  • fixed test for posthtml-include latest version 3d168d4
  • feat: add types 7feb3af

v2.0.0-beta.2...v2.0.0

v2.0.0-beta.2

25 Jul 15:56

Choose a tag to compare

v2.0.0-beta.2 Pre-release
Pre-release
  • chore: update package description 9732a70
  • refactor: add files field in package.json fea2f3c
  • chore: export types in package.json 2fb61b7
  • feat: add types 7feb3af
  • chore: update readme.md 336558b
  • refactor: rename blacklistAttributes to blocklistAttributes 0cd302e
  • build(deps-dev): update posthtml-include to 2.0.1 3d168d4
  • feat: require node 18 907de89

v2.0.0-beta.1...v2.0.0-beta.2

v2.0.0-beta.1

25 Jul 14:00

Choose a tag to compare

v2.0.0-beta.1 Pre-release
Pre-release

v1.1.1...v2.0.0-beta.1