-
-
Notifications
You must be signed in to change notification settings - Fork 12
fix: elysia should utilize ctx.query vs. request.searchParams #452
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
Conversation
* The standard way to access request query parameters is through ctx.query, not request.searchParams. * request.searchParams can be utilized but generally elysia utilizes ctx.query, unfortunately, they are not synchronized but ctx.query is generally where you would derive additional fields vs. request.searchParams.
WalkthroughThe Elysia handler refactors its context destructuring to include the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
🔇 Additional comments (1)
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR updates the Elysia adapter to use Elysia's idiomatic ctx.query for accessing query parameters instead of manually parsing request.searchParams. This aligns with Elysia's standard patterns and ensures query parameters are properly synchronized with the framework's context.
Key Changes:
- Removed manual parsing of query parameters from
url.searchParams - Now uses
ctx.querydirectly from the Elysia context - Adjusted destructuring order to extract
queryfromctxalongside other context properties
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
ymc9
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks!
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.