Upgrade the Command Line Interface (CLI) with
npm install --global @sanity/cli
Upgrade the Content Studio with:
sanity upgrade
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 packageYou 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]`
Author | Message | Commit |
---|---|---|
Marius Lundgård | Move search logic into parts (#1105) | 87a49db4d |
Kristoffer J. Sivertsen | components Force pane max width to 100% (#1110) | 26c07af24 |
Espen Hovlandsdal | groq Add groq package for use with tagged template literals (#1109) | 92d41c563 |
Espen Hovlandsdal | chore Require node >= 8 for all packages (#1112) | 863e23a32 |
Bjørge Næss | desk-tool Render pane content only when expanded (#1115) | b3991cfa1 |
Kristoffer J. Sivertsen | components ReadOnly support for searchable-select (#1092) | a41265ad1 |