Skip to content

Upgrade to router.fetch #103

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Cyb3r-Jak3
Copy link

Swap router.handle to router.fetch. router.handle is being dropped in itty-router@v5

https://itty.dev/itty-router/migrations/v4-v5#_1-router-handle-is-deprecated-in-favor-of-router-fetch

@harryzcy
Copy link
Contributor

harryzcy commented May 2, 2025

At some point in v4, we began to support (at the cost of extra bytes) boththe original router.handle and the newer router.fetch

Do you know from what version they started supporting that? Probably good to bump minor version of itty-router to make sure it's supported

@Cyb3r-Jak3
Copy link
Author

Looks like v4.0.27 based of this commit, kwhitley/itty-router@53da003.

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.

2 participants