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

feat: Update hapi version to support Node 16 and drop Node 10 #1235

Merged
merged 3 commits into from
Jul 28, 2021

Conversation

janicduplessis
Copy link
Contributor

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

@pgrzesik
Copy link
Collaborator

pgrzesik commented Jun 1, 2021

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 🙇

@janicduplessis
Copy link
Contributor Author

Fixed the tests, looks like hapi now returns 204 status code sometimes (when no body) which I think is fine.

@janicduplessis
Copy link
Contributor Author

@pgrzesik Could you have another look at this? CI is fixed.

@justingrant
Copy link

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!

Copy link
Collaborator

@pgrzesik pgrzesik left a 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

@pgrzesik pgrzesik changed the title Update hapi versions to fix node 16 compat, drop node 10 feat: Update hapi version to support Node 16 and drop Node 10 Jul 28, 2021
@pgrzesik pgrzesik merged commit ed06c2d into dherault:master Jul 28, 2021
@janicduplessis janicduplessis deleted the hapi branch July 28, 2021 16:41
@trygveaa trygveaa mentioned this pull request Aug 6, 2021
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.

[bug] Pending requests when using Node 16.x
3 participants