惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
博客园_首页
H
Help Net Security
T
Tailwind CSS Blog
S
SegmentFault 最新的问题
GbyAI
GbyAI
Scott Helme
Scott Helme
D
Docker
Hacker News: Ask HN
Hacker News: Ask HN
P
Privacy & Cybersecurity Law Blog
Jina AI
Jina AI
雷峰网
雷峰网
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Spread Privacy
Spread Privacy
G
GRAHAM CLULEY
C
Cisco Blogs
The Hacker News
The Hacker News
F
Full Disclosure
Y
Y Combinator Blog
Blog — PlanetScale
Blog — PlanetScale
Recent Announcements
Recent Announcements
G
Google Developers Blog
量子位
K
Kaspersky official blog
Cisco Talos Blog
Cisco Talos Blog
The Cloudflare Blog
A
About on SuperTechFans
C
Cybersecurity and Infrastructure Security Agency CISA
Last Week in AI
Last Week in AI
博客园 - 三生石上(FineUI控件)
Microsoft Security Blog
Microsoft Security Blog
Martin Fowler
Martin Fowler
T
Tenable Blog
P
Palo Alto Networks Blog
H
Heimdal Security Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
W
WeLiveSecurity
Schneier on Security
Schneier on Security
The Register - Security
The Register - Security
F
Fortinet All Blogs
Stack Overflow Blog
Stack Overflow Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
T
The Blog of Author Tim Ferriss
N
News and Events Feed by Topic
Hugging Face - Blog
Hugging Face - Blog
小众软件
小众软件
V
V2EX
爱范儿
爱范儿

Sanity.io

A Board Game agent built using Sanity Context and Vercel's AI SDK | Sanity Build a prototype with Claude Code that your whole team can edit | Sanity What’s New - May 2026 | Sanity I built a London pub guide with v0 and the Sanity MCP in six hours. Here's what I learned. | Sanity Build a conference concierge with Agent Context and Anthropic | Sanity Build a content-aware Telegram agent with Vercel AI SDK and Chat SDK | Sanity How I used Agent API to generate photos for my family’s recipes | Sanity What’s New April - 2026 | Sanity Better context, better matches: An AI love story (for dogs) | Sanity How to write for an agent | Sanity Content Agent, meet Slack: AI content operations in your workflow | Sanity Structure powers intelligence | Sanity Your agent needs better content. Here's how to give it. | Sanity How to serve content to agents (a field guide) | Sanity Sanity TypeGen GA: Automatic TypeScript types for content and GROQ | Sanity Sanity is now available on the Vercel Marketplace | Sanity The logo soup problem (and how to solve it) | Sanity Content Releases: From scattered updates to coordinated publishing | Sanity What's New - February 2026 | Sanity How we solved the agent memory problem | Sanity v0 Builder Challenge: The winners | Sanity Introducing: Sanity Agent Skills | Sanity Content Agent: Days of work in one conversation | Sanity Our Sanity Values | Sanity Open Source Pledge 2025: Stepping up when it matters | Sanity v0 builder challenge: $3000 in prizes | Sanity Why AI Breaks Without Structured Content Operations | Sanity What’s New January - 2026 | Sanity BFCM 2025: What teams built when infrastructure stopped being the problem | Sanity How AI shaped holiday shopping and what it means for content in 2026 | Sanity You’ll need a CMS eventually. Let your agent set it up. | Sanity “You should never build a CMS” | Sanity AI Content Operations: A 30-Day Implementation Guide | Sanity What’s New December - 2025 | Sanity Scheduled Drafts: Stop manually publishing content at midnight | Sanity What’s New November - 2025 | Sanity Everything *[NYC] 2025 recap: A day of AI, Content Operations, and Culture | Sanity Clankers and content operations | Sanity Content Agent: AI that understands your structured content is here | Sanity Why design-driven content modeling creates technical debt, not velocity | Sanity What's New October - 2025 | Sanity From studio to inbox: How Kevin Green eliminated email campaign friction | Sanity The content editor's guide to content operations [E-commerce edition] | Sanity styled-components maintenance mode: A 40% faster fork | Sanity From zero code to a live website in 7 hours (thanks, Cursor!) | Sanity First attempt will be 95% garbage: A staff engineer's 6-week journey with Claude Code | Sanity Internationalization is more than translating words | Sanity What's New - September 2025 | Sanity We just deleted our 35k-member community Slack | Sanity What's New - August 2025 | Sanity The engineer's guide to content operations [E-commerce edition] | Sanity SEO for AI: Evolving from Web Pages to the Content Lake | Sanity What's New - July 2025 | Sanity Sanity Studio v4: A major version bump for a minor reason | Sanity What's New - June 2025 | Sanity Dashboard and Insights: Your New Content HQ | Sanity Canvas: AI-accelerated, context-aware, freeform authoring | Sanity Agent Actions: AI building blocks for structured content | Sanity Functions: Life beyond pressing publish | Sanity A new era for content applications with Sanity App SDK | Sanity The end of CMS era and our $85M Series C. | Sanity What's New – May 2025 | Sanity Introducing the Sanity Model Context Protocol (MCP) server | Sanity What's New – April 2025 | Sanity Pushing all the envelopes with ambitious content | Sanity Self-hosting is only free if your time is worth nothing | Sanity Content that lasts: Scaling beyond your frontend | Sanity The Live Content API is now Generally Available | Sanity The future beyond AI chat bots | Sanity Learning the new skill of working with AI | Sanity What's New - March 2025 | Sanity Give it in plain text: Making your content AI-Ready | Sanity No More 'DO NOT PUBLISH': Introducing Content Releases | Sanity React in 2025, what's next? | Sanity The final boss of front-end: block editors | Sanity Introducing Sanity for Startups | Sanity A block content editor that loves you back | Sanity A Black Friday Snooze Fest: Massive Traffic, No Drama | Sanity How to make a recipe site that scales well | Sanity The Sanity Winter Release 2024 | Sanity AVIF Arrives, Sanity’s Promise Fulfilled | Sanity Sanity joins the Open Source Pledge | Sanity Your content is now Live by default | Sanity Begin Team to Join Sanity | Sanity Sanity Digest - September '24 Edition | Sanity Sanity partners with Google. Now live on the Google Cloud Marketplace. | Sanity Sanity Digest - August ‘24 Edition | Sanity Now playing: the latest Mux Video Input plugin for Sanity | Sanity Community Digest - June ‘24 Edition | Sanity Community Digest - May ‘24 Edition | Sanity Guide to Sanity's newest product announcements | Sanity AI and Content Creation: A Leader's Guide | Sanity Of course, you should be able to type your content quickly! | Sanity New to AI Assist: translation, reference suggestions, image generation | Sanity Speak the language of your editors: Sanity Studio UI localization | Sanity Introducing the new Sanity Growth plan to serve collaborative teams | Sanity Presentation: Work faster than ever with structured content | Sanity Goodbye Feedback Frenzy, Hello Sanity Studio Comments! | Sanity Easing into the App Router with the Sanity Toolkit for Next.js | Sanity Making website updates easier with structured content | Sanity
Sanity Studio v5: Embracing React 19 | Sanity
Bjørge Næss · 2025-12-16 · via Sanity.io

