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

Support Node.js 16 runtime for AWS Lambda #138

Merged
merged 5 commits into from
Feb 24, 2023
Merged

Conversation

arithmetric
Copy link
Owner

No description provided.

@villelahdenvuo
Copy link

LGTM

package.json Outdated
@@ -9,7 +9,7 @@
"test": "nyc --statements 100 -- mocha -- --check-leaks --timeout 3000"
},
"dependencies": {
"aws-sdk": "~2.631.0"
"aws-sdk": "~2.1055.0"

Choose a reason for hiding this comment

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

Why not?

Suggested change
"aws-sdk": "~2.1055.0"
"aws-sdk": "^2.1055.0"

Copy link
Owner Author

Choose a reason for hiding this comment

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

The idea was to pin it to the version used in the AWS Lambda runtime environment per: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html

I'll update it to match the current Node 16 runtime.

@Saeger
Copy link

Saeger commented Dec 28, 2022

FYI, I've been using this on Node 16 for 5 months now without any issues.

test/handler.js Outdated
};
index.handler(event, context, callback, overrides);
});
// it('should report failure for invalid steps', function(done) {
Copy link

Choose a reason for hiding this comment

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

Why disabling this test?

Copy link
Owner Author

Choose a reason for hiding this comment

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

This test was not passing when I switched to Node 16. I've made a slight change that resolves the issue.

@arithmetric arithmetric merged commit 6aa3fa4 into master Feb 24, 2023
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.

3 participants