Skip to content

Commit 5f5424c

Browse files
authored
Upgrade dependencies (#356)
1 parent 89278b8 commit 5f5424c

File tree

5 files changed

+1566
-1928
lines changed

5 files changed

+1566
-1928
lines changed

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx lint-staged

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Meanwhile, React Native has grown around that polyfill, then some unexpected err
5050
> - URL incorrectly adds trailing slash [react-native#24428](https://github.com/facebook/react-native/issues/24428).
5151
> - Creating an instance of URL like: `new URL('http://facebook.com')` throws an exception [react-native#16434](https://github.com/facebook/react-native/issues/16434).
5252
53-
Unfortunately, adding `react-native-url-polyfill` to React Native source code will means adding 📦 **74.94 KB** (as of RN 0.63) to the JavaScript bundle.
53+
Unfortunately, adding `react-native-url-polyfill` to React Native source code will means adding 📦 **78.78 KB** (as of RN 0.63) to the JavaScript bundle.
5454

5555
That's why you may need this external dependency. So, if you use `URL` within your app, you probably want to take a look at the installation steps below!
5656

package.json

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,33 +23,34 @@
2323
"scripts": {
2424
"test": "jest",
2525
"lint": "eslint .",
26-
"bundle-size": "node scripts/bundle-size"
26+
"bundle-size": "node scripts/bundle-size",
27+
"prepare": "husky install"
2728
},
2829
"author": "Nicolas Charpentier <[email protected]>",
2930
"license": "MIT",
3031
"dependencies": {
3132
"whatwg-url-without-unicode": "8.0.0-3"
3233
},
3334
"devDependencies": {
34-
"@react-native-community/eslint-config": "^2.0.0",
35+
"@react-native-community/eslint-config": "3.0.1",
3536
"chalk": "^4.0.0",
36-
"eslint": "^7.1.0",
37-
"eslint-plugin-prettier": "^3.1.3",
37+
"eslint": "7.32.0",
38+
"eslint-plugin-prettier": "4.0.0",
3839
"execa": "^5.0.0",
39-
"filesize": "^6.1.0",
40-
"husky": ">=1",
40+
"filesize": "^8.0.0",
41+
"husky": "^7.0.0",
4142
"jest": "^27.0.4",
4243
"lint-staged": ">=8",
4344
"metro-react-native-babel-preset": "^0.66.0",
44-
"ora": "^5.3.0",
45+
"ora": "^5.4.1",
4546
"prepend-file": "^1.3.1",
46-
"prettier": "^2.0.5",
47+
"prettier": "2.3.2",
4748
"react": "17.0.2",
48-
"react-native": "0.64.2",
49+
"react-native": "0.65.1",
4950
"rmfr": "^2.0.0",
5051
"source-map-explorer": "^2.4.2",
5152
"tmp": "^0.2.1",
52-
"typescript": "^4.1.3",
53+
"typescript": "4.4.2",
5354
"uuid": "^8.1.0"
5455
},
5556
"peerDependencies": {
@@ -62,15 +63,10 @@
6263
"./detox/"
6364
]
6465
},
65-
"husky": {
66-
"hooks": {
67-
"pre-commit": "lint-staged"
68-
}
69-
},
7066
"lint-staged": {
7167
"*.js": [
7268
"eslint --fix",
7369
"git add"
7470
]
7571
}
76-
}
72+
}

scripts/bundle-size.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,9 @@ async function generateSourceMapExplorer(
3434
}
3535

3636
(async () => {
37-
const {
38-
name: tempDirectory,
39-
removeCallback: clearTempDirectory,
40-
} = tmp.dirSync({unsafeCleanup: true});
37+
const {name: tempDirectory, removeCallback: clearTempDirectory} = tmp.dirSync(
38+
{unsafeCleanup: true},
39+
);
4140

4241
const tempProjectDirectory = `${tempDirectory}/BundleSize`;
4342

0 commit comments

Comments
 (0)