unstale

npm / liquidjs

liquidjs

What changed in liquidjs 9 to 10, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

22 breaking15 security13 new APIs and options2 performance1 behavior and defaults27 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

liquidjs 1066 changes

Breaking changes 16

  • The filter throws on invalid input in every build.

    10.30.1release notes

  • The cycle tag now applies outputEscape to its output.

    10.30.1release notes

  • The echo tag now applies outputEscape to its output.

    10.30.1release notes

  • Modulo now follows the divisor sign when operands are negative.

    10.27.2release notes

  • Blocks Object.prototype filter and tag lookups to address RCE.

    10.26.0release notessecurity advisory

  • A null date now returns an empty value.

    10.25.5release notes

  • File lookups enforce root containment, preventing parseFile from resolving paths outside the configured root.

    10.25.5release notes

  • File lookups enforce root containment, preventing renderFile from resolving paths outside the configured root.

    10.25.5release notessecurity advisory

  • Negative values at halfway points now round away from zero.

    10.25.5release notes

  • evalToken now returns a generator, changing how callers handle its result.

    10.0.0release notes

  • evalValue no longer accepts Context as its second argument.

    10.0.0release notes

  • Filter keys are now in snake case instead of camel case, matching their names in Liquid templates.

    10.0.0release notes

  • The main entry now requires Node.js 14 or later; LiquidJS can be built by users who need to use the ESM entry.

    10.0.0release notes

  • Use operators instead of operatorsTrie as the Tokenizer constructor argument.

    10.0.0release notes

  • The default value of ownPropertyOnly is now true.

    10.0.0release notes

  • The toThenable export was removed; use toPromise instead.

    10.0.0release notes

Security 15

New APIs and options 9

  • Adds the squish filter.

    10.29.0release notes

  • Adds the unregisterFilter method for removing a filter.

    10.29.0release notes

  • Provides null-prototype scope frames via createScope.

    10.27.0release notes

  • Adds an hmac_sha256 filter for cryptographic operations.

    10.26.0release notes

  • Adds a sha256 filter for cryptographic operations.

    10.26.0release notes

  • Error types are now exported, allowing developers to access them through the package API.

    10.25.0release notes

  • Adds the base64_decode filter for Shopify compatibility.

    10.24.0release notes

  • Adds the base64_encode filter for Shopify compatibility.

    10.24.0release notes

  • Specific tokens are now exported as types, making them available to TypeScript consumers.

    10.23.0release notes

Behavior and default changes 1

  • Expressions enclosed by parentheses are now supported.

    10.28.0release notes

Fixes and other changes 25

  • The filter coerces non-array input with toArray.

    10.30.1release notes

  • The filter uses English day and month names.

    10.30.1release notes

  • The filter no longer alters large or high-precision numbers.

    10.30.1release notes

  • The filter no longer splits surrogate pairs.

    10.30.1release notes

  • The %Y date format is padded to 4 digits like Ruby.

    10.30.1release notes

  • Encodes large input in browser builds.

    10.30.0release notes

  • Computes %C and %y from the numeric year.

    10.30.0release notes

  • Computes %U and %W week numbers like strftime.

    10.30.0release notes

  • Awaits promises returned by Drop.valueOf().

    10.30.0release notes

  • Trims custom characters by Unicode code point.

    10.30.0release notes

  • Ignores leading whitespace when counting words.

    10.30.0release notes

  • Keeps %2B as a literal plus when decoding.

    10.30.0release notes

  • The %s date format returns the Unix epoch regardless of display timezone.

    10.28.0release notes

  • Formatting %N fractional seconds now zero-pads milliseconds.

    10.27.2release notes

  • The inspect filter is charged according to its produced output size.

    10.27.2release notes

  • The json filter is charged according to its produced output size.

    10.27.2release notes

  • The ownPropertyOnly setting is enforced for inherited array indices.

    10.27.2release notes

  • The slice filter returns empty for an out-of-range begin or a negative length.

    10.27.2release notes

  • Improves the round function.

    10.27.1release notes

  • Enforces renderLimit for empty renderTemplates calls.

    10.26.0release notes

  • Strips HTML newline tags.

    10.26.0release notes

  • Supports Buffer input to prevent binary data corruption.

    10.25.7release notes

  • Fixes a bug involving nested blocks for layouts.

    10.25.6release notes

  • Handles an undefined replacement argument in the replace filter.

    10.25.2release notes

  • Fixes the memory limiter for invalid ranges.

    10.25.1release notes

liquidjs 914 changes

Breaking changes 6

  • The break tag no longer omits output before it.

    9.0.0upgrade guide

  • The continue tag no longer omits output before it.

    9.0.0upgrade guide

  • LiquidJS no longer has a default export; import Liquid as a named export instead.

    9.0.0upgrade guide

  • Removes the duplicate static method; use the instance method liquid.evalValue instead.

    9.0.0upgrade guide

  • The CJS bundle no longer supports Node.js 6 or earlier; ESM and UMD bundles are unaffected.

    9.0.0upgrade guide

  • The UMD bundle global changes to window.liquidjs.Liquid.

    9.0.0upgrade guide

New APIs and options 4

  • Adds Expression as a new utility.

    9.0.0upgrade guide

  • Adds synchronous parsing and rendering with parseAndRenderSync.

    9.0.0upgrade guide

  • Adds synchronous file rendering with renderFileSync.

    9.0.0upgrade guide

  • Adds synchronous rendering with renderSync.

    9.0.0upgrade guide

Performance 2

Fixes and other changes 2

  • Boolean expression evaluation order is rewritten.

    9.0.0upgrade guide

  • Fixes cases where Promise typed Drops are not awaited.

    9.0.0upgrade guide