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: migrate to node 16.14.0 (lts) #219

Merged
merged 3 commits into from
Mar 1, 2022
Merged

feat: migrate to node 16.14.0 (lts) #219

merged 3 commits into from
Mar 1, 2022

Conversation

kettanaito
Copy link
Member

@kettanaito kettanaito commented Mar 1, 2022

this.observer.emit('response', isomorphicRequest, isomorphicResponse)
// Execute the resolver Promise like a side-effect.
// Node.js 16 forces "ClientRequest.end" to be synchronous and return "this".
until(async () => this.resolver(isomorphicRequest, this.response)).then(
Copy link
Member Author

Choose a reason for hiding this comment

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

Resolver execution is a side-effect right now. This needs to be tested.

Copy link
Member Author

Choose a reason for hiding this comment

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

Automated tests report no issues. Response handling logic is asynchronous by design. I think when Node 16 forced end to return this they accounted for it. As in: return the next (potentially unresolved) state of ClientRequest.

@kettanaito
Copy link
Member Author

The headers issue has been resolved (#214).

@kettanaito kettanaito force-pushed the chore/node-16 branch 2 times, most recently from b55e201 to 0de3e6d Compare March 1, 2022 13:24
@kettanaito
Copy link
Member Author

Need to publish 7d8f6bd first.

@kettanaito kettanaito merged commit 31a6bb6 into main Mar 1, 2022
@kettanaito kettanaito deleted the chore/node-16 branch March 1, 2022 14:37
@github-actions
Copy link

github-actions bot commented Mar 2, 2022

🎉 This PR is included in version 0.14.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

What versions of node do we want to support?
1 participant