From c82cab23502de8d67d3fdadae00bd188c69b8866 Mon Sep 17 00:00:00 2001 From: Clete Blackwell II Date: Wed, 15 Oct 2025 09:04:07 -0400 Subject: [PATCH 1/5] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20Upgrade=20to=20NodeJ?= =?UTF-8?q?S=2022.x?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + template.yml | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6badf62..1496e96 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ From most recent to oldest, with major releases in bold: +* *4.4.0* (2025-10-15): upgrade Lambda runtime to Nodejs22.x * *4.3.6* (2024-11-07): updated dependencies (CVE-2024-41818) * *4.3.5* (2024-09-16): array-shape input support, JSON logging bugfix, externalized ASL, updated dependencies * *4.3.4* (2024-02-26): upgrade to Nodejs20, custom state machine prefix, SDKv3 migration, new includeOutputResults input parameter, JSON loggin support diff --git a/template.yml b/template.yml index 980f302..0d3e7f0 100644 --- a/template.yml +++ b/template.yml @@ -12,7 +12,7 @@ Metadata: ReadmeUrl: README-SAR.md Labels: ['lambda', 'power', 'state-machine', 'step-functions', 'optimization'] HomePageUrl: https://github.com/alexcasalboni/aws-lambda-power-tuning - SemanticVersion: 4.3.6 + SemanticVersion: 4.4.0 SourceCodeUrl: https://github.com/alexcasalboni/aws-lambda-power-tuning Parameters: @@ -80,7 +80,7 @@ Conditions: Globals: Function: - Runtime: nodejs20.x + Runtime: nodejs22.x MemorySize: 128 Timeout: !Ref totalExecutionTimeout PermissionsBoundary: !If [UsePermissionsBoundary, !Ref permissionsBoundary, !Ref AWS::NoValue] @@ -105,11 +105,11 @@ Resources: Description: AWS SDK 3 ContentUri: ./layer-sdk CompatibleRuntimes: - - nodejs20.x + - nodejs22.x LicenseInfo: 'Available under the MIT-0 license.' RetentionPolicy: Retain Metadata: - BuildMethod: nodejs20.x + BuildMethod: nodejs22.x initializerLogGroup: Type: AWS::Logs::LogGroup From a1e6d2bb7aa0ec3acfed7828fb4bec7a0e27684e Mon Sep 17 00:00:00 2001 From: Alex Casalboni Date: Wed, 19 Nov 2025 16:36:51 +0100 Subject: [PATCH 2/5] update all CDK versions too --- cdk/csharp/src/Cdk/TheLambdaPowerTunerStack.cs | 2 +- cdk/go/lambda_power_tuner_stack.go | 2 +- cdk/java/src/main/java/com/myorg/TheLambdaPowerTunerStack.java | 2 +- cdk/python/app/lambdapowertuner_stack.py | 2 +- cdk/typescript/lib/the-lambda-power-tuner-stack.ts | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cdk/csharp/src/Cdk/TheLambdaPowerTunerStack.cs b/cdk/csharp/src/Cdk/TheLambdaPowerTunerStack.cs index f0fb3d4..7781889 100644 --- a/cdk/csharp/src/Cdk/TheLambdaPowerTunerStack.cs +++ b/cdk/csharp/src/Cdk/TheLambdaPowerTunerStack.cs @@ -29,7 +29,7 @@ internal TheLambdaPowerTunerStack(Construct scope, string id, IStackProps props { Location = new CfnApplication.ApplicationLocationProperty { ApplicationId = "arn:aws:serverlessrepo:us-east-1:451282441545:applications/aws-lambda-power-tuning", - SemanticVersion = "4.3.6" + SemanticVersion = "4.4.0" }, Parameters = stateMachineConfiguration } diff --git a/cdk/go/lambda_power_tuner_stack.go b/cdk/go/lambda_power_tuner_stack.go index 0211433..3b67201 100644 --- a/cdk/go/lambda_power_tuner_stack.go +++ b/cdk/go/lambda_power_tuner_stack.go @@ -21,7 +21,7 @@ func NewLambdaPowerTunerStack(scope constructs.Construct, id string, props *Lamb awssam.NewCfnApplication(stack, jsii.String("powerTuner"), &awssam.CfnApplicationProps{ Location: map[string]string{ "applicationId": "arn:aws:serverlessrepo:us-east-1:451282441545:applications/aws-lambda-power-tuning", - "semanticVersion": "4.3.6", + "semanticVersion": "4.4.0", }, Parameters: map[string]string{ // "lambdaResource": "*", diff --git a/cdk/java/src/main/java/com/myorg/TheLambdaPowerTunerStack.java b/cdk/java/src/main/java/com/myorg/TheLambdaPowerTunerStack.java index 1578819..d45eb01 100644 --- a/cdk/java/src/main/java/com/myorg/TheLambdaPowerTunerStack.java +++ b/cdk/java/src/main/java/com/myorg/TheLambdaPowerTunerStack.java @@ -13,7 +13,7 @@ public class TheLambdaPowerTunerStack extends Stack { //Set constants private static final String SAR_APPLICATION_ID = "arn:aws:serverlessrepo:us-east-1:451282441545:applications/aws-lambda-power-tuning"; - private static final String SAR_SEMANTIC_VERSION = "4.3.6"; + private static final String SAR_SEMANTIC_VERSION = "4.4.0"; public TheLambdaPowerTunerStack(final Construct scope, final String id) { this(scope, id, null); diff --git a/cdk/python/app/lambdapowertuner_stack.py b/cdk/python/app/lambdapowertuner_stack.py index 3ea26e0..48fb2ad 100644 --- a/cdk/python/app/lambdapowertuner_stack.py +++ b/cdk/python/app/lambdapowertuner_stack.py @@ -34,7 +34,7 @@ def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None: self, "SAR", location={ "applicationId": "arn:aws:serverlessrepo:us-east-1:451282441545:applications/aws-lambda-power-tuning", - "semanticVersion": "4.3.6" + "semanticVersion": "4.4.0" }, parameters = stateMachineConfiguration ) diff --git a/cdk/typescript/lib/the-lambda-power-tuner-stack.ts b/cdk/typescript/lib/the-lambda-power-tuner-stack.ts index dc23e89..65af06d 100644 --- a/cdk/typescript/lib/the-lambda-power-tuner-stack.ts +++ b/cdk/typescript/lib/the-lambda-power-tuner-stack.ts @@ -23,7 +23,7 @@ export class TheLambdaPowerTunerStack extends cdk.Stack { new sam.CfnApplication(this, 'powerTuner', { location: { applicationId: 'arn:aws:serverlessrepo:us-east-1:451282441545:applications/aws-lambda-power-tuning', - semanticVersion: '4.3.6' + semanticVersion: '4.4.0' }, parameters: { //"lambdaResource": lambdaResource, From 17e1073dd3e8bf4b21b8e92618b47b086365d8c3 Mon Sep 17 00:00:00 2001 From: Alex Casalboni Date: Wed, 19 Nov 2025 16:37:47 +0100 Subject: [PATCH 3/5] change version publish date to today --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1496e96..9c4ab57 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ From most recent to oldest, with major releases in bold: -* *4.4.0* (2025-10-15): upgrade Lambda runtime to Nodejs22.x +* *4.4.0* (2025-11-19): upgrade Lambda runtime to Nodejs22.x * *4.3.6* (2024-11-07): updated dependencies (CVE-2024-41818) * *4.3.5* (2024-09-16): array-shape input support, JSON logging bugfix, externalized ASL, updated dependencies * *4.3.4* (2024-02-26): upgrade to Nodejs20, custom state machine prefix, SDKv3 migration, new includeOutputResults input parameter, JSON loggin support From 9983899ededf6dde19916c19e0ab08d78e7b68c5 Mon Sep 17 00:00:00 2001 From: Alex Casalboni Date: Wed, 19 Nov 2025 16:38:47 +0100 Subject: [PATCH 4/5] add new version to SAR readme too --- README-SAR.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README-SAR.md b/README-SAR.md index 01d0802..162896b 100644 --- a/README-SAR.md +++ b/README-SAR.md @@ -263,6 +263,7 @@ Initializer, cleaner, analyzer, and optimizer are executed only once, while the From most recent to oldest, with major releases in bold: +* *4.4.0* (2025-11-19): upgrade Lambda runtime to Nodejs22.x * *4.3.6* (2024-11-07): updated dependencies (CVE-2024-41818) * *4.3.5* (2024-09-16): array-shape input support, JSON logging bugfix, externalized ASL, updated dependencies * *4.3.4* (2024-02-26): upgrade to Nodejs20, custom state machine prefix, SDKv3 migration, new includeOutputResults input parameter, JSON loggin support From fc456d251ceccb6748e3a83b2ba1c35da0a3578f Mon Sep 17 00:00:00 2001 From: Alex Casalboni Date: Wed, 19 Nov 2025 16:38:59 +0100 Subject: [PATCH 5/5] update latest versions everywhere else --- README-DEPLOY.md | 4 ++-- package-lock.json | 7 +++++-- package.json | 2 +- scripts/deploy-sar-app.yml | 2 +- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/README-DEPLOY.md b/README-DEPLOY.md index 196a79c..182f448 100644 --- a/README-DEPLOY.md +++ b/README-DEPLOY.md @@ -85,7 +85,7 @@ You can also integrate the SAR app in your existing CloudFormation stacks - chec new sam.CfnApplication(this, 'powerTuner', { location: { applicationId: 'arn:aws:serverlessrepo:us-east-1:451282441545:applications/aws-lambda-power-tuning', - semanticVersion: '4.3.6' + semanticVersion: '4.4.0' }, parameters: { "lambdaResource": "*", @@ -118,7 +118,7 @@ resource "aws_serverlessapplicationrepository_cloudformation_stack" "lambda-powe application_id = "arn:aws:serverlessrepo:us-east-1:451282441545:applications/aws-lambda-power-tuning" capabilities = ["CAPABILITY_IAM"] # Uncomment the next line to deploy a specific version - # semantic_version = "4.3.6" + # semantic_version = "4.4.0" parameters = { # All of these parameters are optional and are only shown here for demonstration purposes diff --git a/package-lock.json b/package-lock.json index 23666e1..8e555cc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "aws-lambda-power-tuning", - "version": "4.3.6", + "version": "4.4.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "aws-lambda-power-tuning", - "version": "4.3.6", + "version": "4.4.0", "devDependencies": { "@aws-sdk/client-lambda": "^3.651.1", "@aws-sdk/client-s3": "^3.651.1", @@ -424,6 +424,7 @@ "integrity": "sha512-ZPZ7Y/r/w3nx/xpPzGSqSQsB090Xk5aZZOH+WBhTDn/pBEuim09BYXCLzvvxb7R7NnuoQdrTJiwimdJAhHl7ZQ==", "dev": true, "license": "Apache-2.0", + "peer": true, "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", @@ -478,6 +479,7 @@ "integrity": "sha512-xKuo4HksZ+F8m9DOfx/ZuWNhaPuqZFPwwy0xqcBT6sWH7OAuBjv/fnpOTzyQhpVTWddlf+ECtMAMrxjxuOExGQ==", "dev": true, "license": "Apache-2.0", + "peer": true, "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", @@ -2123,6 +2125,7 @@ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", "dev": true, + "peer": true, "bin": { "acorn": "bin/acorn" }, diff --git a/package.json b/package.json index da85457..ed4fdac 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aws-lambda-power-tuning", - "version": "4.3.6", + "version": "4.4.0", "description": "Step Functions state machine generator for AWS Lambda Power Tuning", "author": "Alex Casalboni ", "repository": { diff --git a/scripts/deploy-sar-app.yml b/scripts/deploy-sar-app.yml index 93f8d28..401e9d1 100644 --- a/scripts/deploy-sar-app.yml +++ b/scripts/deploy-sar-app.yml @@ -8,7 +8,7 @@ Resources: Properties: Location: ApplicationId: arn:aws:serverlessrepo:us-east-1:451282441545:applications/aws-lambda-power-tuning - SemanticVersion: 4.3.6 + SemanticVersion: 4.4.0 # Parameters: # PowerValues: 128,256,512,1024,1536,3008 # default RAM values