Back to Explore

slevithan/oniguruma-to-es

GitHub
1 updates · last 90 days1 watchersOpen source

Last release:

Oniguruma-To-ES is a browser or server JavaScript tool that translates Oniguruma regular expression patterns into equivalent JavaScript RegExp objects (with support for most Oniguruma features). It’s useful when you need to run existing Oniguruma, Ruby, or TextMate grammar regexes from JavaScript, or share regexes across Ruby/PHP and JavaScript code.

Project status

  • The repository appears actively maintained, with the most recent update being v4.3.6 on 2026-04-19, and multiple follow-on updates in 2026 and throughout 2025.
  • Update cadence looks steady and incremental, with small patch-level updates roughly every 1 to 5 months (for example, v4.3.6 in April 2026, v4.3.5 in March 2026, and v4.3.4 in November 2025).

AI summary generated

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v4.3.6

    v4.3.6 includes fixes aimed at preventing a potential “Maximum call stack size exceeded” timeout related to overlapping recursive subroutines, and it improves an error message for certain unclosed character class cases. The release notes attribute the improved error to an oniguruma-parser upgrade.

  • v4.3.5

    v4.3.5 contains a targeted fix intended to stop Rolldown from inlining environment-detection code into constants. The code change updates how RegExp feature detection is constructed so it remains dynamic during bundling.

  • v4.3.4

    v4.3.4 is a small maintenance release with a targeted workaround for environments with incomplete support for the JavaScript RegExp Unicode Sets flag `v` (mobile QQ). The code change primarily updates how the library detects `v` support, which can influence whether generated regexes use `v`-only features.

  • v4.3.3

    v4.3.3 contains a fix/workaround for a Safari (WebKit) regex parsing issue involving nested negated character classes, plus a related environment-detection change to ensure the workaround triggers correctly. The release also bumps oniguruma-parser to ^0.12.1 (and updates Jasmine in devDependencies).

  • v4.3.2

    v4.3.2 is a small patch release that focuses on a Safari (WebKit) parsing issue for certain character class constructs. The release notes describe a workaround related to escaped hyphens in nested character classes.

  • v4.3.1

    v4.3.1 is a small compatibility-focused release. It includes a workaround for a Bun parser issue in the regex generation path, plus minor documentation adjustments in the README.

  • v4.3.0

    v4.3.0 adds new regex transpilation capabilities around Oniguruma's `\X` handling for older JS targets, plus a CLI improvement for `onig:match`. It also bumps `oniguruma-parser` to `^0.12.0` and includes documentation updates.

    Features
  • v4.2.0

    v4.2.0 upgrades the underlying parser dependency to oniguruma-parser 0.11.0 and adds Oniguruma named callout support for the `(*FAIL)` construct. It also includes fixes around multiplexed named backreferences with duplicate group names and interval quantifier behavior, plus enhancements to the `onig:match` script for runtime comparison.

    BreakingFeatures
  • v4.1.0

    v4.1.0 adds partial support for nested, negated character classes when targeting ES2018, specifically enabling top-level nested negated classes inside non-negated classes. The implementation is done in the character class code generator and relies on newer `oniguruma-parser` AST helpers. The release notes do not mention a dependency bump that can affect parsing behavior on edge cases.

    Features
  • v4.0.1

    Release v4.0.1 primarily bumps the oniguruma-parser dependency from ^0.5.1 to ^0.5.2, which the release notes describe as a bundle size regression fix. The code diff also shows internal import refactoring related to the `slug` helper, plus a small README update to the claimed bundle size percentage.