Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 9, 2021

This PR contains the following updates:

Package Change Age Confidence
xregexp (source) ^4.2.4 -> ^5.0.0 age confidence

Release Notes

slevithan/xregexp (xregexp)

v5.1.2

Compare Source

Bug Fixes

  • Fix prototype pollution vulnerability in pattern caches: #​362

v5.1.1

Compare Source

Improvements

  • Support and defer to native /d flag in ES2021 environments
  • Upgrade to Unicode 14.0.0 final
  • Remove zuul as devDependency

Bug Fixes

  • Fix types path in package.json
  • Minor docs fixes

v5.1.0

Compare Source

Breaking Changes

  • XRegExp.matchRecursive: When doing a global, non-sticky search and providing valueNames, return an empty array if no matches are found, rather than an array with one object containing a between value that contains the whole target string (this change is to match every other case when no matches are found, e.g. when not providing valueNames, not using global with flag g, or doing a sticky search with flag y): 6e1711e

Improvements

  • XRegExp.matchRecursive: Add support for matching with unbalanced delimiters (new unbalanced option with supported values 'error' [default], 'skip', and 'skip-lazy'): #​96
  • Upgrade to Unicode 14.0.0: 0f52a62

v5.0.2

Compare Source

  • Fix TypeScript definition for XRegExp.matchChain: #​325
  • Fix XRegExp.escape to handle -, ,, and # in a way that is compatible with ES6 flag u: #​323

v5.0.1

Compare Source

  • Hotfix for broken npm package.
  • Adds docs folder with extensive documentation.

v5.0.0

Compare Source

Breaking Changes

  • Enable the namespacing feature by default for alignment with ES2018 (moves named capture properties to the groups object of matches and to the last argument of replacement callbacks): #​316
  • Handle ES2018 capture names (mostly this adds support for an extended set of Unicode characters, but it also prevents using a number as the first character in a capture name): #​247
  • Remove support for Unicode blocks, for alignment with ES2018 (use Unicode scripts instead): #​225

Improvements

  • Support optional 'Script=' prefix (from ES2018 syntax) for Unicode script tokens: #​225
  • XRegExp.matchRecursive: Add delimiter and position info to error when unbalanced delimiters are found: #​293
  • Avoid inserting unneeded (?:) into native regex source in more cases: 076f950 and d78a262
  • Defer to native flag s in ES2018 environments: 98abea8

Bug Fixes

  • XRegExp.exec: Preserve the groups object that comes from native ES2018 named capture: c4a83e7
  • XRegExp.exec: Set the groups property to undefined if there are no named captures: #​320
  • XRegExp.escape: Escape whitespace in a way that works with ES6 flag u: #​197
  • XRegExp.replace: Throw when using native named capture and a numbered backreference one higher than the number of captures in the replacement text: #​317
  • XRegExp.replace: Fix edge case issues with replacement text syntax: #​318

v4.4.1

Compare Source

  • Add browser field to package.json to fix webpack: #​308

v4.4.0

Compare Source

  • Upgrade to Unicode 13.0.0
  • Add TypeScript definitions and tests #​285 #​286 #​288
  • Fix infinite loop in IE11 when used with core-js 3.6.0+ #​300

v4.3.0

Compare Source


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@changeset-bot
Copy link

changeset-bot bot commented Feb 9, 2021

⚠️ No Changeset found

Latest commit: c5af810

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@slevithan
Copy link

Hi! XRegExp v5 has a breaking change described at https://github.com/slevithan/xregexp#named-capture-breaking-change-in-xregexp-5

Specifically, named backreference properties now appear on the result's groups object (following ES2018), rather than directly on the result. To restore the old handling so you don't need to update old code, run the following line after importing XRegExp: XRegExp.uninstall('namespacing').

XRegExp 4.1.0 and later allow introducing the new behavior without upgrading to XRegExp 5 by running XRegExp.install('namespacing').

Following is the most commonly needed change to update code for the new behavior:

// Change this
const name = XRegExp.exec(str, regexWithNamedCapture).name;

// To this
const name = XRegExp.exec(str, regexWithNamedCapture).groups.name;

Let me know if you have any questions and I'll be happy to help!

@renovate renovate bot force-pushed the renovate/xregexp-5.x branch from 7264eb2 to 9b91ad0 Compare November 15, 2021 06:23
@renovate renovate bot changed the title fix(deps): update dependency xregexp to v5 Update dependency xregexp to v5 Mar 26, 2022
@renovate renovate bot changed the title Update dependency xregexp to v5 fix(deps): update dependency xregexp to v5 Mar 18, 2023
@renovate renovate bot force-pushed the renovate/xregexp-5.x branch 2 times, most recently from 8e96824 to fc226b3 Compare August 30, 2023 23:10
@renovate renovate bot force-pushed the renovate/xregexp-5.x branch from fc226b3 to 73300da Compare August 10, 2025 15:09
@renovate renovate bot force-pushed the renovate/xregexp-5.x branch from 73300da to 1b346cb Compare August 19, 2025 15:42
@renovate renovate bot force-pushed the renovate/xregexp-5.x branch from 1b346cb to 9185d92 Compare August 31, 2025 10:29
@renovate renovate bot force-pushed the renovate/xregexp-5.x branch from 9185d92 to c5af810 Compare September 25, 2025 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.