Skip to content

v6.0.0

Compare
Choose a tag to compare
@slevithan slevithan released this 29 Jan 18:54
· 2 commits to main since this release

This version's breaking changes don't affect direct use of the library. They alters APIs used by tools that build on top of Regex+.

🚨 Breaking

  • rewrite: Renamed the returned expression property as pattern.
  • Plugins: Returned values now expected to be an object with string property pattern.
  • Plugins: Hidden capture indices now explicitly provided/returned, rather than embedded via markers in the pattern.
  • ./internals: Removed RegExpSubclass's undocumented and experimental support for capture transfer.
  • ./internals: Removed emulationGroupMarker since pattern markers are no longer used for hidden captures.

🚀 Features

  • Improved performance of the subclass option, especially with long patterns that contain extended syntax.