Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

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

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

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Feb 10, 2021

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
xregexp (source) 2.0.0 -> 5.1.1 age adoption passing confidence

Release Notes

slevithan/xregexp (xregexp)

v5.1.1

Compare Source

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

v4.2.4

Compare Source

Update @​babel dependencies to v7.2.x

v4.2.3

Compare Source

Hotfix for Babel removing core-js from the runtime package.

v4.2.2

Compare Source

v4.2.0

Compare Source

Upgrades the Unicode addons to Unicode 11.0.0.

v4.1.1

Compare Source

Hotfix for npm package missing the tools/output directory. No code changes.

v4.1.0

Compare Source

New Features

  • Added installable namespacing option (off by default) that moves named capture results to a groups object. This makes it easier to loop over named captures after executing a regex, and aligns with native named capture handling in ES2018. See #​175.
  • Added the Cased_Letter (LC) category to the Unicode Categories addon. See #​220.

Improvements

  • Upgraded Unicode data from version 9.0.0 to 10.0.0. See #​221.
  • The generated source for regexes is now a bit easier to read, with fewer (?:) separating tokens. See #​196.

v4.0.0

Compare Source

Breaking Changes

New Features

v3.2.0

Compare Source

v3.1.1

Compare Source

v3.1.0

Compare Source

v3.0.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 has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/xregexp-5.x branch from f9b724b to a8761d0 Compare April 26, 2021 12:40
@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 a8761d0 to 778b06c Compare October 19, 2021 01:24
@renovate renovate bot force-pushed the renovate/xregexp-5.x branch from 778b06c to e140063 Compare June 18, 2022 20:36
@renovate renovate bot force-pushed the renovate/xregexp-5.x branch from e140063 to 6661de3 Compare September 25, 2022 20:43
@renovate renovate bot force-pushed the renovate/xregexp-5.x branch from 6661de3 to c34b74e Compare November 20, 2022 12:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant