Skip to content

Commit a876439

Browse files
committed
chore: drop Node.js 18 support
1 parent 259918e commit a876439

File tree

24 files changed

+10
-28
lines changed

24 files changed

+10
-28
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ body:
6969
options:
7070
- 22.x
7171
- 20.x
72-
- 18.x
7372
validations:
7473
required: true
7574
- type: dropdown

.github/workflows/quality_check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
NODE_ENV: dev
2020
strategy:
2121
matrix:
22-
version: [18, 20, 22]
22+
version: [20, 22]
2323
workspace: [
2424
"packages/batch",
2525
"packages/commons",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
NODE_ENV: dev
4040
strategy:
4141
matrix:
42-
version: [18, 20, 22]
42+
version: [20, 22]
4343
workspace: [
4444
"packages/batch",
4545
"packages/commons",

.github/workflows/run-e2e-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
packages/tracer,
3434
layers,
3535
]
36-
version: [18, 20, 22]
36+
version: [20, 22]
3737
arch: [x86_64, arm64]
3838
fail-fast: false
3939
steps:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!-- markdownlint-disable MD013 -->
22
# Powertools for AWS Lambda (TypeScript)
33

4-
![NodeSupport](https://img.shields.io/static/v1?label=node&message=%2018|%2020|%2022&style=flat&logo=nodedotjs)
4+
![NodeSupport](https://img.shields.io/static/v1?label=node&message=%2020|%2022&style=flat&logo=nodedotjs)
55
![GitHub Release](https://img.shields.io/github/v/release/aws-powertools/powertools-lambda-typescript?style=flat)
66
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=aws-powertools_powertools-lambda-typescript&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=aws-powertools_powertools-lambda-typescript)
77
[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=aws-powertools_powertools-lambda-typescript&metric=security_rating)](https://sonarcloud.io/summary/new_code?id=aws-powertools_powertools-lambda-typescript)

docs/getting-started/lambda-layers.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ Change `{aws::region}` to your AWS region, e.g. `eu-west-1`, and run the followi
109109
"CreatedDate": "2025-04-08T07:38:30.424+0000",
110110
"Version": 24,
111111
"CompatibleRuntimes": [
112-
"nodejs18.x",
113112
"nodejs20.x",
114113
"nodejs22.x"
115114
],

layers/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
"test:unit": "vitest --run tests/unit",
1313
"test:unit:coverage": "echo 'Not Implemented'",
1414
"test:unit:types": "echo 'Not Implemented'",
15-
"test:e2e:nodejs18x": "echo 'Not Implemented'",
1615
"test:e2e:nodejs20x": "echo 'Not Implemented'",
1716
"test:e2e:nodejs22x": "echo 'Not Implemented'",
1817
"test:e2e": "vitest --run tests/e2e",

layers/src/canary-stack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export class CanaryStack extends Stack {
4545
'../tests/e2e/layerPublisher.class.test.functionCode.ts'
4646
),
4747
handler: 'handler',
48-
runtime: Runtime.NODEJS_18_X,
48+
runtime: Runtime.NODEJS_20_X,
4949
functionName: `canary-${suffix}`,
5050
timeout: Duration.seconds(30),
5151
bundling: {

layers/src/layer-publisher-stack.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,7 @@ export class LayerPublisherStack extends Stack {
4141
this.lambdaLayerVersion = new LayerVersion(this, 'LambdaPowertoolsLayer', {
4242
layerVersionName: props?.layerName,
4343
description: `Powertools for AWS Lambda (TypeScript) version ${powertoolsPackageVersion}`,
44-
compatibleRuntimes: [
45-
Runtime.NODEJS_18_X,
46-
Runtime.NODEJS_20_X,
47-
Runtime.NODEJS_22_X,
48-
],
44+
compatibleRuntimes: [Runtime.NODEJS_20_X, Runtime.NODEJS_22_X],
4945
license: 'MIT-0',
5046
compatibleArchitectures: [Architecture.ARM_64, Architecture.X86_64],
5147
code: Code.fromAsset(resolve(__dirname), {

layers/tests/unit/layer-publisher.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe('Class: LayerPublisherStack', () => {
2020
// Assess
2121
template.resourceCountIs('AWS::Lambda::LayerVersion', 1);
2222
template.hasResourceProperties('AWS::Lambda::LayerVersion', {
23-
CompatibleRuntimes: ['nodejs18.x', 'nodejs20.x', 'nodejs22.x'],
23+
CompatibleRuntimes: ['nodejs20.x', 'nodejs22.x'],
2424
LicenseInfo: 'MIT-0',
2525
/* CompatibleArchitectures: [
2626
'x86_64',

0 commit comments

Comments
 (0)