Skip to content

Commit

Permalink
feat!: update minimum required Node.js version to 18.12 (LTS)
Browse files Browse the repository at this point in the history
Node.js 16 LTS went EOL on 2023-09-11
  • Loading branch information
ansgarm committed Oct 9, 2023
1 parent e883479 commit df0722a
Show file tree
Hide file tree
Showing 34 changed files with 53 additions and 51 deletions.
2 changes: 1 addition & 1 deletion examples/typescript/aws-cloudfront-proxy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
"devDependencies": {
"@types/jest": "27.5.2",
"@types/node": "16.18.23",
"@types/node": "18.11.19",
"cdktf-cli": "0.0.0",
"jest": "^27.5.1",
"ts-node": "^10.9.1",
Expand Down
2 changes: 1 addition & 1 deletion examples/typescript/aws-import/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"devDependencies": {
"@types/jest": "27.5.2",
"@types/node": "16.18.23",
"@types/node": "18.11.19",
"cdktf-cli": "0.0.0",
"jest": "^27.5.1",
"ts-node": "^10.9.1",
Expand Down
4 changes: 2 additions & 2 deletions examples/typescript/aws-kubernetes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
"upgrade:next": "npm i cdktf@next cdktf-cli@next"
},
"engines": {
"node": ">=16.0"
"node": ">=18.0"
},
"dependencies": {
"cdktf": "0.0.0",
"constructs": "^10.0.25"
},
"devDependencies": {
"@types/jest": "27.5.2",
"@types/node": "16.18.23",
"@types/node": "18.11.19",
"cdktf-cli": "0.0.0",
"jest": "^27.5.1",
"ts-node": "^10.9.1",
Expand Down
2 changes: 1 addition & 1 deletion examples/typescript/aws-multiple-stacks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"devDependencies": {
"@types/jest": "27.5.2",
"@types/node": "16.18.23",
"@types/node": "18.11.19",
"ts-node": "^10.9.1",
"typescript": "^5.0.2"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/typescript/aws-prebuilt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"devDependencies": {
"@types/jest": "27.5.2",
"@types/node": "16.18.23",
"@types/node": "18.11.19",
"cdktf-cli": "0.0.0",
"jest": "^27.5.1",
"ts-node": "^10.9.1",
Expand Down
4 changes: 2 additions & 2 deletions examples/typescript/azure-app-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
"upgrade:next": "npm i cdktf@next cdktf-cli@next"
},
"engines": {
"node": ">=16.0"
"node": ">=18.0"
},
"dependencies": {
"cdktf": "0.0.0",
"constructs": "^10.0.25"
},
"devDependencies": {
"@types/jest": "27.5.2",
"@types/node": "16.18.23",
"@types/node": "18.11.19",
"cdktf-cli": "0.0.0",
"jest": "^27.5.1",
"ts-node": "^10.9.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"upgrade:next": "npm i cdktf@next cdktf-cli@next"
},
"engines": {
"node": ">=16.0"
"node": ">=18.0"
},
"dependencies": {
"@cdktf/provider-azurerm": "^9.0.6",
Expand All @@ -24,7 +24,7 @@
},
"devDependencies": {
"@types/jest": "^29.5.0",
"@types/node": "16.18.23",
"@types/node": "18.11.19",
"jest": "^29.5.0",
"ts-jest": "^29.0.5",
"ts-node": "^10.9.1",
Expand Down
4 changes: 2 additions & 2 deletions examples/typescript/azure/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
"upgrade:next": "npm i cdktf@next cdktf-cli@next"
},
"engines": {
"node": ">=16.0"
"node": ">=18.0"
},
"dependencies": {
"cdktf": "0.0.0",
"constructs": "^10.0.25"
},
"devDependencies": {
"@types/jest": "27.5.2",
"@types/node": "16.18.23",
"@types/node": "18.11.19",
"cdktf-cli": "0.0.0",
"jest": "^27.5.1",
"ts-node": "^10.9.1",
Expand Down
4 changes: 2 additions & 2 deletions examples/typescript/backends/azurerm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
"upgrade:next": "npm i cdktf@next cdktf-cli@next"
},
"engines": {
"node": ">=16.0"
"node": ">=18.0"
},
"dependencies": {
"cdktf": "0.0.0",
"constructs": "^10.0.25"
},
"devDependencies": {
"@types/jest": "27.5.2",
"@types/node": "16.18.23",
"@types/node": "18.11.19",
"cdktf-cli": "0.0.0",
"jest": "^27.5.1",
"ts-node": "^10.9.1",
Expand Down
4 changes: 2 additions & 2 deletions examples/typescript/backends/cloud/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
"upgrade:next": "npm i cdktf@next cdktf-cli@next"
},
"engines": {
"node": ">=16.0"
"node": ">=18.0"
},
"dependencies": {
"cdktf": "0.0.0",
"constructs": "^10.0.25"
},
"devDependencies": {
"@types/jest": "27.5.2",
"@types/node": "16.18.23",
"@types/node": "18.11.19",
"cdktf-cli": "0.0.0",
"jest": "^27.5.1",
"ts-node": "^10.9.1",
Expand Down
4 changes: 2 additions & 2 deletions examples/typescript/backends/gcs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
"upgrade:next": "npm i cdktf@next cdktf-cli@next"
},
"engines": {
"node": ">=16.0"
"node": ">=18.0"
},
"dependencies": {
"cdktf": "0.0.0",
"constructs": "^10.0.25"
},
"devDependencies": {
"@types/jest": "27.5.2",
"@types/node": "16.18.23",
"@types/node": "18.11.19",
"cdktf-cli": "0.0.0",
"jest": "^27.5.1",
"ts-node": "^10.9.1",
Expand Down
4 changes: 2 additions & 2 deletions examples/typescript/backends/remote/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
"upgrade:next": "npm i cdktf@next cdktf-cli@next"
},
"engines": {
"node": ">=16.0"
"node": ">=18.0"
},
"dependencies": {
"cdktf": "0.0.0",
"constructs": "^10.0.25"
},
"devDependencies": {
"@types/jest": "27.5.2",
"@types/node": "16.18.23",
"@types/node": "18.11.19",
"cdktf-cli": "0.0.0",
"jest": "^27.5.1",
"ts-node": "^10.9.1",
Expand Down
4 changes: 2 additions & 2 deletions examples/typescript/backends/s3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
"upgrade:next": "npm i cdktf@next cdktf-cli@next"
},
"engines": {
"node": ">=16.0"
"node": ">=18.0"
},
"dependencies": {
"cdktf": "0.0.0",
"constructs": "^10.0.25"
},
"devDependencies": {
"@types/jest": "27.5.2",
"@types/node": "16.18.23",
"@types/node": "18.11.19",
"cdktf-cli": "0.0.0",
"jest": "^27.5.1",
"ts-node": "^10.9.1",
Expand Down
2 changes: 1 addition & 1 deletion examples/typescript/docker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"devDependencies": {
"@types/jest": "27.5.2",
"@types/node": "16.18.23",
"@types/node": "18.11.19",
"ts-node": "^10.9.1",
"typescript": "^5.0.2",
"jest": "^27.5.1"
Expand Down
2 changes: 1 addition & 1 deletion examples/typescript/documentation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"devDependencies": {
"@types/jest": "27.5.2",
"@types/node": "16.18.23",
"@types/node": "18.11.19",
"cdktf-cli": "0.0.0",
"jest": "^27.5.1",
"ts-node": "^10.9.1",
Expand Down
4 changes: 2 additions & 2 deletions examples/typescript/google-cloudrun/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
"upgrade:next": "npm i cdktf@next cdktf-cli@next"
},
"engines": {
"node": ">=16.0"
"node": ">=18.0"
},
"dependencies": {
"cdktf": "0.0.0",
"constructs": "^10.0.25"
},
"devDependencies": {
"@types/jest": "27.5.2",
"@types/node": "16.18.23",
"@types/node": "18.11.19",
"cdktf-cli": "0.0.0",
"jest": "^27.5.1",
"ts-node": "^10.9.1",
Expand Down
4 changes: 2 additions & 2 deletions examples/typescript/google/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
"upgrade:next": "npm i cdktf@next cdktf-cli@next"
},
"engines": {
"node": ">=16.0"
"node": ">=18.0"
},
"dependencies": {
"cdktf": "0.0.0",
"constructs": "^10.0.25"
},
"devDependencies": {
"@types/jest": "27.5.2",
"@types/node": "16.18.23",
"@types/node": "18.11.19",
"cdktf-cli": "0.0.0",
"jest": "^27.5.1",
"ts-node": "^10.9.1",
Expand Down
4 changes: 2 additions & 2 deletions examples/typescript/kubernetes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
"upgrade:next": "npm i cdktf@next cdktf-cli@next"
},
"engines": {
"node": ">=16.0"
"node": ">=18.0"
},
"dependencies": {
"cdktf": "0.0.0",
"constructs": "^10.0.25"
},
"devDependencies": {
"@types/jest": "27.5.2",
"@types/node": "16.18.23",
"@types/node": "18.11.19",
"cdktf-cli": "0.0.0",
"jest": "^27.5.1",
"ts-node": "^10.9.1",
Expand Down
2 changes: 1 addition & 1 deletion examples/typescript/provisioner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"devDependencies": {
"@types/jest": "27.5.2",
"@types/node": "16.18.23",
"@types/node": "18.11.19",
"jest": "^27.5.1",
"ts-node": "^10.9.1",
"typescript": "^5.0.2"
Expand Down
4 changes: 2 additions & 2 deletions examples/typescript/ucloud/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
"upgrade:next": "npm i cdktf@next cdktf-cli@next"
},
"engines": {
"node": ">=16.0"
"node": ">=18.0"
},
"dependencies": {
"cdktf": "0.0.0",
"constructs": "^10.0.25"
},
"devDependencies": {
"@types/jest": "27.5.2",
"@types/node": "16.18.23",
"@types/node": "18.11.19",
"cdktf-cli": "0.0.0",
"jest": "^27.5.1",
"ts-node": "^10.9.1",
Expand Down
4 changes: 2 additions & 2 deletions examples/typescript/vault/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
"upgrade:next": "npm i cdktf@next cdktf-cli@next"
},
"engines": {
"node": ">=16.0"
"node": ">=18.0"
},
"dependencies": {
"cdktf": "0.0.0",
"constructs": "^10.0.25"
},
"devDependencies": {
"@types/jest": "27.5.2",
"@types/node": "16.18.23",
"@types/node": "18.11.19",
"cdktf-cli": "0.0.0",
"jest": "^27.5.1",
"ts-node": "^10.9.1",
Expand Down
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,5 @@
"*.d.ts",
"*.js"
]
},
"resolutions": {
"@types/node": "16.18.23"
}
}
2 changes: 1 addition & 1 deletion packages/@cdktf/cli-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
"@types/json-schema": "^7.0.11",
"@types/lodash.isequal": "^4.5.6",
"@types/nock": "^11.1.0",
"@types/node": "16.18.23",
"@types/node": "18.11.19",
"@types/node-fetch": "2.6.3",
"@types/parse-gitignore": "^1.0.0",
"@types/react": "18.0.25",
Expand Down
2 changes: 1 addition & 1 deletion packages/@cdktf/cli-core/templates/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
"upgrade:next": "npm i cdktf@next cdktf-cli@next"
},
"engines": {
"node": ">=16.0"
"node": ">=18.0"
}
}
2 changes: 1 addition & 1 deletion packages/@cdktf/hcl2cdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"@types/deep-equal": "^1.0.1",
"@types/glob": "^8.1.0",
"@types/jest": "^29.5.0",
"@types/node": "16.18.23",
"@types/node": "18.11.19",
"@types/reserved-words": "^0.1.0",
"deepmerge": "^4.3.1",
"jest": "^29.5.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/@cdktf/hcl2cdk/test/convertProject.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ app.synth();`,
"upgrade:next": "npm i cdktf@next cdktf-cli@next"
},
"engines": {
"node": ">=16.0"
"node": ">=18.0"
},
"dependencies": {
"cdktf": "latest",
Expand Down
2 changes: 1 addition & 1 deletion packages/@cdktf/hcl2json/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"devDependencies": {
"@types/fs-extra": "^11.0.1",
"@types/jest": "^29.5.0",
"@types/node": "16.18.23",
"@types/node": "18.11.19",
"jest": "^29.5.0",
"ts-jest": "^29.1.0",
"typescript": "^5.0.3"
Expand Down
2 changes: 1 addition & 1 deletion packages/@cdktf/provider-generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@cdktf/commons": "0.0.0",
"@cdktf/hcl2json": "0.0.0",
"@cdktf/provider-schema": "0.0.0",
"@types/node": "16.18.23",
"@types/node": "18.11.19",
"codemaker": "^1.87.0",
"deepmerge": "^4.2.2",
"fs-extra": "^8.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/cdktf-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
"@types/json-schema": "^7.0.11",
"@types/lodash.isequal": "^4.5.6",
"@types/nock": "^11.1.0",
"@types/node": "16.18.23",
"@types/node": "18.11.19",
"@types/parse-gitignore": "^1.0.0",
"@types/pidusage": "^2.0.2",
"@types/react": "18.0.25",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async function checkGoVersion() {

async function checkNodeVersion() {
const out = await getNodeVersion();
throwIfLowerVersion("Node.js", "16.13.0", out);
throwIfLowerVersion("Node.js", "18.12.0", out);
}

export async function checkEnvironment() {
Expand Down
Loading

0 comments on commit df0722a

Please sign in to comment.