unstale

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 init

@unstale/cli on npm

oniguruma-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.

    4.0.0release notes

  • Throws if the second argument is not an object or undefined.

    4.0.0release notes

Behavior and default changes 1

  • Output for the POSIX classes cntrl, graph, and print is shorter.

    4.0.0release notes

Fixes and other changes 5

  • Prevents a “Maximum call stack size exceeded” timeout with some edge-case uses of overlapping recursive subroutines.

    4.3.6release notes

  • Makes the error message more accurate and helpful for unclosed character classes that start with unescaped ].

    4.3.6release notes

  • Environment tests are no longer replaced with constants when bundled with Rolldown.

    4.3.5release notes

  • Works around partial or incomplete v flag support in mobile QQ.

    4.3.4release notes

  • Fixed a regression in support for comment groups from v3.1.1.

    4.0.0release notes

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.

    3.0.0release notes

  • Renames the browser bundle's global object to OnigurumaToEs.

    3.0.0release notes

  • Removes the rawArgs property from EmulatedRegExp instances; rawOptions replaces it, and pattern and flags are no longer needed for serialization.

    3.0.0release notes

  • Replaces the rawArgs property on EmulatedRegExp instances.

    3.0.0release notes

  • Subpattern matches transfer to earlier capture slots only when a subroutine participates in the match, including complex recursion cases.

    3.0.0release notes

  • Renames toDetails to toRegExpDetails.

    3.0.0release notes

  • Renames the OnigurumaToEsOptions type to ToRegExpOptions.

    3.0.0release notes

Performance 1

  • Regex construction performance is improved when using the EmulatedRegExp subclass.

    3.0.0release notes

Fixes and other changes 3

  • Valid nested character classes starting and ending with a colon are no longer treated as invalid POSIX classes.

    3.0.0release notes

  • Fixes edge cases with recursive capture transfer, using the last expanded instance for recursively repeated captures preceding the recursion token.

    3.0.0release notes

  • Some recursion-related error messages are improved.

    3.0.0release notes