Skip to content

Releases: posthtml/posthtml-components

v2.1.0

16 Dec 15:20
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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
Compare
Choose a tag to compare
v2.0.0-beta.1 Pre-release
Pre-release

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

v1.1.1

14 Feb 13:08
Compare
Choose a tag to compare

Fixed

  • fixed an issue with Yarn PnP 0c79060

Changed

  • updated dependencies

Full Changelog: v1.1.0...v1.1.1

v1.1.0 Stable Release

17 Mar 12:38
Compare
Choose a tag to compare
  • Add support for customizing posthtml-parser #31
  • Enable by default self-closing tag

First Stable Release

14 Mar 09:20
Compare
Choose a tag to compare
v1.0.0

Prepare for first stable release

Second Release Candidate

10 Mar 09:17
Compare
Choose a tag to compare
Pre-release
  • Fix issue with custom valid attributes
  • Added test for override options of valid attributes