Skip to content

Commit 92a2c5b

Browse files
cbschuldclaude
andauthored
Add Node.js 24.x runtime compatibility (#2)
Declares nodejs24.x in the README's CLI, CDK, and SAM examples and bumps the supported-runtimes copy. The built layer is already runtime-agnostic, so no artifact rebuild is needed (per issue #1). Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 6993a3e commit 92a2c5b

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
[![License](https://img.shields.io/badge/License-Apache_2.0-blue)](#license)
66
[![issues - sharp-aws-lambda-layer](https://img.shields.io/github/issues/cbschuld/sharp-aws-lambda-layer)](https://github.com/cbschuld/sharp-aws-lambda-layer/issues)
77

8-
Prebuilt Sharp AWS Lambda Layer for Node.js 18, 20, and 22. Optimized, bundled, and minified Sharp binaries for x86_64 and arm64 architectures. Improve cold starts with lightweight Sharp builds, ready for Serverless Framework, AWS SAM, and SST deployments.
8+
Prebuilt Sharp AWS Lambda Layer for Node.js 18, 20, 22, and 24. Optimized, bundled, and minified Sharp binaries for x86_64 and arm64 architectures. Improve cold starts with lightweight Sharp builds, ready for Serverless Framework, AWS SAM, and SST deployments.
99

1010
## About
1111

1212
A pre-built [sharp](https://www.npmjs.com/package/sharp) AWS Lambda layer optimized for cold start performance.
1313

1414
- Supports **x86\_64** and **arm64** architectures.
15-
- Compatible with Node.js **18.x**, **20.x**, and **22.x** runtimes.
15+
- Compatible with Node.js **18.x**, **20.x**, **22.x**, and **24.x** runtimes.
1616
- Automatically updated and tested using GitHub Actions.
1717
- Bundled and minified with `esbuild`.
1818
- Lightweight layer files (\~7MB).
@@ -58,15 +58,15 @@ aws lambda publish-layer-version \
5858
--description "Sharp Layer for x86_64" \
5959
--license-info "Apache-2.0" \
6060
--zip-file fileb://release-x64.zip \
61-
--compatible-runtimes nodejs18.x nodejs20.x nodejs22.x \
61+
--compatible-runtimes nodejs18.x nodejs20.x nodejs22.x nodejs24.x \
6262
--compatible-architectures x86_64
6363

6464
aws lambda publish-layer-version \
6565
--layer-name sharp-lambda-arm64 \
6666
--description "Sharp Layer for arm64" \
6767
--license-info "Apache-2.0" \
6868
--zip-file fileb://release-arm64.zip \
69-
--compatible-runtimes nodejs18.x nodejs20.x nodejs22.x \
69+
--compatible-runtimes nodejs18.x nodejs20.x nodejs22.x nodejs24.x \
7070
--compatible-architectures arm64
7171
```
7272

@@ -88,6 +88,7 @@ export class MyLambdaStack extends Stack {
8888
lambda.Runtime.NODEJS_18_X,
8989
lambda.Runtime.NODEJS_20_X,
9090
lambda.Runtime.NODEJS_22_X,
91+
lambda.Runtime.NODEJS_24_X,
9192
],
9293
description: 'Sharp Lambda Layer for ARM64',
9394
license: 'Apache-2.0',
@@ -143,6 +144,7 @@ SharpLayer:
143144
- nodejs18.x
144145
- nodejs20.x
145146
- nodejs22.x
147+
- nodejs24.x
146148
```
147149
148150
## Building (Optional)

0 commit comments

Comments
 (0)