npm @sanity/vision 0.132.5
v0.132.5

latest releases: 3.64.2-react-compiler.0, 3.64.1, 3.64.0...
6 years ago

Upgrade with:

sanity upgrade

And install the latest Command Line Interface (CLI) with:

npm install --global @sanity/cli

✨ Highlights

"Clean" project template

If you've tried out Sanity before and know how the schemas fit together, it can be nice to bootstrap a new project without any existing schemas. We've (re)introduced this feature to the CLI!

Asset metadata extraction on per-field basis

The Sanity asset backend can extract and generate metadata from images - things like GPS location, exif data, low-quality image placeholders, palette information and similar. You may now specify which data you want to extract on a per-field basis in your schemas. For more information on this feature, see the documentation.

Create and delete documents from the command line

You can now create and delete documents from the command line with sanity documents create myDocument.json and sanity documents delete <document ID>. You can also create a new document from your favorite text editor by running sanity create document and have Sanity watch for changes with sanity document create --watch. Check the documentation for more infomation about these features.

🐛 Notable bugfixes

  • Datepicker does not close when choosing a date 🐞
  • Datepicker allows edit the date inline 🐛
  • The CLI tool would sometimes take very long to respond because of an update check that was blocking execution. This update check now has a timeout before proceeding.
  • Reference fields now correctly displays any validation errors.
  • Passing a transaction instance created outside the scope of a Sanity client to the mutate() method now serializes the transaction correctly.

📓 Full changelog

Author Message Commit
Knut Melvær [cli] Add option for initiating sanity with a clean template (#874) f2ac755
Espen Hovlandsdal [core] Fix missing 'dataset' prefix in import/export help (#873) c6b4fc5
Espen Hovlandsdal [form-builder] Allow specifying metadata to extract for images/files (#871) 5f45f24
Espen Hovlandsdal [core] Add sanity documents create, sanity documents delete commands (#872) e485934
Kristoffer J. Sivertsen [components] Dialog with functions height fix (#870) d2609d4
Espen Hovlandsdal [cli] Make update check actually respect timeout (#881) fbe2b41
Bjørge Næss [form-builder] Let InvalidValueInput be focusable like any other input (#883) 0def148
Espen Hovlandsdal [validation] Remove promise concurrency limitation for now (#884) d5302ab
Espen Hovlandsdal [form-builder] Show validation status in reference inputs (#885) 6932379
Espen Hovlandsdal [client] Fix passing clientless transaction to mutate() (#890) be45196
Espen Hovlandsdal [color-input] Add documentation for color input (#888) af44aec
Bjørge Næss [form-builder] Optimize reference search query (#892) c74b90e
Espen Hovlandsdal [chore] Only build on next, drone-ci branches 0fa8cb9
Espen Hovlandsdal [chore] Add UMD build targets and unpkg fields for client + image-url modules (#895) beb024b
Kristoffer J. Sivertsen [form-builder] Make datepicker stay open on change, reset inputValue when edit raw is valid (#896) 8f844dd
Kristoffer J. Sivertsen [form-builder] Not send inn the defaultList class in arrayInput (#878) 9af40e3

Don't miss a new vision release

NewReleases is sending notifications on new releases.