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: web native reimplementation #829

Merged
merged 22 commits into from
Jul 18, 2024
Merged

feat: web native reimplementation #829

merged 22 commits into from
Jul 18, 2024

Conversation

pi0
Copy link
Member

@pi0 pi0 commented Jul 17, 2024

Migration: #787

History:

This PR completely upgrades h3 to be based around modern web Request => Response + URL + Header APIs (without intermediate abstraction) alongside multiple performance improvements by avoiding extra promise creation (up to 2x faster than initial v2!).

Node.js adapter now implements proxies for Request, Response, URL, and Headers giving full two-way sync between Node.js and Web APIs.

In order to simplify things, this PR also adds back event.node? to access node context in Node.js compatible environments.

ufo dependency is removed as now we use web search params for parsing query as well.

This upgrade improves performance and also makes a true web-native HTTP framework with first-class Node.js support!

@pi0 pi0 self-assigned this Jul 17, 2024
@pi0 pi0 mentioned this pull request Jul 17, 2024
@pi0 pi0 marked this pull request as draft July 17, 2024 15:54
@pi0 pi0 marked this pull request as ready for review July 18, 2024 19:44
@pi0 pi0 merged commit c727a98 into main Jul 18, 2024
3 checks passed
@pi0 pi0 deleted the refactor/web-native branch July 18, 2024 19:48
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.

1 participant