Skip to content

Remove the deprecated fetchOptions option from defineLive#3526

Merged
stipsan merged 2 commits into
mainfrom
remove-fetchOptions
May 12, 2026
Merged

Remove the deprecated fetchOptions option from defineLive#3526
stipsan merged 2 commits into
mainfrom
remove-fetchOptions

Conversation

@stipsan
Copy link
Copy Markdown
Member

@stipsan stipsan commented May 12, 2026

Split from #3109

Copilot AI review requested due to automatic review settings May 12, 2026 14:01
@vercel
Copy link
Copy Markdown

vercel Bot commented May 12, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
next-sanity Ready Ready Preview, Comment May 12, 2026 2:11pm
next-sanity-static Ready Ready Preview, Comment May 12, 2026 2:11pm

Request Review

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 12, 2026

🦋 Changeset detected

Latest commit: 56cffbb

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
next-sanity Major

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

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 12, 2026

📚 TypeDoc Generation Result

TypeDoc generated successfully!

  • File size: 2.5M
  • Total exports: 267
  • Artifact: typedoc-00f2f3c8490658da3659e6f1fe0db9223d9e1c6e
  • HTML docs preview: Download artifact

The TypeDoc JSON file has been generated and validated. All documentation scripts completed successfully.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 fetchOptions from the DefineLiveOptions TypeScript interface.
  • Updated defineLive server implementation to no longer read fetchOptions and to use a fixed revalidate value.
  • 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.

Comment thread apps/mvp/app/(website)/PostsLayout.tsx
Comment thread apps/mvp/app/(website)/PostsLayout.tsx
Comment thread .changeset/puny-pants-take.md Outdated
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>
@stipsan stipsan merged commit 4ea57cb into main May 12, 2026
10 of 11 checks passed
@stipsan stipsan deleted the remove-fetchOptions branch May 12, 2026 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants