Skip to content

Commit

Permalink
feat(node): Drop support for node 14 (#4105)
Browse files Browse the repository at this point in the history
Drop support for Node@^14.18.0. The minimal supported node version is now 16.

BREAKING CHANGE: Node 14 is no longer supported. Please install an LTS version of node: nodejs.org/
  • Loading branch information
danny12321 authored Apr 14, 2023
1 parent 0ac6895 commit a88744f
Show file tree
Hide file tree
Showing 24 changed files with 28 additions and 28 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: ['14.18.0', 16.x]
node-version: [16.x, 18.x]
os: ['ubuntu-latest', 'windows-latest']
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@
"release": "lerna version"
},
"engines": {
"node": ">=14.18.0"
"node": ">=16.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/api/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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": ">=14.18.0"
"node": ">=16.0.0"
},
"dependencies": {
"mutation-testing-metrics": "1.7.14",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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": ">=14.18.0"
"node": ">=16.0.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 @@ -105,13 +105,13 @@ describe(StrykerCli.name, () => {
});

describe(guardMinimalNodeVersion.name, () => {
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 fail for < v16.0.0', () => {
expect(() => guardMinimalNodeVersion('v14.21.3')).throws(
'Node.js version v14.21.3 detected. StrykerJS requires version to match >=16.0.0. Please update your Node.js version or visit https://nodejs.org/ for additional instructions'
);
});
it('should not fail for >= v14.18.0', () => {
expect(() => guardMinimalNodeVersion('v14.18.0')).not.throws();
it('should not fail for >= v16.0.0', () => {
expect(() => guardMinimalNodeVersion('v16.0.0')).not.throws();
});
});

Expand Down
2 changes: 1 addition & 1 deletion packages/cucumber-runner/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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": ">=14.18.0"
"node": ">=16.0.0"
},
"keywords": [
"stryker",
Expand Down
2 changes: 1 addition & 1 deletion packages/grunt-stryker/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/grunt-stryker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
],
"license": "Apache-2.0",
"engines": {
"node": ">= 8"
"node": ">=16.0.0"
},
"main": "Gruntfile.js",
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/instrumenter/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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": ">=14.18.0"
"node": ">=16.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/jasmine-runner/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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": ">=14.18.0"
"node": ">=16.0.0"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-runner/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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": ">=14.18.0"
"node": ">=16.0.0"
},
"keywords": [
"stryker",
Expand Down
2 changes: 1 addition & 1 deletion packages/karma-runner/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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": ">=14.18.0"
"node": ">=16.0.0"
},
"keywords": [
"stryker",
Expand Down
2 changes: 1 addition & 1 deletion packages/mocha-runner/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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": ">=14.18.0"
"node": ">=16.0.0"
},
"keywords": [
"stryker",
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript-checker/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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": ">=14.18.0"
"node": ">=16.0.0"
},
"publishConfig": {
"access": "public"
Expand Down

0 comments on commit a88744f

Please sign in to comment.