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
Author | Message | Commit |
---|---|---|
Bjørge Næss | [form-builder] Checksum files before uploading and link with existing asset document if any (#693) | c6ae5d4 |
Espen Hovlandsdal | [cli] Allow @sanity/core to declare CLI version requirement | 03e4c17 |
Espen Hovlandsdal | [export] Build asset map of asset metadata on export | 90b3d61 |
Espen Hovlandsdal | [import] Rename asset map to asset ref map to better reflect intention | 7055b80 |
Espen Hovlandsdal | [import] Reduce batch size to 128kb | 49c0174 |
Espen Hovlandsdal | [import] Update asset metadata from asset map after upload | c7dd303 |
Espen Hovlandsdal | [base] Add sha1sum to file and image asset schemas | d2664b5 |
Bjørge Næss | [form-builder] Support inc + dec patches (#694) | a913f17 |
Espen Hovlandsdal | [desk-tool] Allow hamburger menus to be toggled (#695) | 29a017e |
Bjørge Næss | [deps] Normalize versions (#696) | df1dcf1 |
dan-dr | [plugin-loader] Prevent throwing on all: -requests with no implementations (#702)
| 8df3a66 |
dan-dr | [webpack-integration] Add missing postcss-url dependency (#701) | 5f0609a |
dan-dr | [core] Add ability to build in unattended mode (no prompts) (#700) | 561fca9 |
Espen Hovlandsdal | [import] Fix JSON parse errors not being emitted (#703) | 7b7efe2 |
Espen Hovlandsdal | [cli] Only reveal auth token in debug output if --secrets is used | a611fb4 |
Espen Hovlandsdal | [cli] Allow providing auth token through environment variable | eaa258b |