Migrating to Sanity v5.8.1
Version v5.8.1 introduces 1 breaking change. This guide details how to update your code.
Released: 2/5/2026
1
Breaking Changes
2
Migration Steps
2
Affected Symbols
⚠️ Check Your Code
If you use any of these symbols, you need to read this guide:
sanity/structuresanity/presentationBreaking Changes
●Issue #1
Enforced explicit loginMethod configuration. Users must now explicitly configure the login method if it was previously implicitly set.
Migration Steps
- 1Ensure explicit configuration of `loginMethod` if relying on implicit settings.
- 2Run `npm install sanity@latest` to upgrade.
Release Summary
Sanity Studio v5.8.1 introduces faster formatting by switching to oxfmt and fixes missing types in structure and presentation modules. It also enforces explicit configuration for login methods.
Need More Details?
View the full release notes and all changes for Sanity v5.8.1.
View Full Changelog