Skip to content

Commit

Permalink
Bump version to 5.0.0 (#321)
Browse files Browse the repository at this point in the history
Changes include:

* BREAKING: Handle ES2018 capture names: #247
* BREAKING: Enable `namespacing` feature by default: #316
* BREAKING: Remove Unicode Blocks addon: 4860122
* restore perf tweak that made a meaningful difference in regex construction perf tests: 5f18261
* XRegExp.exec: preserve groups obj that comes from native ES2018 named capture: c4a83e7
* Make XRegExp.exec set groups prop to undefined if there are no named captures (closes #320): 7fea476
* Support optional 'Script=' prefix (from ES2018 syntax) for Unicode script tokens (#225): bb35ead
* XRegExp.matchRecursive: Add delimiter and pos info when unbalanced delimiters are found (closes #293): 9660b90
* XRegExp.escape: Escape whitespace in a way that works with ES6 flag u (fixes #197): e22a52b

To generate this commit, I adapted the steps at #205 (comment)

Here's a fuller list of changes that can be needed with new releases:

> * Version number
>   * Update version number and year in headers, config files, README.
>   * Update version number in `XRegExp.version`.
> * Publish
>   * Publish new git tag. E.g.:
>     * `git tag -a v3.1.0 -m "Release 3.1.0"`.
>     * `git push origin v3.1.0`.
>   * `npm publish`.
  • Loading branch information
josephfrazier committed Feb 8, 2021
1 parent b709238 commit e52e0a0
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# XRegExp 4.4.1-next
# XRegExp 5.0.0-next

[![Build Status](https://github.com/slevithan/xregexp/workflows/Node.js%20CI/badge.svg)](https://github.com/slevithan/xregexp/actions)

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "xregexp",
"version": "4.4.1",
"version": "5.0.0",
"description": "Extended regular expressions",
"homepage": "http://xregexp.com/",
"author": "Steven Levithan <steves_list@hotmail.com>",
Expand Down
2 changes: 1 addition & 1 deletion src/addons/build.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* XRegExp.build 4.4.1
* XRegExp.build 5.0.0
* <xregexp.com>
* Steven Levithan (c) 2012-present MIT License
*/
Expand Down
2 changes: 1 addition & 1 deletion src/addons/matchrecursive.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* XRegExp.matchRecursive 4.4.1
* XRegExp.matchRecursive 5.0.0
* <xregexp.com>
* Steven Levithan (c) 2009-present MIT License
*/
Expand Down
2 changes: 1 addition & 1 deletion src/addons/unicode-base.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* XRegExp Unicode Base 4.4.1
* XRegExp Unicode Base 5.0.0
* <xregexp.com>
* Steven Levithan (c) 2008-present MIT License
*/
Expand Down
2 changes: 1 addition & 1 deletion src/addons/unicode-categories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* XRegExp Unicode Categories 4.4.1
* XRegExp Unicode Categories 5.0.0
* <xregexp.com>
* Steven Levithan (c) 2010-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
Expand Down
2 changes: 1 addition & 1 deletion src/addons/unicode-properties.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* XRegExp Unicode Properties 4.4.1
* XRegExp Unicode Properties 5.0.0
* <xregexp.com>
* Steven Levithan (c) 2012-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
Expand Down
2 changes: 1 addition & 1 deletion src/addons/unicode-scripts.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* XRegExp Unicode Scripts 4.4.1
* XRegExp Unicode Scripts 5.0.0
* <xregexp.com>
* Steven Levithan (c) 2010-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
Expand Down
4 changes: 2 additions & 2 deletions src/xregexp.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* XRegExp 4.4.1
* XRegExp 5.0.0
* <xregexp.com>
* Steven Levithan (c) 2007-present MIT License
*/
Expand Down Expand Up @@ -646,7 +646,7 @@ XRegExp.prototype = new RegExp();
* @memberOf XRegExp
* @type String
*/
XRegExp.version = '4.4.1';
XRegExp.version = '5.0.0';

// ==--------------------------==
// Public methods
Expand Down

0 comments on commit e52e0a0

Please sign in to comment.