Skip to content

Releases: slevithan/regex

v3.0.0

21 Jul 22:43
Compare
Choose a tag to compare

🚨 Breaking

  • Renamed function/tag partial as pattern.

🚀 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

26 Jun 15:47
Compare
Choose a tag to compare

🚀 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

15 Jun 21:28
Compare
Choose a tag to compare

🚨 Breaking

  • Removed deprecated exports make (an alias for regex) and default.

🚀 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

10 Jun 22:10
Compare
Choose a tag to compare

🚀 Features

  • Added support for postprocessors, which can be used by extensions.

🐞 Fixes

  • Fixed edge case quantifier issues with implicit flag x.

v1.1.0

07 Jun 14:17
Compare
Choose a tag to compare

The library was renamed from Regex.make to just regex.

🚀 Features

  • Renamed tag make as regex (#1). make remains available as a deprecated alias.

v1.0.0

05 Jun 08:22
Compare
Choose a tag to compare

Initial release.

Thanks @aaditmshah for npm package name regex!