Skip to content

Commit 028e183

Browse files
authored
chore: drop Node.js 18 support (aws-powertools#4243)
1 parent 259918e commit 028e183

26 files changed

+13
-47
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
],

docs/getting-started/usage-patterns.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ All our decorators assume that the method they are decorating is asynchronous. T
3333
If your existing codebase relies on the [Middy.js](https://middy.js.org/docs/) middleware engine, you can use the Powertools for AWS Lambda (TypeScript) middleware to integrate with your existing code. This approach is similar to the Class Method decorator pattern but uses the Middy.js middleware engine to apply Powertools utilities.
3434

3535
!!! note
36-
We guarantee support for Middy.js `v4.x` through `v6.x` versions.
36+
We guarantee support for Middy.js `v5.x` and `v6.x`.
3737
Check Middy.js docs to learn more about [best practices](https://middy.js.org/docs/integrations/lambda-powertools#best-practices){target="_blank"} when working with Powertools for AWS middlewares.
3838

3939
```ts

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), {

0 commit comments

Comments
 (0)