Releases: slevithan/oniguruma-to-es
Releases · slevithan/oniguruma-to-es
v0.7.0
v0.6.1
v0.6.0
- Added support for flags
D
(Digit is ASCII) andS
(Space is ASCII) at top-level. - Added option
rules.asciiWordBoundaries
. - Replaced option
accuracy: 'loose'
withrules.allowUnhandledGAnchors
. - Replaced option
tmGrammar
withrules.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
v0.4.1
v0.4.0
- Uses
EmulatedRegExp
(unlessavoidSubclass
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
v0.2.0
- 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{…}
.