npm @sanity/vision 2.10.0
v2.10.0

latest releases: 3.63.0, 3.59.2-corel.355, 3.59.2-corel.354...
3 years ago

Upgrade the Command Line Interface (CLI) with:

npm install --global @sanity/cli

Upgrade Sanity Studio with:

sanity upgrade

✨ Highlights

Initial values for any type

This upgrade extends support for initial values to any field, not just the document type. You can now set initial values on a field that's shared between schema types. It also allows for initial values for fields inside of arrays and the Portable Text editor, which has been a frequent request. Initial values still supports promises if you need to set values from external data sources.

Go to the docs to learn how you can configure initial values.

initial-values-2021-04-28

🐛 Notable bugfixes

  • Fixes a few performance regressions in the array input
  • Fixes an issue where the "revert changes"-dialog confirmation would sometimes be hidden behind the form dialog

📓 Full changelog

Author Message Commit
Marius Lundgård fix(field): fix z-index issues of tooltip and revert dialog (#2449) ba32ea1
Marius Lundgård build(examples): update @sanity/ui abf6417
Bjørge Næss perf(form-builder): move array presence and markers filtering to array item component and memoize 2b63c91
Bjørge Næss perf(base): memoize change indicator paths 7a2ffa6
Bjørge Næss perf(form-builder): memoize fileTarget event handlers bc7d122
Marius Lundgård build: update @sanity/color dependency (#2452) 5f8977d
Bjørge Næss refactor: move a few shared utilities form form-builder to util package a391a1c
Bjørge Næss refactor(form-builder): inject ArrayFunctions as prop instead of importing 828fc45
Bjørge Næss chore(desk-tool): fix lint errors 7bce53c
Bjørge Næss feat(types): add isArraySchemaType asserter ea7446a
Bjørge Næss feat(types): add initialValue type property 5394961
Bjørge Næss fix(types): add options property to BaseSchemaType 7978946
Bjørge Næss chore(eslint): add .snap files to eslintignore 57b4ed8
Bjørge Næss chore(test-studio): add a document type for testing initial values 95a122b
Espen Hovlandsdal feat(schema): add initialValue as overridable schema property 63d090e
Rex Isaac Raphael feat(schema): allow objects with initial values 041913b
Rex Isaac Raphael fix(schema): fix lint errors 0717b58
Bjørge Næss feat: add support for defining initial values for all schema types 28593a0
Bjørge Næss fix(initial-value-templates): comment out check for _type 96416de
Bjørge Næss feat(form-builder): add support for resolving initial values in array input 959bdb4
Bjørge Næss feat(form-builder): add support for initial values in portable text editor 1bd6332
Bjørge Næss chore(test-studio): add an example of initial value on type referenced by name b0e9aa2

Don't miss a new vision release

NewReleases is sending notifications on new releases.