Skip to content

Commit

Permalink
chore: Update to Node.js 18
Browse files Browse the repository at this point in the history
  • Loading branch information
tommy351 committed Feb 9, 2024
1 parent d6ba2eb commit d627995
Show file tree
Hide file tree
Showing 30 changed files with 1,881 additions and 2,871 deletions.
21 changes: 21 additions & 0 deletions .changeset/healthy-starfishes-peel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
"@kosko/aggregate-error": major
"@kosko/cli": major
"@kosko/common-utils": major
"@kosko/config": major
"@kosko/env": major
"@kosko/exec-utils": major
"@kosko/generate": major
"@kosko/helm": major
"kosko": major
"@kosko/kustomize": major
"@kosko/log": major
"@kosko/migrate": major
"@kosko/require": major
"@kosko/template": major
"@kosko/template-deployed-service": major
"@kosko/template-environment": major
"@kosko/yaml": major
---

Drop support for Node.js 14. The minum supported Node.js version is 18 now.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- lint
strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x]
node-version: [18.x, 20.x, 21.x]
os: [ubuntu-20.04, windows-latest]
steps:
- uses: actions/checkout@v3
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
save-workspace-protocol = rolling
auto-install-peers = false
2 changes: 1 addition & 1 deletion examples/run-programmatically-esm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"private": true,
"type": "module",
"engines": {
"node": ">=14.18.0"
"node": ">=18"
},
"dependencies": {
"@kosko/env": "^4.0.1",
Expand Down
6 changes: 3 additions & 3 deletions internal/build-scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"version": "0.0.0",
"private": true,
"engines": {
"node": ">=14.18.0"
"node": ">=18"
},
"bin": "bin/build-scripts.js",
"type": "module",
"dependencies": {
"@microsoft/api-extractor": "^7.33.2",
"@microsoft/api-extractor": "^7.40.1",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.0.1",
"@rollup/plugin-replace": "^5.0.1",
Expand All @@ -22,6 +22,6 @@
"rollup": "^3.3.0",
"rollup-plugin-swc": "^0.2.1",
"tslib": "^2.4.1",
"typescript": "^4.8.3"
"typescript": "^5.3.3"
}
}
2 changes: 1 addition & 1 deletion internal/jest-preset/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.0",
"private": true,
"engines": {
"node": ">=14.18.0"
"node": ">=18"
},
"dependencies": {
"@kosko/jest-serializer-path": "workspace:^",
Expand Down
2 changes: 1 addition & 1 deletion internal/jest-serializer-path/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.0",
"private": true,
"engines": {
"node": ">=14.18.0"
"node": ">=18"
},
"main": "dist/index.node.cjs",
"module": "dist/index.node.mjs",
Expand Down
2 changes: 1 addition & 1 deletion internal/test-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.0",
"private": true,
"engines": {
"node": ">=14.18.0"
"node": ">=18"
},
"main": "dist/index.node.cjs",
"module": "dist/index.node.mjs",
Expand Down
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,27 +28,27 @@
"*.{js,ts,jsx,tsx,cjs,mjs,cts,mts}": "eslint --fix"
},
"engines": {
"node": ">=14.18.0"
"node": ">=18"
},
"devDependencies": {
"@changesets/changelog-github": "^0.4.6",
"@changesets/cli": "^2.24.4",
"@tsconfig/node14": "^1.0.3",
"@tsconfig/node18": "^18.2.2",
"@types/expect-puppeteer": "^5.0.1",
"@types/jest": "^29.0.3",
"@types/jest-environment-puppeteer": "^5.0.2",
"@types/node": "^18.7.18",
"@types/puppeteer": "^5.4.6",
"@typescript-eslint/eslint-plugin": "^5.38.0",
"@typescript-eslint/parser": "^5.38.0",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"cross-env": "^7.0.3",
"eslint": "^8.23.1",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-jest": "^27.0.4",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-jest": "^27.6.3",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.31.8",
"eslint-plugin-unicorn": "^44.0.2",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-unicorn": "^51.0.1",
"execa": "^5.1.1",
"expect-puppeteer": "^6.1.1",
"globby": "^11.0.2",
Expand All @@ -59,13 +59,13 @@
"kubernetes-models": "^4.1.0",
"lint-staged": "^13.0.3",
"npm-run-all": "^4.1.5",
"prettier": "^2.8.7",
"prettier": "^3.2.5",
"puppeteer": "^18.0.3",
"syncpack": "^8.2.4",
"ts-jest": "^29.0.1",
"ts-node": "^10.9.1",
"ts-node": "^10.9.2",
"turbo": "^1.8.8",
"typescript": "^4.8.3",
"typescript": "^5.3.3",
"verdaccio": "^5.19.0",
"webpack": "^5.76.0",
"webpack-cli": "^4.10.0"
Expand All @@ -86,5 +86,5 @@
}
}
},
"packageManager": "pnpm@7.33.0"
"packageManager": "pnpm@8.15.1"
}
2 changes: 1 addition & 1 deletion packages/aggregate-error/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"access": "public"
},
"engines": {
"node": ">=14.18.0"
"node": ">=18"
},
"devDependencies": {
"@kosko/build-scripts": "workspace:^",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"access": "public"
},
"engines": {
"node": ">=14.18.0"
"node": ">=18"
},
"dependencies": {
"@kosko/aggregate-error": "workspace:^",
Expand Down
2 changes: 1 addition & 1 deletion packages/common-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"access": "public"
},
"engines": {
"node": ">=14.18.0"
"node": ">=18"
},
"devDependencies": {
"@kosko/build-scripts": "workspace:^",
Expand Down
2 changes: 1 addition & 1 deletion packages/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"access": "public"
},
"engines": {
"node": ">=14.18.0"
"node": ">=18"
},
"dependencies": {
"@iarna/toml": "^2.2.5",
Expand Down
6 changes: 3 additions & 3 deletions packages/env/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"access": "public"
},
"engines": {
"node": ">=14.18.0"
"node": ">=18"
},
"dependencies": {
"@kosko/common-utils": "workspace:^",
Expand All @@ -58,7 +58,7 @@
"@kosko/test-utils": "workspace:^",
"@types/node": "^18.11.14",
"execa": "^5.1.1",
"ts-node": "^10.9.1",
"typescript": "^4.8.3"
"ts-node": "^10.9.2",
"typescript": "^5.3.3"
}
}
2 changes: 1 addition & 1 deletion packages/exec-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"access": "public"
},
"engines": {
"node": ">=14.18.0"
"node": ">=18"
},
"dependencies": {
"cross-spawn": "^7.0.3"
Expand Down
6 changes: 3 additions & 3 deletions packages/generate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"access": "public"
},
"engines": {
"node": ">=14.18.0"
"node": ">=18"
},
"dependencies": {
"@kosko/aggregate-error": "workspace:^",
Expand All @@ -64,8 +64,8 @@
"bl": "^5.0.0",
"execa": "^5.1.1",
"kubernetes-models": "^4.1.0",
"ts-node": "^10.9.1",
"typescript": "^4.8.3"
"ts-node": "^10.9.2",
"typescript": "^5.3.3"
},
"jest": {
"preset": "@kosko/jest-preset"
Expand Down
2 changes: 1 addition & 1 deletion packages/helm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"access": "public"
},
"engines": {
"node": ">=14.18.0"
"node": ">=18"
},
"dependencies": {
"@kosko/common-utils": "workspace:^",
Expand Down
2 changes: 1 addition & 1 deletion packages/kosko/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"access": "public"
},
"engines": {
"node": ">=14.18.0"
"node": ">=18"
},
"dependencies": {
"@kosko/cli": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/kustomize/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"access": "public"
},
"engines": {
"node": ">=14.18.0"
"node": ">=18"
},
"dependencies": {
"@kosko/common-utils": "workspace:^",
Expand Down
2 changes: 1 addition & 1 deletion packages/log/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"access": "public"
},
"engines": {
"node": ">=14.18.0"
"node": ">=18"
},
"dependencies": {
"@kosko/common-utils": "workspace:^",
Expand Down
2 changes: 1 addition & 1 deletion packages/migrate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"access": "public"
},
"engines": {
"node": ">=14.18.0"
"node": ">=18"
},
"dependencies": {
"@kosko/yaml": "workspace:^",
Expand Down
6 changes: 3 additions & 3 deletions packages/require/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"access": "public"
},
"engines": {
"node": ">=14.18.0"
"node": ">=18"
},
"dependencies": {
"@kosko/common-utils": "workspace:^"
Expand All @@ -51,8 +51,8 @@
"@kosko/test-utils": "workspace:^",
"@types/node": "^18.11.9",
"execa": "^5.1.1",
"ts-node": "^10.9.1",
"typescript": "^4.8.3"
"ts-node": "^10.9.2",
"typescript": "^5.3.3"
},
"jest": {
"preset": "@kosko/jest-preset"
Expand Down
2 changes: 1 addition & 1 deletion packages/template-deployed-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"access": "public"
},
"engines": {
"node": ">=14.18.0"
"node": ">=18"
},
"dependencies": {
"@kosko/template": "workspace:^"
Expand Down
2 changes: 1 addition & 1 deletion packages/template-environment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"access": "public"
},
"engines": {
"node": ">=14.18.0"
"node": ">=18"
},
"dependencies": {
"@kosko/template": "workspace:^"
Expand Down
2 changes: 1 addition & 1 deletion packages/template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"access": "public"
},
"engines": {
"node": ">=14.18.0"
"node": ">=18"
},
"dependencies": {
"@kosko/log": "workspace:^",
Expand Down
12 changes: 6 additions & 6 deletions packages/template/src/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ export type Options<T, O> = yargs.Options & {
} & (T extends string
? { type: "string" } | { string: true }
: T extends number
? { type: "number" | "count" } | { number: true } | { count: true }
: T extends boolean
? { type: "boolean" } | { boolean: true }
: T extends any[]
? { type: "array" } | { array: true }
: unknown);
? { type: "number" | "count" } | { number: true } | { count: true }
: T extends boolean
? { type: "boolean" } | { boolean: true }
: T extends any[]
? { type: "array" } | { array: true }
: unknown);

/**
* @public
Expand Down
2 changes: 1 addition & 1 deletion packages/yaml/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"access": "public"
},
"engines": {
"node": ">=14.18.0"
"node": ">=18"
},
"dependencies": {
"@kosko/common-utils": "workspace:^",
Expand Down
Loading

0 comments on commit d627995

Please sign in to comment.