Skip to content

Commit a2815c7

Browse files
author
Dane Pilcher
authored
Revert "chore: upgrade to node 20 (#3250)" (#3255)
This reverts commit 9e214b3.
1 parent 9e214b3 commit a2815c7

31 files changed

Lines changed: 42 additions & 42 deletions

File tree

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ This section should get you running with **Amplify API Category** and get you fa
3939

4040
> If you are using Yarn v2, run `yarn set version classic` to change to Yarn Classic.
4141
>
42-
> Note: Ensure that the version of Node installed is v20.x. During the installation process, some modules may not be compatible with other versions of Node.
42+
> Note: Ensure that the version of Node installed is v18.x. During the installation process, some modules may not be compatible with other versions of Node.
4343
4444
1. Ensure you are using the npm registry, even with yarn by running `yarn config set registry https://registry.npmjs.org`
4545

client-test-apps/js/api-model-relationship-app/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"@types/ini": "^1.3.31",
1212
"@types/jest": "^27.5.2",
1313
"@types/jest-dev-server": "^5.0.0",
14-
"@types/node": "^20.0.0",
14+
"@types/node": "^18.0.0",
1515
"@types/react": "18.2.42",
1616
"@types/react-dom": "^18.0.6",
1717
"aws-amplify": "^4.3.30",
@@ -72,4 +72,4 @@
7272
"axios": "axios/dist/node/axios.cjs"
7373
}
7474
}
75-
}
75+
}

codebuild_specs/build_windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ env:
66
phases:
77
pre_build:
88
commands:
9-
- choco install -fy nodejs-lts --version=20.9.0
9+
- choco install -fy nodejs-lts --version=18.20.4
1010
- |
1111
$nodeVersion = node -v
1212
Write-Host "Node version: $nodeVersion"

packages/amplify-data-construct/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@
291291
},
292292
"devDependencies": {
293293
"@types/fs-extra": "^8.0.1",
294-
"@types/node": "^20.0.0",
294+
"@types/node": "^18.0.0",
295295
"aws-cdk-lib": "2.187.0",
296296
"constructs": "10.3.0",
297297
"jsii": "^5.4.23",

packages/amplify-graphql-api-construct-tests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"@aws-amplify/graphql-transformer-core": "3.4.1",
5252
"@aws-amplify/graphql-transformer-interfaces": "4.2.4",
5353
"@aws-amplify/graphql-validate-transformer": "1.1.1",
54-
"@types/node": "^20.0.0",
54+
"@types/node": "^18.0.0",
5555
"aws-cdk-lib": "2.187.0",
5656
"constructs": "10.3.0",
5757
"ts-node": "^8.10.2"

packages/amplify-graphql-api-construct-tests/src/__tests__/backends/admin-role/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ executionRole.applyRemovalPolicy(RemovalPolicy.DESTROY);
3636

3737
const apiInvoker = new NodejsFunction(stack, 'ApiInvoker', {
3838
entry: path.join(__dirname, 'apiInvoker.ts'),
39-
runtime: Runtime.NODEJS_20_X,
39+
runtime: Runtime.NODEJS_18_X,
4040
role: executionRole,
4141
bundling: {
4242
nodeModules: ['@smithy/util-utf8'], // Force inclusion

packages/amplify-graphql-api-construct-tests/src/__tests__/backends/sql-configurable-stack/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ const createUserPoolTriggers = (triggers: Record<string, string>): UserPoolTrigg
213213

214214
const createLambdaFunction = (name: string, code: string): Function => {
215215
return new Function(stack, `${name}Lambda`, {
216-
runtime: Runtime.NODEJS_20_X,
216+
runtime: Runtime.NODEJS_18_X,
217217
handler: 'index.handler',
218218
code: Code.fromInline(code),
219219
});

packages/amplify-graphql-api-construct/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@
292292
"devDependencies": {
293293
"@aws-amplify/graphql-transformer-test-utils": "1.0.15",
294294
"@types/fs-extra": "^8.0.1",
295-
"@types/node": "^20.0.0",
295+
"@types/node": "^18.0.0",
296296
"aws-cdk-lib": "2.187.0",
297297
"constructs": "10.3.0",
298298
"jsii": "^5.4.23",

packages/amplify-graphql-api-construct/src/__tests__/__functional__/functions.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ describe('function directive', () => {
183183
it('supports passing in a function defined in-stack', () => {
184184
const stack = new cdk.Stack();
185185
const referencedFunction = new lambda.Function(stack, 'Createdfunction', {
186-
runtime: lambda.Runtime.NODEJS_20_X,
186+
runtime: lambda.Runtime.NODEJS_18_X,
187187
code: lambda.Code.fromInline('I am code'),
188188
handler: 'index.main',
189189
});
@@ -237,7 +237,7 @@ describe('function directive', () => {
237237
it('wires through a function from the definition', () => {
238238
const stack = new cdk.Stack();
239239
const referencedFunction = new lambda.Function(stack, 'Createdfunction', {
240-
runtime: lambda.Runtime.NODEJS_20_X,
240+
runtime: lambda.Runtime.NODEJS_18_X,
241241
code: lambda.Code.fromInline('I am code'),
242242
handler: 'index.main',
243243
});

packages/amplify-graphql-auth-transformer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"@aws-amplify/graphql-searchable-transformer": "3.0.16",
4848
"@aws-amplify/graphql-sql-transformer": "0.4.16",
4949
"@aws-amplify/graphql-transformer-test-utils": "1.0.15",
50-
"@types/node": "^20.0.0"
50+
"@types/node": "^18.0.0"
5151
},
5252
"peerDependencies": {
5353
"aws-cdk-lib": "^2.187.0",

0 commit comments

Comments
 (0)