npm @sanity/core 1.149.13
v1.149.13

latest releases: 2.36.2, 2.36.2-weighted-search.16, 2.36.2-weighted-search.10...
3 years ago

Upgrade the Command Line Interface (CLI) with:

npm install --global @sanity/cli

Upgrade Sanity Studio with:

sanity upgrade

✨ Highlights

Predefined numeric values

You can now define a list of allowed options for the number field type, just like the string type. Thanks to @pdeona for this one!

Start Sanity Studio without API settings in sanity.json

We recently introduced environment variables for configuring the project ID and dataset for the Sanity Studio. Now you no longer need to have values predefined in sanity.json to start the development server. This is great for starters and other projects where you don't want to check in a specific project ID or dataset to version control. Thanks to @chrispecoraro for fixing!

Helpful notification for the ⌘ + S / Ctrl + S key shortcut

If you press the shortcut for “Save” (⌘ + s on Mac, Ctrl + s on Windows/Linux), you will now longer get the browser dialog to save an HTML-file, but get a helpful reminder that your content is synced in real-time to the data store. No manual saving necessary.

🐛 Notable bugfixes

  • Fixed client .listen() method potentially crashing in certain non-browser environments
  • Fixed number fields precision() validator crashing on undefined values. Thanks to @coreyward for fixing!
  • Fixed CLI sometimes crashing after retrying a failed API call
  • Fieldset columns are now properly aligned

📓 Full changelog

Author Message Commit
Christopher Pecoraro [core] Allow startup with env without API settings (#1680) 3228506
Espen Hovlandsdal [cli] Use disallowed dataset name as placeholder in client wrapper fa9c6b7
Espen Hovlandsdal [core] Notify when project ID or dataset differs from defaults a69f9d7
Espen Hovlandsdal [eventsource] Use forked eventsource polyfill (#1844) e9dc30d
Corey Ward [validation] Short-circuit to avoid failed coercion of undefined to string (#1835) f1d8164
Anders Stensaas [validation] Fix a performance issue when validating blocks 7d748fb
Marius Lundgård [desk-tool] Refactor file organization (#1846) ac116c7
Per-Kristian Nordnes [form-builder] PTE: fix focus bug when in readOnly mode (#1848) 2da75a9
Espen Hovlandsdal [eslint-config-sanity] Allow unescaped quotes in JSX (#1849) 84fe3a1
Marius Lundgård [desk-tool] Remove 'id' attribute from the editor form (#1851) d644cdb
Victoria Bergquist [components] Update status dialog copy b001bd9
Pedro De Ona [form-builder] Support list option on number fields (#1858) efcc719
Bjørge Næss [form-builder] Add cases for list option on numbers to test studio schema 205613a
Bjørge Næss [form-builder] Improve mapping from list options to select items cc6007d
Marius Lundgård [desk-tool] Fix import issues after renaming 94c3d39
Bjørge Næss [base] Prevent liveEdit check from throwing for documents without a schema type 8ead7a4
Marius Lundgård [desk-tool] Prevent 'Cmd+S' from triggering HTML document save dialog (#1856) 3926e65
Marius Lundgård [desk-tool] Fix auto-save copy 1fa6ba8
Espen Hovlandsdal [chore] Upgrade get-it dependency (#1873) 48a3657
Marius Lundgård [form-builder] Fix fieldset columns layout (#1878) 078adb5

Don't miss a new core release

NewReleases is sending notifications on new releases.