github sanity-io/sanity v0.138.0

latest releases: v3.42.1, v3.42.0, v3.41.2...
5 years ago

Upgrade the Command Line Interface (CLI) with

npm install --global @sanity/cli

Upgrade the Content Studio with:

sanity upgrade

✨ Highlights

Node 8 required

In order to keep up with the Node ecosystem, we now require Node.js version 8 or higher in order to run the Sanity CLI. We will be updating the surrounding tooling to also require the same version over time. Node 6 has been out of active support from the Node.js foundation since the end of April this year, and upgrading from Node 6 is usually a drop-in replacement.

groq template literal package

You can now install and use the groq module in order to help identify GROQ-queries. When paired with editor extensions such as vscode-sanity, this allows for syntax highlighting of queries inside of JS-files. In the future, it might also do preprocessing of the queries, such as trimming unnecessary whitespace.

To use it, install it from npm:

npm install --save groq

And use it in your code:

import groq from 'groq'

const query = groq`*[_type == 'products'][0...10]`

Other features

  • Optimized list panes so they don't render or sync contents when collapsed
  • The reference select input now display correctly when in read-only mode

🐛 Notable bugfixes

  • Fixed a bug where in some cases (often deep nested panes) stretches the last pane outside the viewport when having long titles in the header

📓 Full changelog

Author Message Commit
Marius Lundgård Move search logic into parts (#1105) 87a49db
Kristoffer J. Sivertsen [components] Force pane max width to 100% (#1110) 26c07af
Espen Hovlandsdal [groq] Add groq package for use with tagged template literals (#1109) 92d41c5
Espen Hovlandsdal [chore] Require node >= 8 for all packages (#1112) 863e23a
Bjørge Næss [desk-tool] Render pane content only when expanded (#1115) b3991cf
Kristoffer J. Sivertsen [components] ReadOnly support for searchable-select (#1092) a41265a

Don't miss a new sanity release

NewReleases is sending notifications on new releases.