Skip to content

fix(deps): update dependency react-rx to v6 - #1943

Closed
squiggler-app[bot] wants to merge 2 commits into
mainfrom
renovate/react-rx-6.x
Closed

squiggler-app[bot] wants to merge 2 commits into
mainfrom
renovate/react-rx-6.x

Conversation

@squiggler-app

@squiggler-app squiggler-app Bot commented Aug 21, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
react-rx (source) ^4.2.5 → ^6.0.0 age confidence

Release Notes

sanity-io/react-rx (react-rx)

v6.0.0

Compare Source

Major Changes
  • #​506 4c3025c Thanks @​stipsan! - Skip the render-phase warm-up subscription in useObservable/useSyncObservable when an initialValue is provided. The warm-up only exists so sync emissions (startWith, of, …) can render on the first paint — with an initialValue there's already a value to show, so the observable is now first subscribed on commit.

    Breaking: when a sync-emitting observable is paired with an initialValue, the first paint now shows the initialValue — the sync emission arrives right after mount (previously it won on the first render, on the client and in SSR markup).

    Subscribe-time side effects (e.g. fromFetch) stay out of the render phase, disabled: true now means zero subscriptions (even when the observable is rebuilt every render), and SSR paints the initialValue without subscribing the source. Once the hook has received an emission, replacement observables on later renders are warmed during render again so components that rebuild the observable every render settle instead of looping. Omitting initialValue behaves exactly as before.

v5.1.2

Compare Source

Patch Changes
  • #​491 db29f9b Thanks @​stipsan! - perf: build with the React Compiler on oxc (oxc-transform-react, the native Rust port) instead of babel-plugin-react-compiler. The published output is unchanged — one compiler pass now handles React Compiler, TypeScript, and JSX natively, and babel is no longer part of the build or test pipeline.

v5.1.1

Compare Source

Patch Changes
  • #​479 0f7bce9 Thanks @​stipsan! - fix: make useObservable deferral identity-coherent. The observable identity and its value are now deferred as one snapshot, and when the observable identity changes (e.g. it is memoized on a document id that just changed) the hook falls back to the live value — so the previous identity's value never renders under the new one.

v5.1.0

Compare Source

Minor Changes
  • #​460 4d9b613 Thanks @​stipsan! - Add useObservablePromise and preloadObservablePromise: Suspense-ready data fetching returning a use()-compatible promise, with {disabled, ttl} options.

v5.0.1

Compare Source

Patch Changes
  • #​469 e546141 Thanks @​stipsan! - Restore the use-effect-event ponyfill so effect events see the latest values in memo and forwardRef components.

v5.0.0

Compare Source

Major Changes
  • #​459 7ed6b55 Thanks @​stipsan! - BREAKING: useObservable now defers store updates with useDeferredValue — urgent renders keep the previous value while a background render catches up. Mounts, remounts, and <Activity> reveals still render the current snapshot synchronously (no initial-value flash). SSR renders synchronous emissions (instead of always using initialValue), no longer throws when initialValue is omitted, and fails the server render on synchronously erroring observables.

    New useSyncObservable preserves v4's synchronous behavior and strict getServerSnapshot contract — use it for controlled inputs, or rename wholesale for a mechanical migration.

    See the v4 to v5 migration guide.

  • #​434 08379ed Thanks @​stipsan! - BREAKING: Require Node.js >=22.12, matching sanity's engines.node.

  • #​435 bdef45b Thanks @​stipsan! - BREAKING: Require React ^19.2 as a peer dependency. React 18 is no longer supported.

  • #​442 a89ec09 Thanks @​stipsan! - Stop publishing CommonJS builds — the package is ESM-only.

  • #​449 5e83cbe Thanks @​stipsan! - BREAKING: Require RxJS ^7.2 as a peer dependency. Import operators from 'rxjs' instead of the deprecated 'rxjs/operators' path.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate using a curated preset maintained by Sanity. View repository job log here


Note

Medium Risk
Major react-rx jump changes useObservable first-paint and deferral behavior in several plugins; no auth or data-layer changes, but UI timing/SSR can shift.

Overview
Bumps react-rx from ^4.2.5 to ^6.0.0 in the workspace catalog, @sanity/embeddings-index-ui, and the lockfile. Patch releases are queued for embeddings-index-ui, language-filter, studio-secrets, and mux-input.

useObservable now defers updates and, when an initialValue is passed, paints that value first instead of a sync emission. Those four plugins (and mux-input) call the hook with an initial value, so previews/secrets/language filter may flash the loading/initial state one frame longer. Lockfile also refreshes sanity next (6.11.0-next.38 → next.58) as a side effect of the install.

Reviewed by Cursor Bugbot for commit 4995fe7. Bugbot is set up for automated code reviews on this repo. Configure here.

@squiggler-app
squiggler-app Bot requested a review from a team as a code owner August 21, 2026 14:17
@squiggler-app
squiggler-app Bot requested review from stipsan and removed request for a team August 21, 2026 14:17
@squiggler-app
squiggler-app Bot enabled auto-merge (squash) August 21, 2026 14:17
@vercel

vercel Bot commented Aug 21, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
plugins-studio Error Error Aug 21, 2026 2:18pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
plugins-e2e-test-studio Ignored Ignored Aug 21, 2026 2:18pm

Request Review

@changeset-bot

changeset-bot Bot commented Aug 21, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 4995fe7

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

This PR includes changesets to release 12 packages
Name Type
@sanity/embeddings-index-ui Patch
@sanity/language-filter Patch
@sanity/studio-secrets Patch
sanity-plugin-mux-input Patch
sanity-plugin-internationalized-array Patch
sanity-plugin-cloudinary Patch
@sanity/cross-dataset-duplicator Patch
@sanity/personalization-plugin Patch
@sanity/sanity-plugin-async-list Patch
@sanity/document-internationalization Patch
@sanity/sfcc Patch
@sanity/form-toolkit Patch

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

@stipsan stipsan closed this Aug 21, 2026
auto-merge was automatically disabled August 21, 2026 16:04

Pull request was closed

@squiggler-app

squiggler-app Bot commented Aug 21, 2026

Copy link
Copy Markdown
Contributor Author

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future 6.x releases. But if you manually upgrade to 6.x then Renovate will re-enable minor and patch updates automatically.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

@squiggler-app
squiggler-app Bot deleted the renovate/react-rx-6.x branch August 21, 2026 16:13

This branch had an error being deployed

1 failed deployment
Preview – plugins-studio — 4995fe74 Deployed Aug 21, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant