Skip to content

Releases: slevithan/regex

v5.0.2

18 Nov 17:10
Compare
Choose a tag to compare

🚀 Features

  • Enables better tree shaking for ./internals.

v5.0.1

17 Nov 18:06
Compare
Choose a tag to compare

🚀 Features

  • Minor improvements for subclass types and error handling.
  • Updated logo for new library name.

v5.0.0

15 Nov 21:25
Compare
Choose a tag to compare

This library was renamed from just regex to Regex+, to make it easier to refer to the library and its regex flavor. The package and tag name remain regex as before, so this has no effect on code.

Version 5 is a minor update with small breaking changes that won't affect most people.

🚨 Breaking

  • Type files (d.ts) were moved from ./types to ./dist/esm and ./dist/cjs.
  • The undocumented ./atomic export added in v4.4.0 was renamed as ./internals.

🚀 Features

  • RegExpSubclass was made available via ./internals.

🐞 Fixes

  • Type resolution works correctly when using the library as CommonJS. (#29, @tao-cumplido)
  • When using option subclass and flag d, resulting subpattern indices are adjusted to account for emulation groups.

v4.4.0

01 Nov 17:55
Compare
Choose a tag to compare

🚀 Features

  • Added ./atomic to exports, allowing direct use of the atomic and possessive plugins in other libraries.

v4.3.3

02 Oct 15:52
Compare
Choose a tag to compare

🚀 Features

  • When an invalid regex throws, always include the generated source and flags in the error message (some browsers automatically include them, but Firefox and Safari don't).

🐞 Fixes

  • Convert numbers interpolated in enclosed \u{…} to hexadecimal. In other words, although interpolating a string like regex`\u{${'160'}}` returns /\u{160}/, interpolating the number regex`\u{${160}}` in this context returns /\u{A0}/. (#24, @graphemecluster)

v4.3.2

07 Sep 23:36
Compare
Choose a tag to compare

🐞 Fixes

  • Fix for character classes that contained + after certain other punctuation.

v4.3.1

06 Sep 21:06
Compare
Choose a tag to compare

🐞 Fixes

  • Fix usage of multiple possessive quantifiers in the same regex.

v4.3.0

06 Sep 03:21
Compare
Choose a tag to compare

🚀 Features

  • Replaced the use of \u{0} with \x00 in emitted source for sandboxed null tokens.
  • Removed the rewrite function's deprecated alias processRegex.
    • rewrite is no longer considered experimental.

v4.2.1

05 Sep 00:44
Compare
Choose a tag to compare

🚀 Features

  • Renamed function processRegex as rewrite.
    • processRegex remains as a deprecated alias but will be removed in the next release.

v4.2.0

04 Sep 19:31
Compare
Choose a tag to compare

🚀 Features

  • Added function processRegex, which returns an object with expression and flags strings.
    • Warning: This feature is experimental and may change without following semver.

🐞 Fixes

  • When using emulated flag x, if flag v is disabled or unsupported and unicodeSetsPlugin is explicitly set to null, allow whitespace-separated, unescaped (literal) hyphens on the end of character class ranges.