Repository navigation
feat(h3): 新增 H3 v2 适配器,统一升级至 3.4.0 - #223
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #223 +/- ##
=======================================
Coverage 99.61% 99.61%
=======================================
Files 29 29
Lines 3150 3150
Branches 1024 1025 +1
=======================================
Hits 3138 3138
Misses 12 12 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
erest 目前缺少 H3 接入方式。新增独立包
@erest/h3,使现有 API 定义可直接绑定到 H3 v2,并复用 Zod 校验、中间件、hooks、响应信封、文档和 Axios SDK。改动
H3Adapter、h3Adapter、createERest和H3Raw;reply.raw推导为H3Event,兼容自定义State。reply.status/json/send,以及markSent()配合原生Response返回。3.4.0。验证
test:h3-types通过,检查 Raw/State 类型推导与适配器兼容性。发布
支持 H3
^2.0.8,需要 Node.js>=20.19.0。维护者已手动发布@erest/h3@3.3.0并完成 npm Trusted Publisher 配置。六个公开包版本统一为3.4.0,PR 合入 main 且 CI 通过后推送v3.4.0,由现有工作流统一自动发布。