Remove the deprecated fetchOptions option from defineLive#3526
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: 56cffbb The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
📚 TypeDoc Generation Result✅ TypeDoc generated successfully!
The TypeDoc JSON file has been generated and validated. All documentation scripts completed successfully. |
There was a problem hiding this comment.
Pull request overview
Removes the deprecated fetchOptions configuration from defineLive as part of a major-version API cleanup, and updates the implementation and release notes accordingly.
Changes:
- Removed
fetchOptionsfrom theDefineLiveOptionsTypeScript interface. - Updated
defineLiveserver implementation to no longer readfetchOptionsand to use a fixedrevalidatevalue. - Added a major changeset entry describing the removal and recommended fallback approach.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| packages/next-sanity/src/live/shared/types.ts | Removes the fetchOptions option from DefineLiveOptions. |
| packages/next-sanity/src/live/conditions/react-server/defineLive.tsx | Removes fetchOptions handling and adjusts revalidate/perspective usage in sanityFetch. |
| apps/mvp/app/(website)/PostsLayout.tsx | Refactors random number rendering into a separate component and changes async boundaries. |
| .changeset/puny-pants-take.md | Adds a major-version changeset describing the breaking change and migration guidance. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Cody Olsen <81981+stipsan@users.noreply.github.com>
Split from #3109