Back to Explore

slevithan/oniguruma-to-es

GitHub
2 updates · last 90 days1 watchersOpen source

Last release: 1 month ago

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 GitHub source appears actively maintained, with recent version updates through April 2026 (last push on 2026-04-19) and ongoing maintenance and fix work rather than long-term inactivity.
  • The apparent update cadence is moderate, with updates in Mar 2026 (v4.3.5), then Nov 2025 (v4.3.4), and another in Apr 2026 (v4.3.6), suggesting a roughly multi-month rhythm when changes are needed.

AI summary generated Today

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

Recent updates

  • v4.3.6

    1 month ago

    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

    2 months ago

    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

    6 months ago

    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

    5/2/2025

    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

    4/29/2025

    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

    4/24/2025

    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

    4/24/2025

    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

    4/13/2025

    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

    3/10/2025

    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

    3/8/2025

    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.