Skip to content

v5.11.0

Choose a tag to compare

@github-actions github-actions released this 21 Jun 02:11
· 20 commits to main since this release

Minor Changes

  • #222 221d3b7 Thanks @DylanPiercey! - Replace TypeScript enums with erasable const modules so the source runs directly under node's type stripping. The public TagType, ErrorCode, and Validity values keep their runtime shape and values, and their types are now the equivalent literal unions. Constant values remain fully inlined in the published bundles.

Patch Changes

  • #223 3c95d7f Thanks @DylanPiercey! - Speed up expression parsing by skipping work that provably cannot match. An
    identifier/number character is never whitespace, never a terminator (no
    shouldTerminate implementation matches a word character), and is not handled
    by the expression switch, so it now takes a fast path that just advances the
    position. The unary/binary operator keyword scans also bail out immediately when
    the surrounding character cannot start or end a keyword. This improves
    steady-state parsing throughput with no behavior change.

  • #220 85c8973 Thanks @DylanPiercey! - Refactor parser to allow individual states to process multiple characters. This allows for eager scanning, simplifies things some, and improves performance by about 30% in realworld tempaltes.