Skip to content

Conversation

RobinTail
Copy link
Owner

@RobinTail RobinTail commented Sep 15, 2025

@RobinTail RobinTail added this to the v26 milestone Sep 15, 2025
Copy link
Contributor

coderabbitai bot commented Sep 15, 2025

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch make-v26

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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 -->
Copy link

coveralls-official bot commented Sep 19, 2025

Coverage Status

coverage: 100.0%. remained the same
when pulling 696a131 on make-v26
into 5d16e18 on master.

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 -->
@RobinTail RobinTail added breaking Backward incompatible changes documentation Improvements or additions to documentation refactoring The better way to achieve the same result labels Sep 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking Backward incompatible changes CI/CD documentation Improvements or additions to documentation refactoring The better way to achieve the same result

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant