Skip to content

Commit e2a0923

Browse files
authored
chore(maintenance): drop support for Node.js 14 (#1802)
1 parent 5361ad3 commit e2a0923

36 files changed

+3029
-3076
lines changed

Diff for: .github/ISSUE_TEMPLATE/bug_report.yml

-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ body:
7070
- 20.x
7171
- 18.x
7272
- 16.x
73-
- 14.x
7473
validations:
7574
required: true
7675
- type: dropdown

Diff for: .github/workflows/reusable-run-linting-check-and-unit-tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
NODE_ENV: dev
1111
strategy:
1212
matrix:
13-
version: [14, 16, 18, 20]
13+
version: [16, 18, 20]
1414
fail-fast: false
1515
steps:
1616
- name: Checkout code

Diff for: .github/workflows/run-e2e-tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
packages/parameters,
2929
packages/idempotency,
3030
]
31-
version: [14, 16, 18, 20]
31+
version: [16, 18, 20]
3232
arch: [x86_64, arm64]
3333
fail-fast: false
3434
steps:

Diff for: layers/src/canary-stack.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export class CanaryStack extends Stack {
4141
'../tests/e2e/layerPublisher.class.test.functionCode.ts'
4242
),
4343
handler: 'handler',
44-
runtime: Runtime.NODEJS_14_X,
44+
runtime: Runtime.NODEJS_16_X,
4545
functionName: `canary-${suffix}`,
4646
timeout: Duration.seconds(30),
4747
bundling: {

Diff for: layers/src/layer-publisher-stack.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ export class LayerPublisherStack extends Stack {
3737
layerVersionName: props?.layerName,
3838
description: `Powertools for AWS Lambda (TypeScript) version ${powertoolsPackageVersion}`,
3939
compatibleRuntimes: [
40-
Runtime.NODEJS_14_X,
4140
Runtime.NODEJS_16_X,
4241
Runtime.NODEJS_18_X,
4342
Runtime.NODEJS_20_X,
@@ -109,7 +108,7 @@ export class LayerPublisherStack extends Stack {
109108
'node_modules/@aws-sdk/**/README.md ',
110109
];
111110
const buildCommands: string[] = [];
112-
// We need these modules because they are not included in the nodejs14x and nodejs16x runtimes
111+
// We need these modules because they are not included in the nodejs16x runtimes
113112
const modulesToInstall: string[] = [
114113
'@aws-sdk/client-dynamodb',
115114
'@aws-sdk/util-dynamodb',

Diff for: layers/tests/e2e/constants.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export const RESOURCE_NAME_PREFIX = 'Layers-E2E';
22
export const ONE_MINUTE = 60 * 1000;
33
export const TEST_CASE_TIMEOUT = 3 * ONE_MINUTE;
4-
export const SETUP_TIMEOUT = 5 * ONE_MINUTE;
4+
export const SETUP_TIMEOUT = 7 * ONE_MINUTE;
55
export const TEARDOWN_TIMEOUT = 5 * ONE_MINUTE;

Diff for: layers/tests/unit/layer-publisher.test.ts

+1-6
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,7 @@ describe('Class: LayerPublisherStack', () => {
2525
// Assess
2626
template.resourceCountIs('AWS::Lambda::LayerVersion', 1);
2727
template.hasResourceProperties('AWS::Lambda::LayerVersion', {
28-
CompatibleRuntimes: [
29-
'nodejs14.x',
30-
'nodejs16.x',
31-
'nodejs18.x',
32-
'nodejs20.x',
33-
],
28+
CompatibleRuntimes: ['nodejs16.x', 'nodejs18.x', 'nodejs20.x'],
3429
LicenseInfo: 'MIT-0',
3530
/* CompatibleArchitectures: [
3631
'x86_64',

0 commit comments

Comments
 (0)