npm sanity 3.55.0
v3.55.0

latest releases: 3.64.0, 2.36.6, 2.36.4...
2 months ago

✨ Highlights

Request access to Studios

Users can now request access to a project they're not yet a member of, straight from the Studio's "Not authorized" screen. Project administrators will be alerted by email and can approve or deny the request from the project settings area.
image

TypeGen updates

Running sanity typegen will now by default generate a query typemap which the Sanity Client can use to automatically infer the returned types of a query.

🐛 Notable bugfixes

  • The TypeGen CLI command should now correctly detect and generate types defined by defineQuery from the next-sanity package.
  • Fixes an issue with FormInput causing includeField to not have any effect for nested paths.
  • Fixes an issue with the cursor sometimes moving around as you typed in the Portable Text Editor.
  • Fixes an issue where references would not open if clicked inside a Field Group.
  • Fixes an issue where it wasn't possible to copy a text selection inside a text field.

Install or upgrade Sanity Studio

To initiate a new Sanity Studio project or upgrade an existing one, please refer to our comprehensive guide on Installing and Upgrading Sanity Studio.

If you are updating from a version earlier than 3.37.0, you should also check out this article to ensure your dependencies are up to date.

📓 Full changelog

Author Message Commit
Bjørge Næss fix(form): fix issue where FormInput was not rendering field when passed 'includeField' (#7350) e6185ef
Jordan Lawrence chore(tests): collapsing ct test report comment (#7378) cd341d8
renovate[bot] chore(deps): update dependency @sanity/pkg-utils to v6.10.10 (#7381) 292b7d0
renovate[bot] fix(deps): update dependency get-it to ^8.6.5 (#7376) b5d7418
renovate[bot] fix(deps): update dependency @portabletext/editor to ^1.0.15 (#7377) f273249
Bjørge Næss refactor(preview): extract global listener, refactor preview APIs and improve typings (#7360) 5c75a38
Bjørge Næss chore: add docgen script (#7387) e3a02c4
Sindre Gulseth fix(typegen): find queries imported with defineQuery from next-sanity (#7391) b86e3d0
Sindre Gulseth feat(typegen): set overload client methods to default to true (#7390) c11e51f
Jordan Lawrence test(core): updating import on helpers to using jest and not playwright (#7384) 87316d6
Carolina Gonzalez fix: do not show latest version if auto-updating (#7388) 1872388
Espen Hovlandsdal chore(types): deprecate studioHost, externalStudioHost properties (#7369) 565eb49
Bjørge Næss chore: fix wrong version format in generate documents script (#7393) 1a2ef91
Fred Carlsen fix(core): fix copy related issues (#7394) 49083dd
Drew Lyton feat(sanity): request access flow (#7248) 5ab35a5

Don't miss a new sanity release

NewReleases is sending notifications on new releases.