Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency xregexp to v5 #77

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 9, 2021

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
xregexp (source) ^4.2.4 -> ^5.0.0 age adoption passing confidence

Release Notes

slevithan/xregexp (xregexp)

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

Improvements

Bug Fixes

v4.4.1

Compare Source

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: fc226b3

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