refactor(middleware)!: standardize middleware naming#38
Conversation
BREAKING CHANGE: middleware names have changed. Update imports and usage to the new names.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. ℹ️ Recent review infoConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (14)
📝 WalkthroughWalkthroughThis PR renames the public configuration option Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Poem
✨ 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 |
Description
This pull request standardizes middleware naming by replacing the
middlewaresproperty withuse. The change aligns the API with common conventions in backend frameworks such as Express, Hono, and Fastify, whereuseis the standard keyword for registering middleware. The underlying middleware behavior and execution model remain unchanged.Note
BREAKING CHANGE: Middleware configuration has been renamed. Update all imports and usage from
middlewarestouse.Summary by CodeRabbit
Release Notes
Breaking Changes
middlewaresconfiguration option touseacross all routing configuration paths (router configuration, endpoint configuration, and endpoint configs)Documentation
useproperty name throughout the API