We're moving the sanity package from v4 to v5. The only breaking change to the Studio? We now require React 19.2 instead of supporting React 18.

That's it. Your schemas, plugins, and customizations work exactly as before.

If you're already on React 19.2, you're good to go. If not, follow the upgrade steps below.

Why we're doing this

React 19 shipped December 2024, bringing significant performance improvements and powerful new features. Sanity Studio has officially supported React 19 since day one. But maintaining backward compatibility with React 18 has held us back. It has now been out for one year, and it’s time to move with the rest of the ecosystem. For comparison, Next.js 15 has required React 19 since July 2025 through their version 15 and 16.

Here's what the React 18 compatibility cost us:

We couldn't use React 19's best features. The use() hook enables more efficient data fetching patterns. The <Activity> component (introduced in React 19.2) allows managing component visibility in performant, user-friendly ways. We've been watching these capabilities from the sidelines.

Every feature took longer to ship. Both our core team and plugin authors spent extra cycles ensuring React 18 compatibility. Time that could have gone into making Studio better.

Performance gains left on the table. React 19 includes rendering optimizations that benefit everyone. Staying on React 18 meant our users missed out.

We considered bending the rules and supporting both versions longer. But the ecosystem has moved on, and so should we.

We've been preparing for this

We have been part of the React Working Group, and we've shipped React Compiler-optimized code on npm for almost a year. Our internal benchmarks show 20-30% improvements in editing frame rates. We've even shipped products using React 19's experimental <Activity> component in production.

For the technical deep-dive, watch Cody Olsen's React Conf talk on how we adopted the React Compiler across our codebase.

Why 19.2 specifically?

You might wonder why we're requiring 19.2 instead of 19.0.

