Skip to content

Commit

Permalink
chore(node): drop support for Node 12
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Drop support for Node 12. Minimal version is now Node 14.18.0.
  • Loading branch information
simondel committed Mar 28, 2022
1 parent 5e9d303 commit 10d874e
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: ['12.20', 16.x]
node-version: ['14.18.0', 16.x]
os: ['ubuntu-latest', 'windows-latest']
steps:
- uses: actions/checkout@v2.4.0
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
"release": "lerna version"
},
"engines": {
"node": ">=12",
"npm": ">=5"
"node": ">=14.18.0"
}
}
2 changes: 1 addition & 1 deletion packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
},
"homepage": "https://stryker-mutator.io/",
"engines": {
"node": ">=12"
"node": ">=14.18.0"
},
"dependencies": {
"mutation-testing-metrics": "1.7.10",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"directory": "packages/core"
},
"engines": {
"node": ">=12.20"
"node": ">=14.18.0"
},
"keywords": [
"mutation testing",
Expand Down
10 changes: 5 additions & 5 deletions packages/core/test/unit/stryker-cli.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,13 @@ describe(StrykerCli.name, () => {
});

describe(guardMinimalNodeVersion.name, () => {
it('should fail for < v12.20', () => {
expect(() => guardMinimalNodeVersion('v12.19.0')).throws(
'Node.js version v12.19.0 detected. StrykerJS requires version to match >=12.20. Please update your Node.js version or visit https://nodejs.org/ for additional instructions'
it('should fail for < v14.18.0', () => {
expect(() => guardMinimalNodeVersion('v14.17.0')).throws(
'Node.js version v14.17.0 detected. StrykerJS requires version to match >=14.18.0. Please update your Node.js version or visit https://nodejs.org/ for additional instructions'
);
});
it('should not fail for >= v12.20', () => {
expect(() => guardMinimalNodeVersion('v12.20.0')).not.throws();
it('should not fail for >= v14.18.0', () => {
expect(() => guardMinimalNodeVersion('v14.18.0')).not.throws();
});
});

Expand Down
2 changes: 1 addition & 1 deletion packages/cucumber-runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"directory": "packages/cucumber-runner"
},
"engines": {
"node": ">=12"
"node": ">=14.18.0"
},
"keywords": [
"stryker",
Expand Down
2 changes: 1 addition & 1 deletion packages/instrumenter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"directory": "packages/instrumenter"
},
"engines": {
"node": ">=12"
"node": ">=14.18.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/jasmine-runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
]
},
"engines": {
"node": ">=12"
"node": ">=14.18.0"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"directory": "packages/jest-runner"
},
"engines": {
"node": ">=12"
"node": ">=14.18.0"
},
"keywords": [
"stryker",
Expand Down
2 changes: 1 addition & 1 deletion packages/karma-runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"directory": "packages/karma-runner"
},
"engines": {
"node": ">=12"
"node": ">=14.18.0"
},
"keywords": [
"stryker",
Expand Down
2 changes: 1 addition & 1 deletion packages/mocha-runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"directory": "packages/mocha-runner"
},
"engines": {
"node": ">=12"
"node": ">=14.18.0"
},
"keywords": [
"stryker",
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript-checker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"directory": "packages/typescript-checker"
},
"engines": {
"node": ">=12"
"node": ">=14.18.0"
},
"publishConfig": {
"access": "public"
Expand Down

0 comments on commit 10d874e

Please sign in to comment.