-
-
Notifications
You must be signed in to change notification settings - Fork 795
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
feat: Update hapi
version to support Node 16 and drop Node 10
#1235
Conversation
Hey @janicduplessis - thanks a lot for the proposal. It looks like the CI tests are failing though, would you be able to look into that? Thanks in advance 🙇 |
Fixed the tests, looks like hapi now returns 204 status code sometimes (when no body) which I think is fine. |
@pgrzesik Could you have another look at this? CI is fixed. |
Thanks so much for this PR. I just came back to a serverless project after a few months away and was greeted with 20+ deprecation warnings, most of them from HAPI. Would be great to see this PR merged and released! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thank you @janicduplessis - it will be released with a new major version, 8.0.0
due to dropping support for Node v10
hapi
version to support Node 16 and drop Node 10
Description
This updates hapi versions to the latest to fix an issue where requests will hang on node 16. See hapijs/hapi#4225 for the fix in hapi.
However the latest version of hapi isn't compatible with node 10 so this requires dropping support (see https://hapi.dev/resources/changelog/).
Motivation and Context
Support node 16.
Fixes #1229
How Has This Been Tested?
Tested by running a large serverless app with this fix on node 16. Also checked the hapi changelog to make sure no breaking changes would affect this. Added node 16 to CI.
Screenshots (if appropriate):
N/A