Skip to content

Commit

Permalink
chore(package.json): bump engines and @types/node to >=18.x (#1487)
Browse files Browse the repository at this point in the history
* chore(package.json): bump engines and @types/node to >=18.x

* chore(deps-dev): bump @types/node

* chore(deps-dev): bump @types/node

* update protocol test codegen for node18

* drop node16 support

* actions to node18

* update tsconfig

* fix type error

* build fix

* grammar

* set inliner to node18

---------

Co-authored-by: George Fu <[email protected]>
  • Loading branch information
siddsriv and kuhe authored Jan 6, 2025
1 parent 1f6565e commit 4e8f4ff
Show file tree
Hide file tree
Showing 72 changed files with 195 additions and 166 deletions.
28 changes: 28 additions & 0 deletions .changeset/lazy-doors-exist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
"@smithy/service-client-documentation-generator": major
"@smithy/eventstream-serde-universal": major
"@smithy/util-defaults-mode-browser": major
"@smithy/credential-provider-imds": major
"@smithy/util-defaults-mode-node": major
"@smithy/eventstream-serde-node": major
"@smithy/shared-ini-file-loader": major
"@smithy/util-body-length-node": major
"@smithy/node-config-provider": major
"@smithy/util-config-provider": major
"@smithy/eventstream-codec": major
"@smithy/node-http-handler": major
"@smithy/hash-stream-node": major
"@smithy/util-buffer-from": major
"@smithy/util-stream-node": major
"@smithy/util-middleware": major
"@smithy/util-endpoints": major
"@smithy/smithy-client": major
"@smithy/util-base64": major
"@smithy/util-stream": major
"@smithy/util-retry": major
"@smithy/hash-node": major
"@smithy/md5-js": major
"@smithy/core": major
---

drop node16 support
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- uses: gradle/wrapper-validation-action@v2
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 18
cache: "yarn"

- name: Set up JDK ${{ matrix.java }}
Expand All @@ -66,7 +66,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 18
cache: "yarn"
- name: Install dependencies
run: yarn
Expand All @@ -80,7 +80,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [16, 18, 20, 22]
node: [18, 20, 22]

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -112,7 +112,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 18
cache: "yarn"
- name: Install dependencies
run: yarn
Expand All @@ -136,7 +136,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 18
cache: "yarn"
- name: Install
run: yarn
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

For Client SDK code generation, the `typescript-client-codegen` plugin provides a framework for generating extensible TypeScript clients that can support multiple JavaScript platforms, including Node.js, Browser, and React-Native. See [the section on generating a client to see how to get started](#generating-a-client), or [the `typescript-client-codegen` documentation](#client-sdk-code-generation-typescript-client-codegen-plugin).

> Note: Node.js support includes versions >= 16, and is subject to change.
> Note: Node.js support includes versions >= 18, and is subject to change.
For Server SDK code generation, the `typescript-server-codegen` plugin provides a framework for generating server scaffolding at a higher level of abstraction and with type safety. More documentation can be found at in [the `typescript-server-codegen` documentation](#server-sdk-code-generation-typescript-server-codegen-plugin), or [smithy.io](https://smithy.io/2.0/ts-ssdk/index.html).

Expand Down
2 changes: 1 addition & 1 deletion packages/abort-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"tslib": "^2.6.2"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"typesVersions": {
"<4.0": {
Expand Down
2 changes: 1 addition & 1 deletion packages/config-resolver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"typedoc": "0.23.23"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"typesVersions": {
"<4.0": {
Expand Down
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"tslib": "^2.6.2"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"typesVersions": {
"<4.0": {
Expand All @@ -87,7 +87,7 @@
"directory": "packages/core"
},
"devDependencies": {
"@types/node": "^16.18.96",
"@types/node": "^18.11.9",
"concurrently": "7.0.0",
"downlevel-dts": "0.10.1",
"json-bigint": "^1.0.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/credential-provider-imds/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@
"tslib": "^2.6.2"
},
"devDependencies": {
"@types/node": "^16.18.96",
"@types/node": "^18.11.9",
"concurrently": "7.0.0",
"downlevel-dts": "0.10.1",
"rimraf": "3.0.2",
"typedoc": "0.23.23"
},
"types": "./dist-types/index.d.ts",
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"typesVersions": {
"<4.0": {
Expand Down
2 changes: 1 addition & 1 deletion packages/eventstream-codec/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
"devDependencies": {
"@smithy/util-utf8": "workspace:^",
"@types/node": "^16.18.96",
"@types/node": "^18.11.9",
"concurrently": "7.0.0",
"downlevel-dts": "0.10.1",
"rimraf": "3.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/eventstream-serde-browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"tslib": "^2.6.2"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"typesVersions": {
"<4.0": {
Expand Down
2 changes: 1 addition & 1 deletion packages/eventstream-serde-config-resolver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"tslib": "^2.6.2"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"typesVersions": {
"<4.0": {
Expand Down
4 changes: 2 additions & 2 deletions packages/eventstream-serde-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@
"tslib": "^2.6.2"
},
"devDependencies": {
"@types/node": "^16.18.96",
"@types/node": "^18.11.9",
"concurrently": "7.0.0",
"downlevel-dts": "0.10.1",
"rimraf": "3.0.2",
"typedoc": "0.23.23"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"typesVersions": {
"<4.0": {
Expand Down
4 changes: 2 additions & 2 deletions packages/eventstream-serde-universal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@
},
"devDependencies": {
"@smithy/util-utf8": "workspace:^",
"@types/node": "^16.18.96",
"@types/node": "^18.11.9",
"concurrently": "7.0.0",
"downlevel-dts": "0.10.1",
"rimraf": "3.0.2",
"typedoc": "0.23.23"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"typesVersions": {
"<4.0": {
Expand Down
2 changes: 1 addition & 1 deletion packages/experimental-identity-and-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"tslib": "^2.6.2"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"typesVersions": {
"<4.0": {
Expand Down
4 changes: 2 additions & 2 deletions packages/hash-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"license": "Apache-2.0",
"devDependencies": {
"@types/node": "^16.18.96",
"@types/node": "^18.11.9",
"concurrently": "7.0.0",
"downlevel-dts": "0.10.1",
"hash-test-vectors": "^1.3.2",
Expand All @@ -37,7 +37,7 @@
"tslib": "^2.6.2"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"typesVersions": {
"<4.0": {
Expand Down
4 changes: 2 additions & 2 deletions packages/hash-stream-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@
"devDependencies": {
"@aws-crypto/sha256-js": "5.2.0",
"@smithy/util-hex-encoding": "workspace:^",
"@types/node": "^16.18.96",
"@types/node": "^18.11.9",
"concurrently": "7.0.0",
"downlevel-dts": "0.10.1",
"rimraf": "3.0.2",
"typedoc": "0.23.23"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"typesVersions": {
"<4.0": {
Expand Down
2 changes: 1 addition & 1 deletion packages/is-array-buffer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"tslib": "^2.6.2"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"typesVersions": {
"<4.0": {
Expand Down
2 changes: 1 addition & 1 deletion packages/md5-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"devDependencies": {
"@smithy/util-base64": "workspace:^",
"@smithy/util-hex-encoding": "workspace:^",
"@types/node": "^16.18.96",
"@types/node": "^18.11.9",
"concurrently": "7.0.0",
"downlevel-dts": "0.10.1",
"hash-test-vectors": "^1.3.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/middleware-apply-body-checksum/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"tslib": "^2.6.2"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"typesVersions": {
"<4.0": {
Expand Down
2 changes: 1 addition & 1 deletion packages/middleware-compression/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
"types": "./dist-types/index.d.ts",
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"typesVersions": {
"<4.0": {
Expand Down
2 changes: 1 addition & 1 deletion packages/middleware-content-length/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"tslib": "^2.6.2"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"typesVersions": {
"<4.0": {
Expand Down
2 changes: 1 addition & 1 deletion packages/middleware-endpoint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"typedoc": "0.23.23"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"typesVersions": {
"<4.0": {
Expand Down
2 changes: 1 addition & 1 deletion packages/middleware-retry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"typedoc": "0.23.23"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"typesVersions": {
"<4.0": {
Expand Down
2 changes: 1 addition & 1 deletion packages/middleware-serde/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"tslib": "^2.6.2"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"typesVersions": {
"<4.0": {
Expand Down
2 changes: 1 addition & 1 deletion packages/middleware-stack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"typedoc": "0.23.23"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"typesVersions": {
"<4.0": {
Expand Down
4 changes: 2 additions & 2 deletions packages/node-config-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@
"tslib": "^2.6.2"
},
"devDependencies": {
"@types/node": "^16.18.96",
"@types/node": "^18.11.9",
"concurrently": "7.0.0",
"downlevel-dts": "0.10.1",
"rimraf": "3.0.2",
"typedoc": "0.23.23"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"typesVersions": {
"<4.0": {
Expand Down
4 changes: 2 additions & 2 deletions packages/node-http-handler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@
"tslib": "^2.6.2"
},
"devDependencies": {
"@types/node": "^16.18.96",
"@types/node": "^18.11.9",
"concurrently": "7.0.0",
"downlevel-dts": "0.10.1",
"rimraf": "3.0.2",
"typedoc": "0.23.23"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"typesVersions": {
"<4.0": {
Expand Down
2 changes: 1 addition & 1 deletion packages/property-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"tslib": "^2.6.2"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"typesVersions": {
"<4.0": {
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol-http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"tslib": "^2.6.2"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"typesVersions": {
"<4.0": {
Expand Down
2 changes: 1 addition & 1 deletion packages/querystring-builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"tslib": "^2.6.2"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"typesVersions": {
"<4.0": {
Expand Down
2 changes: 1 addition & 1 deletion packages/querystring-parser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"tslib": "^2.6.2"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"typesVersions": {
"<4.0": {
Expand Down
Loading

0 comments on commit 4e8f4ff

Please sign in to comment.