mirror of
https://github.moeyy.xyz/https://github.com/trekhleb/javascript-algorithms.git
synced 2024-12-25 22:46:20 +08:00
Upgrade packages and Node versions. (#989)
* Upgrade to Node 16 * Upgrade packages and Node versions.
This commit is contained in:
parent
1d6249d552
commit
bcd1cc1b00
@ -14,7 +14,7 @@
|
|||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
"react": {
|
"react": {
|
||||||
"version": "latest"
|
"version": "18.2.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
2
.github/workflows/CI.yml
vendored
2
.github/workflows/CI.yml
vendored
@ -11,7 +11,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node-version: [ 14.x ]
|
node-version: [ 16.x ]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
|
@ -287,7 +287,7 @@ rm -rf ./node_modules
|
|||||||
npm i
|
npm i
|
||||||
```
|
```
|
||||||
|
|
||||||
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.
|
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.
|
||||||
|
|
||||||
**Playground**
|
**Playground**
|
||||||
|
|
||||||
|
@ -24,7 +24,9 @@ module.exports = {
|
|||||||
// This option sets the URL for the jsdom environment.
|
// This option sets the URL for the jsdom environment.
|
||||||
// It is reflected in properties such as location.href.
|
// It is reflected in properties such as location.href.
|
||||||
// @see: https://github.com/facebook/jest/issues/6769
|
// @see: https://github.com/facebook/jest/issues/6769
|
||||||
testURL: 'http://localhost/',
|
testEnvironmentOptions: {
|
||||||
|
url: 'http://localhost/',
|
||||||
|
},
|
||||||
|
|
||||||
// @see: https://jestjs.io/docs/en/configuration#coveragethreshold-object
|
// @see: https://jestjs.io/docs/en/configuration#coveragethreshold-object
|
||||||
coverageThreshold: {
|
coverageThreshold: {
|
||||||
|
14318
package-lock.json
generated
14318
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
25
package.json
25
package.json
@ -35,21 +35,20 @@
|
|||||||
"prepare": "husky install"
|
"prepare": "husky install"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/cli": "7.16.8",
|
"@babel/cli": "7.20.7",
|
||||||
"@babel/preset-env": "7.16.11",
|
"@babel/preset-env": "7.20.2",
|
||||||
"@types/jest": "27.4.0",
|
"@types/jest": "29.4.0",
|
||||||
"canvas": "2.9.0",
|
"canvas": "2.11.0",
|
||||||
"eslint": "8.7.0",
|
"eslint": "8.33.0",
|
||||||
"eslint-config-airbnb": "19.0.4",
|
"eslint-config-airbnb": "19.0.4",
|
||||||
"eslint-plugin-import": "2.25.4",
|
"eslint-plugin-import": "2.27.5",
|
||||||
"eslint-plugin-jest": "25.7.0",
|
"eslint-plugin-jest": "27.2.1",
|
||||||
"eslint-plugin-jsx-a11y": "6.5.1",
|
"eslint-plugin-jsx-a11y": "6.7.1",
|
||||||
"eslint-plugin-react": "7.28.0",
|
"husky": "8.0.3",
|
||||||
"husky": "7.0.4",
|
"jest": "29.4.1"
|
||||||
"jest": "27.4.7"
|
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=14.16.0",
|
"node": ">=16.15.0",
|
||||||
"npm": ">=6.14.0"
|
"npm": ">=8.5.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user