Upgrading from React 19.0 to 19.2 requires zero code changes. If you're already on any React 19 version, bumping to 19.2 is a simple dependency update. The <Activity> component we mentioned ships in 19.2, and we want to use it.

A note on the recent React Security Advisory

You may have seen CVE-2025-55182, a critical vulnerability in React Server Components.

Sanity Studio is not affected directly. Studio doesn't use React Server Components, and studios deployed with Sanity weren't vulnerable. We've reviewed all our internal apps and packages.

If your broader application uses React Server Components alongside Studio (like a Next.js App Router app), check that you're on the patched React versions (19.0.1, 19.1.2, or 19.2.1). Major hosting platforms including Vercel, Netlify, Cloudflare, and Deno also deployed network-level fixes before the vulnerability was publicly announced.

Since we're requiring React 19.2 for Sanity v5, use 19.2.3 or later to get both the features we need and the security fix.

What this means for you

If you're a Studio user

Nothing changes for you. The developers maintaining your Studio will handle the update. Once they do, you'll benefit from improved performance automatically.

If you're a developer maintaining Studios

Already on React 19.2? Upgrade to Sanity v5 when it ships. You're done.

Still on React 18? You'll need to upgrade React first.

Before you upgrade, make sure you've addressed any deprecation warnings. Run sanity dev with your current React 18 setup and check the console. React 18.3 added warnings for patterns that would break in 19. It’s fairly unlikely, but if you see warnings, fix them first.

Enable React Strict Mode for testing React 19 compatibility: Make sure reactStrictMode is enabled in your sanity.cli.ts (⚠️ not sanity.config.ts) to catch potential compatibility issues before upgrading. This setting only affects development mode and helps identify problems with concurrent features like Suspense:

You can also enable it via environment variable with SANITY_STUDIO_REACT_STRICT_MODE="true". This setting only applies during development with sanity dev and is ignored in production builds.

Then update Sanity and React:

If you are a Sanity Studio plugin developer

If your plugin only supports React 18: Time to update. Test with React 19.2, update your peerDependencies, and ship a new version. Otherwise, your plugin won't work with Sanity v5 studios.

If you've been testing both React 18 and 19: Thank you for your diligence. You can now simplify your testing matrix and start using React 19 features without worrying about breaking React 18 studios. Keep in mind that when your plugin starts adopting React 19-only features, that’s will be a breaking change for your plugin as well and should be subject to a major version bump.

If your plugin already works with React 19: Update your peerDependencies to include Sanity v5:

One caveat: Auto-updating Studios

Studios deployed with auto-updates enabled and built on React 18 won't automatically jump to v5. This is intentional. React 18 to 19 is a runtime change that requires rebuilding your Studio.

You'll need to manually update your dependencies and redeploy. This includes updating React dependencies to v19.2.x or later and Studio to v5.0.0 or later. We think this is the responsible approach. Surprises in production help nobody.

This is not like v2 → v3

If you were around for the v2 to v3 migration, you might be bracing for impact. Don't.

That transition reimagined how Sanity Studio worked. It required significant migration effort and taught us a lot about managing change (especially what not to do).

Like v3 to v4, v4 to v5 doesn’t come with breaking changes to the Studio API. It's a dependency requirement change, not a platform overhaul. Your code stays the same. We're just aligning with where the React ecosystem has moved.

What's coming

With React 19.2 as our baseline, we can move faster on improvements we've been planning:

Continued vanilla-extract migration. We're transitioning away from styled-components for better performance. React 19.2 is a prerequisite for this work. Sanity v5 still supports styled-components, but you'll get the full performance benefits of React 19 by using our recommended styling approach.

New Studio features. The use() hook and <Activity> component unlock patterns that weren't possible before. Expect improvements to how Studio handles loading states and background work.

Our versioning philosophy

We adopted standard semantic versioning with v4, and we're sticking with it:

  • Patch versions (5.0.x): Bug fixes only
  • Minor versions (5.x.0): New features, backward compatible
  • Major versions (x.0.0): Breaking changes (like this one)

Major bumps will happen more often, but they'll be far less dramatic. Think maintenance updates, not platform rewrites.

Our commitment hasn't changed: we avoid breaking changes whenever possible. When we can't avoid them, we make them as painless as we can.

Ready to upgrade?

Check if you're already on React 19:

If you see 19.2.x or later, you're set for v5. If you see 18.x, upgrade React before December 16th to be ready.

Questions? Find us in the Sanity Community Discord or check the changelog when v5 ships.