-
-
Notifications
You must be signed in to change notification settings - Fork 35
Next: v26 #2939
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
base: master
Are you sure you want to change the base?
Conversation
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
It can now be replaced with `${method} /` syntax ## todo - [x] rename tests - [x] fate of `Routable` - [x] migration <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - Breaking Changes - Removed DependsOnMethod from the public API. - Routing now uses flat, path-scoped objects with explicit "METHOD /" keys (e.g., "get /"). - Deprecation is applied per Endpoint; Endpoint now provides nest(). - New Features - Added an automatic migration rule to convert DependsOnMethod usages to the new routing syntax. - Documentation - README and CHANGELOG updated with new routing examples and deprecation guidance. - Examples - Updated example routing to the new flat object mapping. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
I realized that context is more clear naming for that entity, which is also the same in hono and trpc. It should also reduce the potential confusion with "config options" and `OPTIONS` request method. However, it might not be possible to rename in without breaking changes, since it's present in public interfaces. ## todo - [x] diagram - [x] migration - [x] changelog <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - Breaking Changes - Standardized context naming: replace options with ctx across handlers, middleware, and factory APIs. Renamed addOptions to addContext. This affects handler signatures and how context is accessed. - Documentation - Updated README and examples to reflect ctx-based usage and patterns. - Tooling/Migration - Added automated migration rules to rename options→ctx and addOptions→addContext. - Tests - Updated test suites to align with ctx terminology and behavior. - Chores - CHANGELOG updated to document the API rename and guidance. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
DependsOnMethod
#2938options
toctx
#2934