Skip to content

2.0.0

Choose a tag to compare

@le0pard le0pard released this 07 Apr 21:46
· 364 commits to main since this release
2c7a929

What's Changed

Breaking Changes

  • Native JavaScript replacement semantics by default: replaceAll and replaceFirst now use native ECMAScript replacement semantics by default ($$ escapes a dollar sign, and \ is treated literally).
  • Legacy Java mode opt-in: If you relied on the previous Java-style escaping (where \ escapes special characters and throws exceptions on invalid capture groups), you must now explicitly pass true for the new javaMode flag (e.g., replaceAll(replacement, true))

Full Changelog: 1.3.3...2.0.0