Skip to content

v2.0.0

Choose a tag to compare

@swernerx swernerx released this 09 Oct 23:09
Immutable release. Only release title and notes can be modified.
abd8503

2.0.0 (2026-10-09)

⚠ BREAKING CHANGES

  • regint and regparse_types are no longer public; RegexType is re-exported from ferroni::oniguruma, and internal parser/compiler items are crate-private. The public surface is the Rust API plus the C API of oniguruma.h.
  • scanner: Build ScannerConfig with ScannerConfig::default() and the options and syntax setters instead of a struct literal. Refs #287
  • regparse: the nesting default drops from 4,096 units (2,048 groups) to 256 units (128 groups), so deeper patterns now fail with ParseDepthLimitOver. onig_set_parse_depth_limit no longer raises the expression budget, so callers that raised it for wide alternations must also call onig_set_ast_node_limit.

Features

  • api: implement Debug for the scanner, builder and iterator types (#301) (2a5afad)
  • make the C-internal modules crate-private (#310) (bcfa53e)
  • scanner: make the scanner config, match and error types extensible (#309) (7dd6654)
  • scanner: pre-filter RegSet searches with a multi-pattern DFA (#321) (e349fac)
  • unicode: move the Unicode tables to Unicode 18.0 (#307) (ba840e5)

Bug Fixes

  • deps: update ardo to v5 (#284) (6289200)
  • deps: update GitHub Actions and CI tool pins (#278) (90e2c77)
  • deps: update pnpm to v12 and jdx/mise-action to v5 (#282) (31b7138)
  • deps: update the docs site's vite, eslint, lucide-react and OXC toolchain (#280) (d8197a0)
  • regcomp: make onig_set_default_case_fold_flag affect onig_new as in C (f089842)
  • regparse: bound nesting depth so deep patterns fail before the stack overflows (#308) (7d5ed8c)

Performance Improvements

  • scanner: build the pre-filter lazily and share it through the pattern cache (#323) (a38768b), closes #252
  • scanner: retire the pre-filter where its cache thrashes, keep walks of a repeated subject (#324) (b93c6d2), closes #252
  • scanner: store OnigString offsets as u32, plus audit cleanups (#300) (b6b5e21)