Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Lambda Templates to Node 18 #1049

Merged
merged 24 commits into from Nov 29, 2022
Merged

Upgrade Lambda Templates to Node 18 #1049

merged 24 commits into from Nov 29, 2022

Conversation

samchungy
Copy link
Contributor

@samchungy samchungy commented Nov 20, 2022

Resolves #1019

@changeset-bot
Copy link

changeset-bot bot commented Nov 20, 2022

🦋 Changeset detected

Latest commit: 7aafd3e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
skuba Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

"@types/node": "16.11.64",
"aws-cdk": "^2.24.0",
"aws-cdk-lib": "^2.24.0",
"@types/node": "^18.11.9",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason we're pinning? Happy to go back to pinned.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there was a breaking change in a later v16 version, but this is good given v18 latest is passing

@@ -47,8 +47,6 @@ provider:
# This is easier to manage in terms of access, deployment, and tagging.
name: ${param:deploymentBucket}
environment:
# https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/node-reusing-connections.html
AWS_NODEJS_CONNECTION_REUSE_ENABLED: 1
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is default in v3

@samchungy
Copy link
Contributor Author

Awaiting DataDog/serverless-plugin-datadog#319 to be released

Copy link
Member

@72636c 72636c left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@@ -1,12 +1,12 @@
{
"compilerOptions": {
"baseUrl": ".",
"lib": ["ES2020"],
"lib": ["ES2022"],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we delete these tsconfig.jsons and revert to template/base/tsconfig.json? Maybe it's better to keep these separate since we'll have the same window of divergence when Node.js 20 goes LTS.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I had the same thought here too. Given Lambda and the ecosystem is always a little on the slow side to update I think it might be safer to keep it separate. Them updating this quick could have been a fluke :P

template/lambda-sqs-worker/package.json Outdated Show resolved Hide resolved
template/lambda-sqs-worker/package.json Outdated Show resolved Hide resolved
@72636c 72636c marked this pull request as ready for review November 29, 2022 21:51
@72636c 72636c requested review from a team as code owners November 29, 2022 21:51
samchungy and others added 3 commits November 30, 2022 09:04
Co-authored-by: Ryan Ling <ryan@outlook.com.au>
Co-authored-by: Ryan Ling <ryan@outlook.com.au>
@72636c 72636c merged commit c90c1b5 into master Nov 29, 2022
@72636c 72636c deleted the node-18 branch November 29, 2022 22:26
@seek-oss-ci seek-oss-ci mentioned this pull request Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Switch to aws-sdk-v3 in Serverless Template
2 participants