Skip to content

v10.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 27 Nov 09:51
· 214 commits to master since this release

10.0.0 (2022-11-27)

chore

Code Refactoring

  • _evalToken renamed to evalToken (4e1a30a)
  • change ownPropertyOnly default value to true (7eb6216)
  • delay creation of operatorsTrie and hide this implementation (bb58d3e)
  • remove toThenable export (ffefd91)
  • remove use of internal Context class in evalValue argument (b115077)

Performance Improvements

  • target Node.js 14 for cjs bundle (main entry) (1f6ce7c)

BREAKING CHANGES

  • evalToken now returns a generator (LiquidJS async), which is different from evalToken in previous LiquidJS versions.
  • main entry need Node.js>=14 to run, you can build LiquidJS by your own by using ESM entry.
  • ownPropertyOnly default value changed to true
  • <liquidjs>.toThenable is removed, use <liquidjs>.toPromise instead
  • evalValue won't support Context as second argument anymore.
  • use operators instead of operatorsTrie as Tokenizer constructor argument, #500
  • keys in <liquidjs>.filters are now in snake case (instead of camel case), identical to that in Liquid template.