Skip to content

Releases: slevithan/oniguruma-to-es

v0.7.0

27 Nov 15:53
Compare
Choose a tag to compare
  • Support recursion with backreferences (when the recursed subpattern doesn't contain captures).
  • Fix: Allow unescaped, leading ] in character classes.

v0.6.1

23 Nov 22:36
Compare
Choose a tag to compare
  • Fix: With target ES2018, some advanced but supported patterns that contained \[ within a character class were resulting in invalid syntax. (#5)

v0.6.0

22 Nov 15:44
Compare
Choose a tag to compare
  • Added support for flags D (Digit is ASCII) and S (Space is ASCII) at top-level.
  • Added option rules.asciiWordBoundaries.
  • Replaced option accuracy: 'loose' with rules.allowUnhandledGAnchors.
  • Replaced option tmGrammar with rules.allowOrphanBackrefs.
  • Fix: \w, \d, \s, and their inversions are Unicode-based by default. (#4)
  • Fix: Unicode combining marks qualify as \b word boundaries by default.
  • Fix: In edge cases, using nested character classes that combined union and intersection led to invalid patterns.
  • Fix: In edge cases, some characters were not escaped appropriately in nested character classes.

v0.5.0

19 Nov 11:32
Compare
Choose a tag to compare
  • Added support for flag W (Word is ASCII) at top-level.
  • Minor type changes.

v0.4.1

17 Nov 08:24
Compare
Choose a tag to compare
  • Worked around a parser bug in versions of Bun prior to v1.1.35. (#2)

v0.4.0

16 Nov 19:00
Compare
Choose a tag to compare
  • Uses EmulatedRegExp (unless avoidSubclass is enabled) for patterns with atomic groups or possessive quantifiers.
  • EmulatedRegExp automatically adjusts subpattern matches and indices to account for injected emulation groups.
  • Added target option 'auto' (hat-tip @antfu for idea).
  • Improved \G support so it works with additional patterns.
  • Changed the shape of toDetails results when subclass details are included.
  • Renamed the types used for options objects.
  • Added missing Unicode case folding for Latin small long s ſ U+017F.

v0.3.0

13 Nov 17:37
Compare
Choose a tag to compare
  • Added support for multiple, non-overlapping recursions.
  • Added support for indirect recursion.
  • Changed the default maxRecursionDepth from 6 to 5.
  • Fixed a bug with some group types when using recursion by number.
  • Improved some cases of \G emulation.

v0.2.0

11 Nov 10:37
Compare
Choose a tag to compare
  • Changed target value 'ESNext' to 'ES2025'. All proposals used are slated for ES2025.
  • Error for unsupported grapheme boundary \y, \Y.
  • Error for unsupported octal UTF-encoded bytes above \177.
  • Error for incomplete, invalid, or unsupported octal code point \o{…}.

v0.1.1

09 Nov 20:32
Compare
Choose a tag to compare
  • Improved handling of backreferences to nonparticipating captures.
  • Incomplete \g or \k with following < or ' is an error.
  • Improved demo REPL.

v0.1.0

09 Nov 19:57
Compare
Choose a tag to compare

Initial release.