Skip to content

v3.0.0

Compare
Choose a tag to compare
@slevithan slevithan released this 21 Jul 22:43
· 251 commits to main since this release

🚨 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.