Skip to content

refactor!: slim down H3Core#1233

Merged
pi0 merged 1 commit intomainfrom
refactor/smaller-core
Oct 27, 2025
Merged

refactor!: slim down H3Core#1233
pi0 merged 1 commit intomainfrom
refactor/smaller-core

Conversation

@pi0
Copy link
Copy Markdown
Member

@pi0 pi0 commented Oct 27, 2025

H3Core class (undocumented) is the bare minimum H3 interface and used/extended by Nitro internally together with compiled router and pre-normalized middleware.

While testing, many of utils can be left unused in bundle.

This PR slims H3Core down to 2 essential methods: (reducing -1.7kB => 6.2kB)

  • fetch
  • handler
  • [constructor] and Internal _request that is used by H3 super class and _findRoute/_addRoute/_getMiddleware which are implemented by user.

@pi0 pi0 merged commit 7e06bb9 into main Oct 27, 2025
5 checks passed
@pi0 pi0 deleted the refactor/smaller-core branch October 27, 2025 09:20
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