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

推荐订阅源

美团技术团队
Microsoft Azure Blog
Microsoft Azure Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
B
Blog
Y
Y Combinator Blog
博客园_首页
有赞技术团队
有赞技术团队
博客园 - Franky
腾讯CDC
G
Google Developers Blog
Recent Announcements
Recent Announcements
博客园 - 【当耐特】
D
Docker
The GitHub Blog
The GitHub Blog
MyScale Blog
MyScale Blog
H
Help Net Security
Apple Machine Learning Research
Apple Machine Learning Research
A
About on SuperTechFans
D
DataBreaches.Net
T
The Blog of Author Tim Ferriss
V
V2EX
U
Unit 42
aimingoo的专栏
aimingoo的专栏
WordPress大学
WordPress大学

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
Sanity Studio v6: A focused upgrade | Sanity
John Siciliano · 2026-06-09 · via Sanity.io

We're releasing v6 of the sanity package this week, bringing Vite 8 to the Studio's development tooling.

The Vite upgrade brings great improvements for builds. Across the studios we've measured, median build times droped around 4.8×. You also get smaller bundles from improved tree shaking and a faster, more capable default search. Good stuff!

And with Node.js 20 past end of life since April, no longer receiving security patches, we're dropping support for it.

The surface you work with is unchanged: schemas, configuration, and content APIs all stay the same. If you use the Studio, but don't maintain one, there's nothing for you to do.

The pre-release is out now via, so you can test the upgrade ahead of time:

We’re publishing v6 peer dependency support for official plugins now, and v6 of the sanity package gets the latest tag on Thursday, June 11:

Read on for full upgrade notes.

What's changing

In case you missed it (or if you still are on v4); v5 brought 20–30% faster editing (React Compiler), an incoming references inspector (finally!), much better TypeGen, smart typography on by default in the Portable Text Editor, and a stack of editor quality-of-life additions.

We’re shipping v6 with improvements too, and of course, more to come.

React strict mode is on by default in development.

Strict mode has always been available via reactStrictMode in sanity.cli, but the default is now true.

  • In most cases, strict mode surfaces issues you'll want to fix anyway.
  • Strict mode reveals existing bugs earlier. It doesn't create new ones. Issues around effect cleanup and concurrent rendering are already latent in your code; strict mode just makes them visible in development.
  • To opt out, set reactStrictMode: false in sanity.cli.

Custom auth providers no longer support the mode option

Previously, configuring an array of custom auth providers via auth.providers in sanity.config.ts would append them to the default providers. To replace the built-in providers with your own, you'd set mode: 'replace'.

But the most common reason for adding custom auth is to replace the default providers. So it made sense to change it.

As of v6, auth.providers replaces by default, and mode: 'append' is no longer supported. To keep the previous behavior, use the callback config instead:

Faaaaaster builds on Vite 8

Studio v6 upgrades the build to Vite 8, a significant performance win. Across the studios we've measured, build times dropped 2–9×, with a median around 4.8×. Builds that took 10 to 15 seconds on v5 typically land in 1 to 4 seconds on v6. Expansive studios should see comparable gains.

  • For most studios this is invisible. The React plugin updates automatically; the main change you'll notice is a smaller bundle from improved tree shaking.
  • If you customize the Vite config in sanity.cli, those overrides aren't shielded from the version bump. Run the pre-release before bumping to catch any breakage.

Big kudos to the Vite team for bringing these improvements to the ecosystem!

Improved default search strategy

We changed the default search strategy from groqLegacy to groq2024 (which year is this?) as the default. You get faster search on large datasets, full Portable Text search with deeply nested content coverage, and Google-style queries (wildcards, phrases, negation). This strategy has been production-proven since early 2025.

  • Search results, ordering, and counts may shift slightly, since each strategy uses different underlying query logic. For most studios this is an improvement you won't need to act on.
  • For the full picture, such as tokenization, exact-matching rules, and custom field weighting, see the search configuration docs.
  • If you rely on the previous behavior, set search.strategy back to groqLegacy in sanity.config.ts:

Node.js 20 is dead, so we don’t support it

With Node.js 20 at end of life and not receiving security patches anymore, the minimum supported version is now Node.js 22.12, in line with the Sanity CLI.

This only matters for the environments where you run the Studio dev server or build the Studio, so your local machine and your CI or build pipeline. It does not affect a deployed Studio. The Studio builds to static assets (HTML, CSS, JS) that run in the browser, so there is no production server that needs Node or that you need to upgrade.

To resolve, upgrade your local and CI/build environments to Node.js 22.12 or newer, and set engines.node to >=22.12.

What this means for you

If you're a Sanity Studio user

Once the Studio is updated, you will get the improvements to search, hopefully fewer bugs, and less confusing custom auth experience. The developers maintaining your studio will handle the update.

If you're maintaining a studio

After v6 ships on Thursday, June 11, if your studio runs or builds on Node.js 22.12 or newer, runs cleanly under strict mode, and has no custom auth.providers, the upgrade is a version bump:

Otherwise, run sanity dev against the pre-release and work through the changes that apply before bumping.

In either case, if a plugin you depend on hasn't published a v6-compatible peer range yet, npm will fail the install on peer resolution. Run the command below to allow legacy peer dependencies as a stopgap until the plugin(s) catches up:

If you're a Sanity Studio plugin developer

Test against the pre-release and update your peerDependencies to include v6:

Until you publish that range, studios upgrading to v6 that depend on your plugin will hit an npm peer-dependency error, so publish as soon as you've verified against the pre-release.

You can follow our progress toward v6 being available on latest, including plugin migration and Node 20 support, at Are We V6 Ready.

Pre-release and upgrade path

The pre-release is available under a custom distribution tag on the next branch. The main branch continues to ship v5 through latest, and stable unchanged. To try v6 ahead of promotion to latest:

npm install sanity@next

Promotion to latest happens on Thursday, June 11.

Auto-updating studios need a manual bump to v6

Auto-updates can cross a major when it has no runtime effects (a Node.js version bump, for example), but v6 changes runtime behavior, so it won't roll out automatically. To upgrade, set your sanity dependency to ^6.0.0 and redeploy. Read the docs on understanding the latest version of Sanity to learn more.

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