Skip to content

feat: migrate to node 16.14.0 (lts)#219

Merged
kettanaito merged 3 commits intomainfrom
chore/node-16
Mar 1, 2022
Merged

feat: migrate to node 16.14.0 (lts)#219
kettanaito merged 3 commits intomainfrom
chore/node-16

Conversation

@kettanaito
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown

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