Skip to content

feat: export H3Core#1127

Merged
pi0 merged 3 commits intomainfrom
feat/h3-core
Jun 26, 2025
Merged

feat: export H3Core#1127
pi0 merged 3 commits intomainfrom
feat/h3-core

Conversation

@pi0
Copy link
Copy Markdown
Member

@pi0 pi0 commented Jun 26, 2025

This PR exposes H3Core, an abstract class without implementation for _findRoute to allow replacing the router.

Bundle size saving is medium (7.4kB core vs 9.6kB with rou3), but the main benefit is giving better low-level control.

With this PR, we also expose _routes: [] internal array useful for next steps, both accessing nested app route meta (#1111) and better sub-app (#1107) since we can "replay" route additions tothe main app when mounting it.

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Jun 26, 2025

Deploying h3dev with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7aaac00
Status: ✅  Deploy successful!
Preview URL: https://0cbdfeb3.h3dev.pages.dev
Branch Preview URL: https://feat-h3-core.h3dev.pages.dev

View logs

@codecov
Copy link
Copy Markdown

codecov bot commented Jun 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@pi0 pi0 merged commit 81210d0 into main Jun 26, 2025
4 of 5 checks passed
@pi0 pi0 deleted the feat/h3-core branch June 26, 2025 22:13
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