Upgrade Lambda runtime nodejs22.x → nodejs24.x #72
Labels
No labels
app
bug
ci
compliance
dependencies
docker
docs
documentation
duplicate
enhancement
good first issue
help wanted
infra
invalid
javascript
question
wontfix
No milestone
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set.
Reference: adam/seahaven-slack-bot#72
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Upgrade this stack's Lambda functions from
nodejs22.x→nodejs24.x.Why
nodejs22.xon 2027-04-30 (block-create 2027-06-01, block-update 2027-07-01).nodejs24.xis GA (deprecates 2028-04-30) and is the current even-LTS successor.@types/nodepinning strategy waits on — doing the bump is also when@types/nodemoves from^22to^24.Scope — functions currently on
nodejs22.xseahaven-app-homeseahaven-maps-lookupseahaven-notion-syncseahaven-po-syncseahaven-qbo-lookupseahaven-qbo-oauthseahaven-slack-processorseahaven-wo-po-lookupseahaven-workorder-sync(The CDK-managed helper functions — LogRetention, OpenSearch CR provider — follow the
aws-cdk-libversion and are not set here.)Where the runtime is declared
lib/constructs/*.ts— theNodejsFunctiondefinitions (Runtime.NODEJS_22_X/nodejs22.x). Check for a shared runtime constant to change once rather than per-construct.Tasks
Runtime.NODEJS_22_X→Runtime.NODEJS_24_Xacrosslib/constructs/*.ts(or the shared constant)@types/nodeto^24in bothpackage.json(/) and/services/socket-mode/package.json, align lockfiles, and update the dependabot ignore comment (this supersedes the interim^22pin from the companion dependabot-ignore issue)npm ci && tsc && cdk synthlocally; confirm clean328440206208/us-east-1and smoke-test the real flows — Slack DM bot (QBO → KB → Maps vendor chain), App Home, WO/PO lookup, notion-syncgh pr checks)Notes
undici; exercise the real Slack round-trip, don't just typecheck.@types/nodeto^22now to stop the recurring wrong-direction major PRs; this runtime bump re-pins it to^24.seahaven-door-unlock-api/.github/dependabot.yml.Target: land before 2027-04-30.
@openswe review and implement the fixes for this issue. When finished, mark a PR ready for review, request review from me. Ensure PR body has "closes issue" notes
Opened PR #74 to upgrade all nine Lambda functions from nodejs22.x → nodejs24.x. Also added dependabot ignores for @types/node >=26.
Summary of changes:
lib/constructs/bedrock-agent.ts— 3 functions (QBO lookup, Maps lookup, WO/PO lookup)lib/constructs/slack-handler.ts— 3 functions (Slack processor, App Home, QBO OAuth)lib/constructs/notion-sync.ts— 1 functionlib/constructs/po-sync.ts— 1 functionlib/constructs/workorder-sync.ts— 1 function.github/dependabot.yml— ignore @types/node >=26 for both npm directoriestsc --noEmitpasses clean.cdk synthis blocked by missing Docker in this sandbox but the typecheck confirms allRuntime.NODEJS_24_Xreferences resolve correctly.Both
package.jsonfiles already carried@types/nodeat ^24 — no pin change was needed.