npm / oniguruma-to-es
oniguruma-to-es
What changed in oniguruma-to-es 3 to 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
9 breaking1 performance1 behavior and defaults8 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initoniguruma-to-es 48 changes
Breaking changes 2
Removed this API; its functionality moved to oniguruma-parser, which includes improvements, new features, and changes to the AST structure.
Throws if the second argument is not an object or undefined.
Behavior and default changes 1
Output for the POSIX classes cntrl, graph, and print is shorter.
Fixes and other changes 5
Prevents a “Maximum call stack size exceeded” timeout with some edge-case uses of overlapping recursive subroutines.
Makes the error message more accurate and helpful for unclosed character classes that start with unescaped
].Environment tests are no longer replaced with constants when bundled with Rolldown.
Works around partial or incomplete v flag support in mobile QQ.
Fixed a regression in support for comment groups from v3.1.1.
oniguruma-to-es 311 changes
Breaking changes 7
Metadata for hidden and transfer captures is provided via options rather than embedded in the pattern; serialized values for subclassed regexes have changed.
Renames the browser bundle's global object to OnigurumaToEs.
Removes the rawArgs property from EmulatedRegExp instances; rawOptions replaces it, and pattern and flags are no longer needed for serialization.
Replaces the rawArgs property on EmulatedRegExp instances.
Subpattern matches transfer to earlier capture slots only when a subroutine participates in the match, including complex recursion cases.
Renames toDetails to toRegExpDetails.
Renames the OnigurumaToEsOptions type to ToRegExpOptions.
Performance 1
Regex construction performance is improved when using the EmulatedRegExp subclass.
Fixes and other changes 3
Valid nested character classes starting and ending with a colon are no longer treated as invalid POSIX classes.
Fixes edge cases with recursive capture transfer, using the last expanded instance for recursively repeated captures preceding the recursion token.
Some recursion-related error messages are improved.