Skip to content

Releases: posthtml/posthtml-expressions

v1.4.2

16 Jun 09:08

Choose a tag to compare

Fix

  • fix: if attr is boolean, close #85 bdd5524
  • fix: ignore expressions inside node attributes 8febd75
  • fix: ignore subsequent expressions in a text node def95f5

Perf

  • perf: pulled definitions of ignore from iteration 7711830

Refactor

  • refactor: inline expression ignoring 28ad6ac
  • refactor: ignored expression regex vars 994e196

Docs

  • docs: add Cosmin Popovici as Contributors 77aaf56

v1.4.1

18 May 07:42

Choose a tag to compare

  • build: update dep dev 07e741a
  • Merge pull request #78 from cossssmin/fix-ignored 4488115
  • refactor: inline expression ignoring 28ad6ac
  • perf: pulled definitions of ignore from iteration 7711830
  • refactor: ignored expression regex vars 994e196
  • fix: ignore expressions inside node attributes 8febd75
  • test: fails to ignore expression inside attribute 5b39d50
  • fix: ignore subsequent expressions in a text node def95f5
  • test: fails to ignore subsequent expressions in text node ae902d1
  • test: use .is instead of .truthy for comparison c5c6079
  • docs: add Cosmin Popovici as Contributors 77aaf56
  • Merge pull request #77 from posthtml/milestone-1.4.0 37e58de

v1.1.0

14 Dec 05:09

Choose a tag to compare

v1.0.0

19 Nov 07:52

Choose a tag to compare

CHANGELOG

🔴 ⚠️ This package is renamed to posthtml-expressions ⚠️ 🔴

v0.9.0

13 Jul 18:08

Choose a tag to compare

This is a breaking release, caution!

This is a complete project rewrite from scratch. If anything is the same between this and the previous version, it's purely coincidence. Consult the readme for usage instructions. Right now we have:

  • standard (html-escaped) expressions, with custom delimiter option
  • unescaped expressions, with custom delimiter option
  • conditionals, with custom tag name option
  • loops for both objects and arrays, with custom tag name option

All expressions are evaluated in a v8 sandbox with only the locals you pass in via the plugin options.