Skip to content

Commit 56782b9

Browse files
authored
chore: drop node 8 support (#9423)
1 parent 37a9402 commit 56782b9

File tree

61 files changed

+61
-108
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+61
-108
lines changed

.circleci/config.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,6 @@ aliases:
1818

1919
version: 2
2020
jobs:
21-
test-node-8:
22-
working_directory: ~/jest
23-
docker:
24-
- image: circleci/node:8
25-
steps:
26-
- checkout
27-
- run:
28-
command: yarn remove-prettier-dep
29-
- restore-cache: *restore-cache
30-
- run: *install
31-
- save-cache: *save-cache
32-
- run:
33-
command: yarn test-ci-partial
34-
- store_test_results:
35-
path: reports/junit
36-
3721
test-node-10:
3822
working_directory: ~/jest
3923
docker:
@@ -123,7 +107,6 @@ workflows:
123107
version: 2
124108
build-and-deploy:
125109
jobs:
126-
- test-node-8
127110
- test-node-10
128111
- test-node-12
129112
- test-node-13

.github/workflows/nodejs.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ jobs:
5454
strategy:
5555
fail-fast: false
5656
matrix:
57-
# https://github.com/actions/setup-node/issues/27
58-
node-version: [8.17.0, 10.x, 12.x, 13.x, 14.x]
57+
node-version: [10.x, 12.x, 13.x, 14.x]
5958
os: [ubuntu-latest, macOS-latest, windows-latest]
6059
runs-on: ${{ matrix.os }}
6160

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
### Chore & Maintenance
1111

1212
- `[*]` [**BREAKING**] TypeScript definitions requires a minimum of TypeScript v3.8 ([#9823](https://github.com/facebook/jest/pull/9823))
13+
- `[*]` [**BREAKING**] Drop support for Node 8 ([#9423](https://github.com/facebook/jest/pull/9423))
1314
- `[jest-runtime]` [**BREAKING**] Remove long-deprecated `require.requireActual` and `require.requireMock` methods ([#9854](https://github.com/facebook/jest/pull/9854))
1415
- `[expect, jest-mock, pretty-format]` [**BREAKING**] Remove `build-es5` from package ([#9945](https://github.com/facebook/jest/pull/9945))
1516
- `[jest-haste-map]` [**BREAKING**] removed `providesModuleNodeModules` ([#8535](https://github.com/facebook/jest/pull/8535))

babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ module.exports = {
4040
},
4141
],
4242
],
43-
test: 'packages/jest-config/src/importEsm.ts',
43+
test: 'packages/jest-config/src/readConfigFileAndSetRootDir.ts',
4444
},
4545
],
4646
plugins: [

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@
9393
"lint:prettier:ci": "prettier '**/*.{md,yml,yaml}' 'website/static/**/*.{css,js}' --check --ignore-path .gitignore",
9494
"postinstall": "opencollective postinstall && yarn build",
9595
"install-no-ts-build": "node ./scripts/remove-postinstall && yarn --no-progress --frozen-lockfile && node ./scripts/build",
96-
"remove-prettier-dep": "node ./scripts/remove-prettier-dep",
9796
"publish": "yarn build-clean && yarn build && lerna publish --silent",
9897
"test-ci": "yarn jest-coverage --color -i --config jest.config.ci.js && yarn test-leak && node ./scripts/mapCoverage.js && codecov",
9998
"test-ci-partial": "yarn jest --color -i --config jest.config.ci.js",
@@ -132,6 +131,6 @@
132131
"logo": "https://opencollective.com/jest/logo.txt"
133132
},
134133
"engines": {
135-
"node": ">= 8.3"
134+
"node": ">= 10.14.2"
136135
}
137136
}

packages/babel-jest/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"@babel/core": "^7.0.0"
2929
},
3030
"engines": {
31-
"node": ">= 8.3"
31+
"node": ">= 10.14.2"
3232
},
3333
"publishConfig": {
3434
"access": "public"

packages/babel-plugin-jest-hoist/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"directory": "packages/babel-plugin-jest-hoist"
88
},
99
"engines": {
10-
"node": ">= 8.3"
10+
"node": ">= 10.14.2"
1111
},
1212
"license": "MIT",
1313
"main": "build/index.js",

packages/babel-preset-jest/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"@babel/core": "^7.0.0"
1717
},
1818
"engines": {
19-
"node": ">= 8.3"
19+
"node": ">= 10.14.2"
2020
},
2121
"publishConfig": {
2222
"access": "public"

packages/diff-sequences/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"diff"
1717
],
1818
"engines": {
19-
"node": ">= 8.3"
19+
"node": ">= 10.14.2"
2020
},
2121
"main": "build/index.js",
2222
"types": "build/index.d.ts",

packages/eslint-config-fb-strict/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"eslint-plugin-react": "^7.1.0"
2121
},
2222
"engines": {
23-
"node": ">= 8.3"
23+
"node": ">= 10.14.2"
2424
},
2525
"publishConfig": {
2626
"access": "public"

0 commit comments

Comments
 (0)