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

推荐订阅源

博客园 - 司徒正美
大猫的无限游戏
大猫的无限游戏
腾讯CDC
J
Java Code Geeks
博客园 - 【当耐特】
Microsoft Azure Blog
Microsoft Azure Blog
V
Visual Studio Blog
人人都是产品经理
人人都是产品经理
博客园 - Franky
博客园 - 聂微东
阮一峰的网络日志
阮一峰的网络日志
美团技术团队
云风的 BLOG
云风的 BLOG
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
U
Unit 42
雷峰网
雷峰网
B
Blog RSS Feed
博客园_首页
量子位
F
Fortinet All Blogs
罗磊的独立博客
H
Hackread – Cybersecurity News, Data Breaches, AI and More
酷 壳 – CoolShell
酷 壳 – CoolShell
C
Check Point Blog

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 v4: A major version bump for a minor reason...
Knut Melvær · 2025-07-01 · via Sanity.io

We're moving the sanity package from v3 to v4. The only breaking change? We now require Node.js 20 instead of Node.js 18.

That's it. That's the post.

The boring details

Node.js 18 hit end-of-life in April 2024. Our dependencies are dropping support for it, which means we need to as well.

This ecosystem-wide shift includes tools like Vite 7, which now requires Node.js 20. While we haven't upgraded to Vite 7 yet, moving to Node.js 20 means we can bring you these improvements when we do: faster builds and reduced memory usage during development. Staying on Node.js 18 would lock us out of these developer experience improvements.

According to semantic versioning rules, dropping Node.js version support is technically a breaking change that requires a major version bump. Why? Because if you're on Node.js 18 and try to install the new version, it won't work. That's the textbook definition of "backward incompatible."

We could have bent the rules (we've done it before), but we decided it's time to align the sanity package with how the rest of the npm ecosystem handles versioning. All our other packages already follow standard semver—sanity has been the odd one out.

And for those of you who were here for it, this isn't like the v2 to v3 jump, where we completely reimagined how Sanity Studio worked. That was a true platform shift that took serious migration effort. That kind of migration effort taught us a lot about managing change (especially on how to not do it). This v4 bump is different—it's purely about Node.js compatibility.

What changes for you

Your code

Nothing. Your schemas, Studio customizations, and content work exactly as before.

Your Node.js version

Quick reminder: Sanity Studio is a single-page application that compiles to static files. Node.js is only required for development tooling and building—not for running Studio in the browser. Your users won't notice a thing.

If you're on Node.js 20 or higher, run npm update sanity@latest when v4 ships on July 15th.

If you're still on Node.js 18, you'll need to upgrade. The good news? Node.js 20 brings native ES module support, better performance, and a built-in test runner.

To check if your dependencies are compatible with Node.js 20:

(You probably won't find any issues if you've kept dependencies up to date.)

What this means going forward

We're adopting standard semantic versioning for the sanity package:

  • Patch versions (4.0.x): Bug fixes only
  • Minor versions (4.x.0): New features, no breaking changes
  • Major versions (x.0.0): Breaking changes (like Node version requirements)

Major bumps will happen more often but be far less dramatic. Think maintenance updates, not platform overhauls.

Our commitment stays the same

We still go to great lengths to avoid breaking changes. We still maintain backward compatibility longer than we probably should. This versioning change just makes it clearer when something might affect your setup.

Timeline

  • This week: You'll see a CLI notice about this change
  • July 15th: v4 ships
  • After July 15th: All new features and fixes go to v4

Ready? Check your Node version with node --version. If you're below 20, grab the latest from nodejs.org.

Questions? Hit us up in the community or check the changelog.