chore: upgrade Lambda runtime from nodejs22.x to nodejs24.x

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
This commit is contained in:
amoussa1229 2026-07-04 05:26:03 +00:00
parent 58be1563e5
commit 3704fa0292
6 changed files with 19 additions and 9 deletions

View file

@ -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"]

View file

@ -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),

View file

@ -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,

View file

@ -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,

View file

@ -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),

View file

@ -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,