From 3704fa02928346194e81b908d3fe4b8dfca45ed9 Mon Sep 17 00:00:00 2001 From: amoussa1229 <166072409+amoussa1229@users.noreply.github.com> Date: Sat, 4 Jul 2026 05:26:03 +0000 Subject: [PATCH] chore: upgrade Lambda runtime from nodejs22.x to nodejs24.x MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace NODEJS_22_X with NODEJS_24_X across all nine Lambda NodejsFunction definitions in lib/constructs/ (bedrock-agent, slack-handler, notion-sync, po-sync, workorder-sync). Also add dependabot ignore for @types/node >=26 to prevent premature major bumps while we stay on the nodejs24.x runtime. Both package.json files already carry @types/node ^24 — no pin change needed. Refs #72 --- .github/dependabot.yml | 10 ++++++++++ lib/constructs/bedrock-agent.ts | 6 +++--- lib/constructs/notion-sync.ts | 2 +- lib/constructs/po-sync.ts | 2 +- lib/constructs/slack-handler.ts | 6 +++--- lib/constructs/workorder-sync.ts | 2 +- 6 files changed, 19 insertions(+), 9 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 4df1e6d..9227d07 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -9,6 +9,11 @@ updates: update-types: - "minor" - "patch" + ignore: + # Pinned to ^24 while Lambda runtime is nodejs24.x (upgraded from nodejs22.x). + # Node 26 is a mid-2027 eval — skip dependabot majors that would jump to @types/node@26. + - dependency-name: "@types/node" + versions: [">=26"] - package-ecosystem: "npm" directory: "/services/socket-mode" schedule: @@ -18,3 +23,8 @@ updates: update-types: - "minor" - "patch" + ignore: + # Pinned to ^24 while Lambda runtime is nodejs24.x (upgraded from nodejs22.x). + # Node 26 is a mid-2027 eval — skip dependabot majors that would jump to @types/node@26. + - dependency-name: "@types/node" + versions: [">=26"] diff --git a/lib/constructs/bedrock-agent.ts b/lib/constructs/bedrock-agent.ts index 76b18cc..5f5c84c 100644 --- a/lib/constructs/bedrock-agent.ts +++ b/lib/constructs/bedrock-agent.ts @@ -53,7 +53,7 @@ export class BedrockAgentConstruct extends Construct { functionName: 'seahaven-qbo-lookup', entry: path.join(__dirname, '../../lambda/qbo-lookup/index.ts'), handler: 'handler', - runtime: lambda.Runtime.NODEJS_22_X, + runtime: lambda.Runtime.NODEJS_24_X, architecture: lambda.Architecture.ARM_64, logRetention: logs.RetentionDays.TWO_MONTHS, timeout: cdk.Duration.seconds(30), @@ -72,7 +72,7 @@ export class BedrockAgentConstruct extends Construct { functionName: 'seahaven-maps-lookup', entry: path.join(__dirname, '../../lambda/maps-lookup/index.ts'), handler: 'handler', - runtime: lambda.Runtime.NODEJS_22_X, + runtime: lambda.Runtime.NODEJS_24_X, architecture: lambda.Architecture.ARM_64, logRetention: logs.RetentionDays.TWO_MONTHS, timeout: cdk.Duration.seconds(30), @@ -105,7 +105,7 @@ export class BedrockAgentConstruct extends Construct { functionName: 'seahaven-wo-po-lookup', entry: path.join(__dirname, '../../lambda/wo-po-lookup/index.ts'), handler: 'handler', - runtime: lambda.Runtime.NODEJS_22_X, + runtime: lambda.Runtime.NODEJS_24_X, architecture: lambda.Architecture.ARM_64, logRetention: logs.RetentionDays.TWO_MONTHS, timeout: cdk.Duration.seconds(30), diff --git a/lib/constructs/notion-sync.ts b/lib/constructs/notion-sync.ts index d17f368..78c7c18 100644 --- a/lib/constructs/notion-sync.ts +++ b/lib/constructs/notion-sync.ts @@ -38,7 +38,7 @@ export class NotionSyncConstruct extends Construct { this.syncLambda = new lambdaNodejs.NodejsFunction(this, 'SyncLambda', { functionName: 'seahaven-notion-sync', entry: path.join(__dirname, '../../lambda/notion-sync/index.ts'), - runtime: lambda.Runtime.NODEJS_22_X, + runtime: lambda.Runtime.NODEJS_24_X, architecture: lambda.Architecture.ARM_64, logRetention: logs.RetentionDays.TWO_MONTHS, memorySize: 512, diff --git a/lib/constructs/po-sync.ts b/lib/constructs/po-sync.ts index 95faf87..46af3e1 100644 --- a/lib/constructs/po-sync.ts +++ b/lib/constructs/po-sync.ts @@ -34,7 +34,7 @@ export class PoSyncConstruct extends Construct { this.syncLambda = new lambdaNodejs.NodejsFunction(this, 'SyncLambda', { functionName: 'seahaven-po-sync', entry: path.join(__dirname, '../../lambda/po-sync/index.ts'), - runtime: lambda.Runtime.NODEJS_22_X, + runtime: lambda.Runtime.NODEJS_24_X, architecture: lambda.Architecture.ARM_64, logRetention: logs.RetentionDays.TWO_MONTHS, memorySize: 512, diff --git a/lib/constructs/slack-handler.ts b/lib/constructs/slack-handler.ts index dfa8c2f..9cc66ba 100644 --- a/lib/constructs/slack-handler.ts +++ b/lib/constructs/slack-handler.ts @@ -49,7 +49,7 @@ export class SlackHandlerConstruct extends Construct { functionName: 'seahaven-slack-processor', entry: path.join(__dirname, '../../lambda/slack-processor/index.ts'), handler: 'handler', - runtime: lambda.Runtime.NODEJS_22_X, + runtime: lambda.Runtime.NODEJS_24_X, architecture: lambda.Architecture.ARM_64, logRetention: logs.RetentionDays.TWO_MONTHS, timeout: cdk.Duration.minutes(5), @@ -82,7 +82,7 @@ export class SlackHandlerConstruct extends Construct { functionName: 'seahaven-app-home', entry: path.join(__dirname, '../../lambda/app-home/index.ts'), handler: 'handler', - runtime: lambda.Runtime.NODEJS_22_X, + runtime: lambda.Runtime.NODEJS_24_X, architecture: lambda.Architecture.ARM_64, logRetention: logs.RetentionDays.TWO_MONTHS, timeout: cdk.Duration.seconds(10), @@ -110,7 +110,7 @@ export class SlackHandlerConstruct extends Construct { functionName: 'seahaven-qbo-oauth', entry: path.join(__dirname, '../../lambda/qbo-oauth/index.ts'), handler: 'handler', - runtime: lambda.Runtime.NODEJS_22_X, + runtime: lambda.Runtime.NODEJS_24_X, architecture: lambda.Architecture.ARM_64, logRetention: logs.RetentionDays.TWO_MONTHS, timeout: cdk.Duration.seconds(15), diff --git a/lib/constructs/workorder-sync.ts b/lib/constructs/workorder-sync.ts index 50bdb49..4f92ba8 100644 --- a/lib/constructs/workorder-sync.ts +++ b/lib/constructs/workorder-sync.ts @@ -37,7 +37,7 @@ export class WorkorderSyncConstruct extends Construct { this.syncLambda = new lambdaNodejs.NodejsFunction(this, 'SyncLambda', { functionName: 'seahaven-workorder-sync', entry: path.join(__dirname, '../../lambda/workorder-sync/index.ts'), - runtime: lambda.Runtime.NODEJS_22_X, + runtime: lambda.Runtime.NODEJS_24_X, architecture: lambda.Architecture.ARM_64, logRetention: logs.RetentionDays.TWO_MONTHS, memorySize: 512, -- 2.50.1