github sanity-io/sanity v2.28.0

latest releases: v3.63.0, v3.62.3, v3.62.2...
2 years ago

Upgrade the Command Line Interface (CLI) with:

npm install --global @sanity/cli

Upgrade Sanity Studio with:

sanity upgrade

✨ Highlights

  • Adds a check for superfluous image metadata properties being specified
  • The studio now supports authentication for browsers that block third-party cookies

🐛 Notable bugfixes

  • Fixes a bug where document lists would not always show items in the correct order until scrolling down and back up again
  • Fixes a bug where the studio could crash if a user had insufficient permissions to fetch user profiles while collaborating with others
  • Fixes a number of issues with the sanity upgrade command when using --tag or --range
  • Upgraded @sanity/base to use react-refractor version 2.1.6 (thanks @JamesSingleton!)
  • Upgraded @sanity/base to use refractor version 3.6.0 (thanks @miketheman!)

📓 Full changelog

Author Message Commit
James Singleton chore(deps): update react-refractor@^2.1.6 65666b6
Espen Hovlandsdal fix(cli): ignore @sanity/client major upgrades aaed678
Espen Hovlandsdal fix(base): ignore presence sessions with no user profile 51d1f5b
Per-Kristian Nordnes feat(base): authToken datastore 36a8294
Per-Kristian Nordnes feat(base): new cross window messaging store aeee9ab
Per-Kristian Nordnes refactor(base): wrappedClient will supports token auth afe5e99
Per-Kristian Nordnes refactor(base): userStore will take tokens into account d62d684
Per-Kristian Nordnes chore(default-login): wire up @santy/base 0e2e9f7
Per-Kristian Nordnes refactor(default-login): use auth tokens when necessary 49f2fb6
Rita feat(desk-tool): add support for tokens in getJsonSt ream 96fb1ad
Per-Kristian Nordnes chore(default-login): add @sanity/client ce4349f
Per-Kristian Nordnes refactor(desk-tool): use projectId for getToken 9f47ec3
Per-Kristian Nordnes refactor(default-login): convert authenticationFetcher to TypeScript 16c590f
Rita feat(base, default-login): add config for different login methods 2bab8c8
Per-Kristian Nordnes refactor(base): userStore will take tokens into account b3fb788
Per-Kristian Nordnes fix(base): explictly configure token to undefined 02961fa
Per-Kristian Nordnes refactor(base): add stream for same-window auth events too to be merged in 484fdd0
Per-Kristian Nordnes feature(default-login): add feature to sync window's login state 2f9d8b8
Per-Kristian Nordnes feat(base): test for LocalStorage first in getToken ccca4b5
Per-Kristian Nordnes chore: upgrade @sanity/client and @sanity/eventsource b87a904
Per-Kristian Nordnes refactor(base): rename deleteToken > clearToken e83cdc0
Rita style(default-login): clean up comments - remove white spaces + change single line comments 760af1b
Rita style(default-login): remove trailing white space e9372a5
Per-Kristian Nordnes refactor(base): use query prop for client request e686fe2
Per-Kristian Nordnes refactor(default-login): simplify hooks 31ec4d8
Per-Kristian Nordnes refactor(default-login): remove unnecessary spread 4027f1e
Per-Kristian Nordnes refactor(base): make token methods more error proof a9e9db1
Per-Kristian Nordnes refactor(desk-tool): resolve token from client directly 0db99b4
Per-Kristian Nordnes chore(default-login): bump @sanity/base version 655db73
Per-Kristian Nordnes refactor(base): use util fn. for reading config 6522bd8
Espen Hovlandsdal refactor(types): provide typings for authentication fetcher part 3fb15af
Espen Hovlandsdal refactor(default-login): simplify login wrapper, drop cookie test e9ee46d
Espen Hovlandsdal feat(base): exchange session id for token if no cookie is set 0c2deaf
Espen Hovlandsdal refactor(base): guard against missing localStorage 6b734a5
Espen Hovlandsdal refactor(default-login) allow disabling token-based login fdab6e1
Espen Hovlandsdal refactor(base): rename authToken to authState ce41470
Espen Hovlandsdal fix(base): make cross-window auth state work again b7165cc
Espen Hovlandsdal chore(deps): normalize dependency versions 6c5b9be
Rico Kahler chore: upgrade @sanity/client f933826
Bjørge Næss refactor(form-builder): hoist useOnClickOutside hook to shared directory + add comment about why its needed 8387b6a
Bjørge Næss refactor(types): move schema preview types into its own file and exports types 86ce7bf
Bjørge Næss refactor(types): refactor getSearchableTypes to take only the structural type it requires 5f2dd65
Bjørge Næss refactor(types): export ReferenceFilterOptions interface fa62936
Bjørge Næss fix(types): refine schema preview typings fc5279d
Bjørge Næss feat(types): add support for cross dataset references d84a245
Bjørge Næss refactor(base): make getPreviewPaths take a preview config instead of the type fa9638e
Bjørge Næss refactor(base): rename function 1b44cef
Rico Kahler refactor(base): remove unused fields b8c8142
Bjørge Næss feat(schema): support cross dataset reference schema type 84e29e6
Bjørge Næss feat(schema): support schema validation for cross dataset references c8d5617
Bjørge Næss fix(core): exclude cross dataset references from graphql generation ac780e1
Bjørge Næss feat(base): add support for using cross dataset refs in previews cfd6a00
Bjørge Næss chore(test-studio): add cross dataset token plugin 023ff51
Bjørge Næss chore(test-studio): add test schemas for cross dataset refs 09f01a3
Bjørge Næss feat(form-builder): add cross dataset reference input 9602a88
Bjørge Næss test(form-builder): add unit tests for cross dataset reference input 7d61f00
Rico Kahler feat(base): include skipCrossDatasetReferenceValidation in delete-like operations f883a7d
Rico Kahler feat(desk-tool): new confirm delete dialog for cross dataset references 02017a0
Bjørge Næss fix(desk-tool): simplify reading projectId from token document id d955086
Rico Kahler fix(desk-tool): catch 404 and replace with empty result (#3162) 9e04fcb
Bjørge Næss chore(test-studio): add example for docs dataset 3e5a2cd
Bjørge Næss chore(test-studio): add example of cross dataset reference subtype 286b16e
Bjørge Næss feat(test-studio): add example/debug test document for circular cross dataset refs 1631eea
Rico Kahler fix(desk-tool): add project IDs to delete dialog c0d0014
Espen Hovlandsdal fix(desk-tool): correct document list ordering on first load 21cb5b0
Espen Hovlandsdal feat(schema): warn when providing superflous image metadata props d1c9d6a

Don't miss a new sanity release

NewReleases is sending notifications on new releases.