Released Apr 1st 2018

Upgrade with:

sanity upgrade

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

npm install --global @sanity/cli

✨ Highlights

Hashed assets

Asset IDs are now generated from the file contents. This means that uploading the same image or file twice will not create a duplicate, but instead reuse the existing asset. This should result in less clutter and a better user experience.

Dataset export/import maintains metadata

When a dataset is exported, the metadata of assets (original filenames and similar) are now preserved.

🐛 Notable bugfixes

  • Fixed a bug where invalid JSON in imported datasets would silently be ignored instead of failing the import

📓 Full changelog

Bjørge Næssform-builder Checksum files before uploading and link with existing asset document if any (#693)c6ae5d415
Espen Hovlandsdalcli Allow @sanity/core to declare CLI version requirement03e4c17b8
Espen Hovlandsdalexport Build asset map of asset metadata on export90b3d61fa
Espen Hovlandsdalimport Rename asset map to asset ref map to better reflect intention7055b8008
Espen Hovlandsdalimport Reduce batch size to 128kb49c017426
Espen Hovlandsdalimport Update asset metadata from asset map after uploadc7dd303f2
Espen Hovlandsdalbase Add sha1sum to file and image asset schemasd2664b5c8
Bjørge Næssform-builder Support inc + dec patches (#694)a913f17b3
Espen Hovlandsdaldesk-tool Allow hamburger menus to be toggled (#695)29a017e30
Bjørge Næssdeps Normalize versions (#696)df1dcf15f
dan-drplugin-loader Prevent throwing on all:-requests with no implementations (#702)8df3a6682
dan-drwebpack-integration Add missing postcss-url dependency (#701)5f0609af8
dan-drcore Add ability to build in unattended mode (no prompts) (#700)561fca917
Espen Hovlandsdalimport Fix JSON parse errors not being emitted (#703)7b7efe26a
Espen Hovlandsdalcli Only reveal auth token in debug output if --secrets is useda611fb4de
Espen Hovlandsdalcli Allow providing auth token through environment variableeaa258bf0