Skip to content

aws-cdk-lib: NODEJS_LATEST still points to nodejs18.x  #28125

@MunchyYDL

Description

@MunchyYDL

Describe the bug

NODEJS_LATEST points to nodejs18.x even though nodejs20.x is available.

Not exactly sure if this should be considered a bug or a feature request?

I tried searching for any information regarding if the NODEJS_LATEST value change should be delayed because of some reason but couldn't find anything. Tried to ask about it here as well #28046, but haven't received any response there yet.

Expected Behavior

NODEJS_LATEST should return nodejs20.x

Current Behavior

NODEJS_LATEST returns nodejs18.x
This is where you can find the code: aws-cdk-lib/aws-lambda/lib/runtime.js

  /**
   * The latest NodeJS version currently available
   */
  public static readonly NODEJS_LATEST = new Runtime('nodejs18.x', RuntimeFamily.NODEJS, { supportsInlineCode: true, isVariable: true });

Reproduction Steps

Just use the NODEJS_LATEST

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.110.1 (build 0d37f0d)

Framework Version

No response

Node.js Version

v20.9.0

OS

macOS

Language

TypeScript

Language Version

TypeScript v5.2.2

Other information

No response

Metadata

Metadata

Assignees

Labels

@aws-cdk/aws-lambdaRelated to AWS LambdabugThis issue is a bug.effort/mediumMedium work item – several days of effortp1

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions