v10.0.0
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 toevalToken
(4e1a30a)- change
ownPropertyOnly
default value totrue
(7eb6216) - delay creation of
operatorsTrie
and hide this implementation (bb58d3e) - remove
toThenable
export (ffefd91) - remove use of internal
Context
class inevalValue
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 fromevalToken
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 totrue
<liquidjs>.toThenable
is removed, use<liquidjs>.toPromise
insteadevalValue
won't supportContext
as second argument anymore.- use
operators
instead ofoperatorsTrie
as Tokenizer constructor argument, #500 - keys in
<liquidjs>.filters
are now in snake case (instead of camel case), identical to that in Liquid template.