Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
✨ Highlights
Specify API version for document lists
When declaring a custom structure for your desk tool navigation that includes document lists with custom filters, you can now specify which API version the filters use. This can be helpful for utilizing newer GROQ features such as geospatial queries, or in some cases for speeding up queries.
To use this feature, you can call the apiVersion()
method:
// Restaurants in Oslo!
S.documentList()
.title('Oslo restaurants')
.apiVersion('v2021-06-07')
.filter(`
_type == $type &&
geo::distance(
location, // Location field
geo::latLng($osloLat, $osloLng)
) < $threshold
`)
.params({
type: 'restaurant',
osloLat: 59.913,
osloLng: 10.7522,
threshold: 10000 // Meters
})
More @sanity/ui
migrations
The migration to our new UI framework continues, bringing improved visual consistency. In this release, the presence indicators and dashboard document previews are two of the pieces that is now fully migrated.
🐛 Notable bugfixes
- Fixes a deprecation warning being printed when running sanity start on node.js 16 or higher
📓 Full changelog
Author | Message | Commit |
---|---|---|
Marius Lundgård | build: remove unused dependency | 999452d |
Marius Lundgård | chore(workshop): improve client mock | 1b2634e |
Marius Lundgård | test(base): add UserAvatar workshop
| 7ba459e |
Marius Lundgård | test(base): update UserAvatar workshop
| 5c53951 |
Marius Lundgård | chore: upgrade @sanity/ui-workshop
| 723b281 |
Espen Hovlandsdal | chore: require node 12 (#2770) | bb5a733 |
Marius Lundgård | chore(workshop): improve client mock | e78d9ea |
Marius Lundgård | refactor(studio-hints): improve toggle button | 00f6665 |
Marius Lundgård | fix(imagetool): add guard | 6c4dc57 |
Marius Lundgård | fix(base): export all names | e82d14f |
Marius Lundgård | feat(base): support shortcut property on legacy menu items
| d6cf8eb |
Marius Lundgård | refactor(base): improve MenuItem typing
| 511556b |
Marius Lundgård | chore(base): add release tag | e27777d |
Marius Lundgård | refactor(base): improve types of presence components | 84948a3 |
Marius Lundgård | test(base): add workshop for FormField
| 5b27541 |
Marius Lundgård | refactor(base): improve types for legacy DefaultButton
| a3bd583 |
Marius Lundgård | fix(base): fix type export | d3e062e |
Marius Lundgård | test(base): add workshop for change indicators | 3360520 |
Marius Lundgård | test(base): add workshop for preview components | 864b6fd |
Marius Lundgård | refactor(base): improve scroll container | f662382 |
Marius Lundgård | fix(base): add reset css | 4775f24 |
Marius Lundgård | refactor(base): refresh unhandled error screen | d6889cd |
Marius Lundgård | refactor(base): use standard theme when possible | 96f245a |
Marius Lundgård | refactor(base): remove unnecessary scheme property
| c6e5e9f |
Marius Lundgård | refactor(test-studio): prettify | 07d8417 |
Marius Lundgård | chore(design-studio): improve preview configuration in schema | b81a674 |
Marius Lundgård | chore(test-studio): host dev server on local network | a6ffe2c |
Marius Lundgård | feat(design-studio): add document view with styled component | 2f3aba1 |
Marius Lundgård | feat(design-studio): add many tabs to test rendering | be38e53 |
Marius Lundgård | feat(design-studio): add iframe example | a931102 |
Marius Lundgård | fix(react-hooks): set initial stream value | 09db72c |
Marius Lundgård | refactor(form-builder): improve types of FormBuilderInput | c31ec8a |
Marius Lundgård | refactor(form-builder): remove unused property in ReferenceInput
| 88ee0ee |
Marius Lundgård | refactor(form-builder): remove unused property in FileInput
| f3d8319 |
Marius Lundgård | refactor(base): clean up change indicators | 3627369 |
Marius Lundgård | test(base): improve change connector workshop | d9b7f0f |
Fred Carlsen | refactor(cli): migrate BarcodeInput to Sanity UI/part-less setup (#2773)
| d24b657 |
Fred Carlsen | refactor(dashboard): update DefaultPreview in ProjectUsers widget (#2785)
| 93e13ed |
Marius Lundgård | refactor(state-router): move hooks to separate files and simplify | 1d8bee4 |
Marius Lundgård | refactor(state-router): improve hook dependencies | 73725d5 |
RitaDias | refactor(base): migrate Presence to @sanity/ui and styled components (#2772)
| 6f10ed9 |
Espen Hovlandsdal | chore(base): remove unused preview component (#2786) | a6c3a56 |
Espen Hovlandsdal | chore(structure): fix lint errors | c47b3c4 |
Espen Hovlandsdal | feat(structure): specify tag for document type resolve query | 14cb2b9 |
Espen Hovlandsdal | feat(structure): use modern api version for document type lookup | e289c27 |
Espen Hovlandsdal | feat(base): allow specifying API version for listenQuery | 3f48c99 |
Espen Hovlandsdal | feat(structure): add methods for setting/getting api version on document lists | 041a136 |
Espen Hovlandsdal | feat(desk-tool): pass on api version from structure in document lists | 27318a3 |
Espen Hovlandsdal | feat(structure): use modern api version for document type lists | f42a470 |
Marius Lundgård | build(ecommerce-studio): fix dependency version | 01defde |
Bjørge Næss | refactor(state-router): add exports directory | a92eac9 |
Bjørge Næss | refactor: replace router part import with package import | 86975d9 |
Fred Carlsen | refactor(code-input): migrate icon to @sanity/icons
| 5644bff |
Espen Hovlandsdal | chore(server): use forked webpack-dev-middleware (#2792) | b27c76b |
Rico Kahler | chore: global eslint jest config (#2787) | 3e4f2b9 |
Marius Lundgård | build(vision): update dependencies | 4a98e8c |
Marius Lundgård | chore(base): remove dev comments | 2046c17 |
Marius Lundgård | fix(form-builder): enable scrolling in value preview box | 8c8dd3a |
Geoff Ball | fix(cli): correct double init in usage | 85b7dca |
RitaDias | refactor(LoadError): replace all components with sanity/ui alternatives (#2791) | 2e029ba |
Fred Carlsen | refactor(cli): migrate schema icon to @sanity/icons (#2789)
| fdceaf6 |