diff --git a/CHANGELOG.md b/CHANGELOG.md index 1d5569f..0e8f088 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## v2.3.1 + +- Fix `invalid regexp group` error in browsers or environments that do not support the negative lookbehind regular expression assertion. + ## v2.3.0 - Accept the `Error` constructor as `circularValue` option to throw on circular references as the regular JSON.stringify would: diff --git a/index.js b/index.js index 1e11c2a..7b3b1fb 100644 --- a/index.js +++ b/index.js @@ -18,9 +18,9 @@ exports.configure = configure module.exports = stringify // eslint-disable-next-line -const strEscapeSequencesRegExp = /[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(? charCode ? meta[charCode] diff --git a/package.json b/package.json index 088d2f1..814dfa6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "safe-stable-stringify", - "version": "2.3.0", + "version": "2.3.1", "description": "Deterministic and safely JSON.stringify to quickly serialize JavaScript objects", "exports": { "require": "./index.js",