Releases: slevithan/regex
Releases · slevithan/regex
v3.0.0
🚨 Breaking
- Renamed function/tag
partial
aspattern
.
🚀 Features
- Added support for subroutine definition groups via
(?(DEFINE)…)
at the end of a regex. - Added TypeScript declarations, and improved JSDoc-based types. (#6, @rauschma)
- Testing improvements to make tests pass with Node.js 14+.
🐞 Fixes
- Fixed an issue with interpolating a regex with numbered backreferences into a pattern with lookbehind, which could throw in edge cases.
- Fixed an issue that could allow subroutines to reference lookbehind in edge cases.
- Fixed edge case issues with subroutines that referenced groups containing backreferences to themselves.
v2.1.0
🚀 Features
- Now works in environments without native flag v support, extending compatibility from Node.js 20 to 14, and from 2023-era to 2020-era browsers (2017-era browsers with a transpilation build step).
- Postprocessors now receive the flags in use as an argument.
v2.0.0
🚨 Breaking
- Removed deprecated exports
make
(an alias forregex
) anddefault
.
🚀 Features
- Added support for subroutines via
\g<name>
. - Generated regex source is improved in several edge cases.
- Atomic groups and other extended syntax can be added in postprocessors.
🐞 Fixes
- Fixed backreference adjustments when an interpolated
RegExp
instance with a numbered backreference is preceded by an interpolated partial with captures.
v1.1.1
v1.1.0
v1.0.0
Initial release.
Thanks @aaditmshah for npm package name regex
!