Skip to content

Commit bcd1cc1

Browse files
authoredJan 30, 2023
Upgrade packages and Node versions. (trekhleb#989)
* Upgrade to Node 16 * Upgrade packages and Node versions.
1 parent 1d6249d commit bcd1cc1

File tree

7 files changed

+11859
-2368
lines changed

7 files changed

+11859
-2368
lines changed
 

‎.eslintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
},
1515
"settings": {
1616
"react": {
17-
"version": "latest"
17+
"version": "18.2.0"
1818
}
1919
}
2020
}

‎.github/workflows/CI.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
node-version: [ 14.x ]
14+
node-version: [ 16.x ]
1515

1616
steps:
1717
- name: Checkout repository

‎.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v14
1+
v16.15.0

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ rm -rf ./node_modules
287287
npm i
288288
```
289289

290-
Also make sure that you're using a correct Node version (`>=14.16.0`). If you're using [nvm](https://github.com/nvm-sh/nvm) for Node version management you may run `nvm use` from the root folder of the project and the correct version will be picked up.
290+
Also make sure that you're using a correct Node version (`>=16`). If you're using [nvm](https://github.com/nvm-sh/nvm) for Node version management you may run `nvm use` from the root folder of the project and the correct version will be picked up.
291291

292292
**Playground**
293293

‎jest.config.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ module.exports = {
2424
// This option sets the URL for the jsdom environment.
2525
// It is reflected in properties such as location.href.
2626
// @see: https://github.com/facebook/jest/issues/6769
27-
testURL: 'http://localhost/',
27+
testEnvironmentOptions: {
28+
url: 'http://localhost/',
29+
},
2830

2931
// @see: https://jestjs.io/docs/en/configuration#coveragethreshold-object
3032
coverageThreshold: {

‎package-lock.json

+11,840-2,350
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+12-13
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,20 @@
3535
"prepare": "husky install"
3636
},
3737
"devDependencies": {
38-
"@babel/cli": "7.16.8",
39-
"@babel/preset-env": "7.16.11",
40-
"@types/jest": "27.4.0",
41-
"canvas": "2.9.0",
42-
"eslint": "8.7.0",
38+
"@babel/cli": "7.20.7",
39+
"@babel/preset-env": "7.20.2",
40+
"@types/jest": "29.4.0",
41+
"canvas": "2.11.0",
42+
"eslint": "8.33.0",
4343
"eslint-config-airbnb": "19.0.4",
44-
"eslint-plugin-import": "2.25.4",
45-
"eslint-plugin-jest": "25.7.0",
46-
"eslint-plugin-jsx-a11y": "6.5.1",
47-
"eslint-plugin-react": "7.28.0",
48-
"husky": "7.0.4",
49-
"jest": "27.4.7"
44+
"eslint-plugin-import": "2.27.5",
45+
"eslint-plugin-jest": "27.2.1",
46+
"eslint-plugin-jsx-a11y": "6.7.1",
47+
"husky": "8.0.3",
48+
"jest": "29.4.1"
5049
},
5150
"engines": {
52-
"node": ">=14.16.0",
53-
"npm": ">=6.14.0"
51+
"node": ">=16.15.0",
52+
"npm": ">=8.5.5"
5453
}
5554
}

0 commit comments

Comments
 (0)
Please sign in to comment.