Skip to content

Commit 8414fdb

Browse files
committed
fix: re2 must be installed as a peerDependency to alleviate build issues
1 parent a050a90 commit 8414fdb

File tree

3 files changed

+3215
-3666
lines changed

3 files changed

+3215
-3666
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,18 @@ This package should hopefully more closely resemble real-world intended usage of
3838

3939
## Install
4040

41+
**NOTE:** As of v3.0.0 you must also install `re2` as a peer dependency.
42+
4143
[npm][]:
4244

4345
```sh
44-
npm install url-regex-safe
46+
npm install url-regex-safe re2
4547
```
4648

4749
[yarn][]:
4850

4951
```sh
50-
yarn add url-regex-safe
52+
yarn add url-regex-safe re2
5153
```
5254

5355

@@ -106,6 +108,7 @@ To use this package with [TypeScript](https://www.typescriptlang.org/), you can
106108
npm install --save-dev @types/url-regex-safe
107109
```
108110

111+
109112
## Options
110113

111114
| Property | Type | Default Value | Description | |

package.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,21 @@
1616
"Diego Perini"
1717
],
1818
"dependencies": {
19-
"ip-regex": "^4.3.0",
20-
"tlds": "^1.217.0"
19+
"ip-regex": "4.3.0",
20+
"tlds": "^1.228.0"
2121
},
2222
"peerDependencies": {
23-
"re2": "^1.16.0"
23+
"re2": "^1.17.2"
2424
},
2525
"peerDependenciesMeta": {
2626
"re2": {
2727
"optional": true
2828
}
2929
},
3030
"devDependencies": {
31-
"@babel/cli": "^7.12.16",
32-
"@babel/core": "^7.12.16",
33-
"@babel/preset-env": "^7.12.16",
31+
"@babel/cli": "^7.16.7",
32+
"@babel/core": "^7.16.7",
33+
"@babel/preset-env": "^7.16.7",
3434
"@commitlint/cli": "latest",
3535
"@commitlint/config-conventional": "latest",
3636
"ava": "latest",
@@ -40,13 +40,14 @@
4040
"cross-env": "latest",
4141
"eslint": "latest",
4242
"eslint-config-xo-lass": "latest",
43-
"eslint-plugin-compat": "^3.9.0",
43+
"eslint-plugin-compat": "^4.0.0",
4444
"eslint-plugin-node": "^11.1.0",
4545
"fixpack": "latest",
4646
"husky": "latest",
4747
"jsdom": "15",
4848
"lint-staged": "latest",
4949
"nyc": "latest",
50+
"re2": "latest",
5051
"remark-cli": "latest",
5152
"remark-preset-github": "latest",
5253
"tinyify": "^3.0.0",

0 commit comments

Comments
 (0)