Repository navigation
Security fix
Fixes a code injection vulnerability (GHSA-xmxc-6c22-m377) where string-typed options were interpolated verbatim into the generated parser code. Applications that build parser definitions from untrusted input should upgrade.
Affected options: length of string, buffer, array, wrapped and seek; lengthInBytes and key of array; tag of choice; offset of pointer; and the alias passed to namely().
Breaking change
These options now only accept identifier paths (e.g. "len", "$parent.len"). Expressions such as "len - 1" are rejected at compile time; use a function instead (e.g. function () { return this.len - 1; }).
Full Changelog: v2.3.0...v2.3.1