Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ body:
attributes:
label: AWS Lambda function runtime
options:
- 26.x
- 24.x
- 22.x
validations:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bootstrap_region.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 24
node-version: 26
- name: Setup dependencies
uses: aws-powertools/actions/.github/actions/cached-node-modules@7898dbd71be8083748aa52f07ce5201bb36078ac # v1.6.0
- id: credentials
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/make-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 24
node-version: 26
cache: "npm"
registry-url: 'https://registry.npmjs.org'
- name: Setup dependencies
Expand All @@ -76,7 +76,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1
with:
node-version: 24
node-version: 26
- name: Verify npm registry propagation
run: bash .github/scripts/verify_npm_publish.sh

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/make-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
pull-requests: write
runs-on: ubuntu-latest
env:
NODE_VERSION: "24"
NODE_VERSION: "26"
outputs:
RELEASE_VERSION: ${{ steps.version-n-changelog.outputs.new-version }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish_layer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 24
node-version: 26
- name: Setup dependencies
uses: aws-powertools/actions/.github/actions/cached-node-modules@7898dbd71be8083748aa52f07ce5201bb36078ac # v1.6.0
- name: CDK build
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
NODE_ENV: dev
strategy:
matrix:
version: [22, 24]
version: [22, 24, 26]
# packages/testing is private and intentionally excluded from this publishable package matrix.
workspace: ${{ fromJSON(needs.resolve-workspaces.outputs.workspaces) }}
fail-fast: false
Expand Down Expand Up @@ -89,7 +89,7 @@ jobs:
name: Setup Node.js
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 24
node-version: 26
cache: "npm"
- &setup_dependencies
name: Setup dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable_deploy_layer_stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 24
node-version: 26
- name: Setup dependencies
uses: aws-powertools/actions/.github/actions/cached-node-modules@7898dbd71be8083748aa52f07ce5201bb36078ac # v1.6.0
- name: Download artifact
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable_publish_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
- name: Setup NodeJS
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 24
node-version: 26
cache: "npm"
- name: Setup dependencies
uses: aws-powertools/actions/.github/actions/cached-node-modules@7898dbd71be8083748aa52f07ce5201bb36078ac # v1.6.0
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/run-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 24
node-version: 26
- name: Setup dependencies
uses: aws-powertools/actions/.github/actions/cached-node-modules@7898dbd71be8083748aa52f07ce5201bb36078ac # v1.6.0
with:
node-version: 24
node-version: 26
- name: Setup AWS credentials
uses: aws-actions/configure-aws-credentials@e1253824e5c10ff9df46874f81ed3ec929e19cfd # v6.3.0
with:
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
max-parallel: 25
matrix:
package: ${{ fromJSON(needs.resolve-workspaces.outputs.e2e) }}
version: [22, 24]
version: [22, 24, 26]
arch: [x86_64, arm64]
fail-fast: false
steps:
Expand All @@ -93,11 +93,11 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 24
node-version: 26
- name: Setup dependencies
uses: aws-powertools/actions/.github/actions/cached-node-modules@7898dbd71be8083748aa52f07ce5201bb36078ac # v1.6.0
with:
node-version: 24
node-version: 26
- name: Setup AWS credentials
uses: aws-actions/configure-aws-credentials@e1253824e5c10ff9df46874f81ed3ec929e19cfd # v6.3.0
with:
Expand Down Expand Up @@ -129,7 +129,7 @@ jobs:
strategy:
matrix:
package: ${{ fromJSON(needs.resolve-workspaces.outputs.lmi) }}
version: [22, 24]
version: [22, 24, 26]
arch: [x86_64, arm64]
fail-fast: false
steps:
Expand All @@ -138,11 +138,11 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 24
node-version: 26
- name: Setup dependencies
uses: aws-powertools/actions/.github/actions/cached-node-modules@7898dbd71be8083748aa52f07ce5201bb36078ac # v1.6.0
with:
node-version: 24
node-version: 26
- name: Setup AWS credentials
uses: aws-actions/configure-aws-credentials@e1253824e5c10ff9df46874f81ed3ec929e19cfd # v6.3.0
with:
Expand Down Expand Up @@ -205,11 +205,11 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 24
node-version: 26
- name: Setup dependencies
uses: aws-powertools/actions/.github/actions/cached-node-modules@7898dbd71be8083748aa52f07ce5201bb36078ac # v1.6.0
with:
node-version: 24
node-version: 26
- name: Setup AWS credentials
uses: aws-actions/configure-aws-credentials@e1253824e5c10ff9df46874f81ed3ec929e19cfd # v6.3.0
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sweep-stale-e2e-stacks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 24
node-version: 26
- name: Setup dependencies
uses: aws-powertools/actions/.github/actions/cached-node-modules@7898dbd71be8083748aa52f07ce5201bb36078ac # v1.6.0
with:
node-version: 24
node-version: 26
- name: Setup AWS credentials
uses: aws-actions/configure-aws-credentials@e1253824e5c10ff9df46874f81ed3ec929e19cfd # v6.3.0
with:
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
lts/krypton
26
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ A maintainer may add a `do-not-merge` label, which blocks the merge until the un

Prerequisites:

- **Node.js 24.x**, the version pinned in `.nvmrc`, so `nvm use` or `fnm use` picks it up. npm 11.x ships with it; this is an npm workspaces monorepo, so always install from the repo root rather than from a package directory.
- **Node.js 26.x**, the version pinned in `.nvmrc`, so `nvm use` or `fnm use` picks it up. npm 11.x ships with it; this is an npm workspaces monorepo, so always install from the repo root rather than from a package directory.
- **Docker**, only to preview the documentation with `npm run docs:docker:*`. Nothing else in the repo needs it.
- **Python 3**, only to preview the documentation without Docker, with `npm run docs:local:*`.
- **An AWS account and the AWS CLI**, only to run [end-to-end tests](#end-to-end-tests).
Expand Down Expand Up @@ -137,7 +137,7 @@ End-to-end tests give us confidence that a Lambda function using our code behave
You'll need an [AWS account bootstrapped with CDK](https://docs.aws.amazon.com/cdk/v2/guide/bootstrapping.html) and the [AWS CLI installed and configured](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html). Then, from the repo root:

- `npm run test:e2e -w packages/metrics` runs the end-to-end suites of a single package on the default Node.js runtime.
- `npm run test:e2e:nodejs24x -w packages/metrics` runs the same suites pinned to a specific runtime.
- `npm run test:e2e:nodejs26x -w packages/metrics` runs the same suites pinned to a specific runtime. Node.js 22, 24, and 26 are supported; the default is Node.js 26.

```mermaid
sequenceDiagram
Expand Down
2 changes: 1 addition & 1 deletion docs/features/logger.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Check API docs to learn more about [Logger constructor options](https://docs.aws
ShoppingCartApiFunction:
Type: AWS::Serverless::Function
Properties:
Runtime: nodejs24.x
Runtime: nodejs26.x
Environment:
Variables:
POWERTOOLS_LOG_LEVEL: WARN
Expand Down
2 changes: 1 addition & 1 deletion docs/features/metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ The `Metrics` utility is instantiated outside of the Lambda handler. In doing th
HelloWorldFunction:
Type: AWS::Serverless::Function
Properties:
Runtime: nodejs24.x
Runtime: nodejs26.x
Environment:
Variables:
POWERTOOLS_SERVICE_NAME: orders
Expand Down
6 changes: 3 additions & 3 deletions docs/features/tracer.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ To use it in an ESM project, you can instruct your bundler to use the `require`
super(scope, id, props);

const handler = new NodejsFunction(this, 'helloWorldFunction', {
runtime: Runtime.NODEJS_24_X,
runtime: Runtime.NODEJS_26_X,
handler: 'handler',
entry: 'src/index.ts',
bundling: {
Expand All @@ -90,7 +90,7 @@ To use it in an ESM project, you can instruct your bundler to use the `require`
HelloWorldFunction:
Type: AWS::Serverless::Function
Properties:
Runtime: nodejs24.x
Runtime: nodejs26.x
Handler: src/index.handler
Metadata:
BuildMethod: esbuild
Expand Down Expand Up @@ -140,7 +140,7 @@ The `Tracer` utility is instantiated outside of the Lambda handler. In doing thi
HelloWorldFunction:
Type: AWS::Serverless::Function
Properties:
Runtime: nodejs24.x
Runtime: nodejs26.x
Tracing: Active
Environment:
Variables:
Expand Down
8 changes: 4 additions & 4 deletions docs/getting-started/lambda-layers.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ Change `{aws::region}` to your AWS region, e.g. `eu-west-1`, and run the followi
);
new NodejsFunction(this, 'Function', {
runtime: Runtime.NODEJS_24_X,
runtime: Runtime.NODEJS_26_X,
// Add the Layer to a Lambda function
layers: [powertoolsLayer],
code: Code.fromInline(`...`),
Expand Down Expand Up @@ -192,7 +192,7 @@ Change `{aws::region}` to your AWS region, e.g. `eu-west-1`, and run the followi
);
new NodejsFunction(this, 'Function', {
runtime: Runtime.NODEJS_24_X,
runtime: Runtime.NODEJS_26_X,
// Add the Layer to a Lambda function
layers: [powertoolsLayer],
code: Code.fromInline(`...`),
Expand Down Expand Up @@ -280,7 +280,7 @@ Change `{aws::region}` to your AWS region, e.g. `eu-west-1`, and run the followi
function_name = "lambda_function_name"
role = ...
handler = "index.handler"
runtime = "nodejs24.x"
runtime = "nodejs26.x"
layers = ["arn:aws:lambda:{aws::region}:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:51"]
source_code_hash = filebase64sha256("lambda_function_payload.zip")
}
Expand All @@ -297,7 +297,7 @@ Change `{aws::region}` to your AWS region, e.g. `eu-west-1`, and run the followi
resource "aws_lambda_function" "test_lambda" {
...

runtime = "nodejs24.x"
runtime = "nodejs26.x"

layers = [data.aws_ssm_parameter.powertools_version.value]
}
Expand Down
4 changes: 2 additions & 2 deletions docs/upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Here is an example using `esbuild` bundler.
super(scope, id, props);

const handler = new NodejsFunction(this, 'helloWorldFunction', {
runtime: Runtime.NODEJS_24_X,
runtime: Runtime.NODEJS_26_X,
handler: 'handler',
entry: 'src/index.ts',
bundling: {
Expand All @@ -105,7 +105,7 @@ Here is an example using `esbuild` bundler.
HelloWorldFunction:
Type: AWS::Serverless::Function
Properties:
Runtime: nodejs24.x
Runtime: nodejs26.x
Handler: src/index.handler
Metadata:
BuildMethod: esbuild
Expand Down
2 changes: 1 addition & 1 deletion examples/snippets/batch/templates/sam/dynamodb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Globals:
Function:
Timeout: 5
MemorySize: 256
Runtime: nodejs24.x
Runtime: nodejs26.x
Tracing: Active
Environment:
Variables:
Expand Down
2 changes: 1 addition & 1 deletion examples/snippets/batch/templates/sam/kinesis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Globals:
Function:
Timeout: 5
MemorySize: 256
Runtime: nodejs24.x
Runtime: nodejs26.x
Tracing: Active
Environment:
Variables:
Expand Down
2 changes: 1 addition & 1 deletion examples/snippets/batch/templates/sam/sqs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Globals:
Function:
Timeout: 5
MemorySize: 256
Runtime: nodejs24.x
Runtime: nodejs26.x
Tracing: Active
Environment:
Variables:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Globals:
Function:
Timeout: 5
MemorySize: 256
Runtime: nodejs24.x
Runtime: nodejs26.x
Tracing: Active
Environment:
Variables:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Globals:
Function:
Timeout: 5
MemorySize: 256
Runtime: nodejs24.x
Runtime: nodejs26.x
Environment:
Variables:
# Powertools for AWS Lambda (TypeScript) env vars: https://docs.aws.amazon.com/powertools/typescript/latest/environment-variables/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class BedrockAgentsStack extends Stack {
const fn = new NodejsFunction(this, 'AirlineAgentFunction', {
functionName: fnName,
logGroup,
runtime: Runtime.NODEJS_24_X,
runtime: Runtime.NODEJS_26_X,
entry: './src/index.ts',
handler: 'handler',
bundling: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Globals:
Function:
Timeout: 30
MemorySize: 256
Runtime: nodejs24.x
Runtime: nodejs26.x

Resources:
HelloWorldFunction:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Globals:
Function:
Timeout: 5
MemorySize: 256
Runtime: nodejs24.x
Runtime: nodejs26.x
Tracing: Active
Environment:
Variables:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Globals:
Function:
Timeout: 5
MemorySize: 256
Runtime: nodejs24.x
Runtime: nodejs26.x
Tracing: Active
Environment:
Variables:
Expand Down
2 changes: 1 addition & 1 deletion examples/snippets/idempotency/templates/cacheCdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export class ValkeyStack extends Stack {
const fn = new NodejsFunction(this, 'MyFunction', {
functionName: fnName,
logGroup,
runtime: Runtime.NODEJS_24_X,
runtime: Runtime.NODEJS_26_X,
architecture: Architecture.ARM_64,
memorySize: 512,
timeout: Duration.seconds(30),
Expand Down
2 changes: 1 addition & 1 deletion examples/snippets/idempotency/templates/cacheSam.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Resources:
HelloWorldFunction:
Type: AWS::Serverless::Function
Properties:
Runtime: nodejs24.x
Runtime: nodejs26.x
Handler: index.js
VpcConfig: # (3)!
SecurityGroupIds:
Expand Down
Loading