feat(durable-iterator): x-orpc-durable-iterator header#1032
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. WalkthroughRenames the durable iterator plugin header constant to Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested labels
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (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). (4)
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 |
Summary of ChangesHello @unnoq, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request refines the durable iterator integration by renaming a key HTTP header for better descriptive clarity. Concurrently, it introduces crucial documentation regarding CORS policy, guiding developers on how to properly expose this new header to client-side applications when dealing with cross-origin requests, thereby ensuring seamless functionality and preventing potential access issues. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces the x-orpc-durable-iterator header to identify durable iterator responses, replacing the previous x-orpc-dei header for better clarity. The documentation has been updated accordingly to include a new section on CORS policy, explaining how to expose this header for cross-origin requests. My review focuses on the clarity and consistency of the documentation changes. I've suggested an improvement to the code example in the documentation to maintain consistency with other examples in the same file and to provide a more complete picture for the user.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
More templates
@orpc/arktype
@orpc/client
@orpc/contract
@orpc/experimental-durable-iterator
@orpc/hey-api
@orpc/interop
@orpc/json-schema
@orpc/nest
@orpc/openapi
@orpc/openapi-client
@orpc/otel
@orpc/react
@orpc/react-query
@orpc/experimental-react-swr
@orpc/server
@orpc/shared
@orpc/solid-query
@orpc/standard-server
@orpc/standard-server-aws-lambda
@orpc/standard-server-fetch
@orpc/standard-server-node
@orpc/standard-server-peer
@orpc/svelte-query
@orpc/tanstack-query
@orpc/trpc
@orpc/valibot
@orpc/vue-colada
@orpc/vue-query
@orpc/zod
commit: |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
apps/content/docs/integrations/durable-iterator.md (1)
203-204: Clarify CORS guidance wording.The phrase “client-side clients” reads redundant. Tightening it to “browser clients” (or similar) would make the sentence clearer.
Apply this diff to improve clarity:
-The `DurableEventIteratorHandlerPlugin` adds an `x-orpc-durable-iterator` header to responses, indicating that the response is a durable iterator. For cross-origin requests, you must configure CORS to expose this header to client-side clients. +The `DurableEventIteratorHandlerPlugin` adds an `x-orpc-durable-iterator` header to responses, indicating that the response is a durable iterator. For cross-origin requests, you must configure CORS to expose this header to browser clients.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
apps/content/docs/integrations/durable-iterator.md(1 hunks)packages/durable-iterator/src/consts.ts(1 hunks)
⏰ 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)
- GitHub Check: publish-commit
- GitHub Check: lint
- GitHub Check: test
Summary by CodeRabbit
New Features
Documentation
Refactor
Chores