Upgrade with:
sanity upgrade
And install the latest Command Line Interface (CLI) with:
npm install --global @sanity/cli
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.
When a dataset is exported, the metadata of assets (original filenames and similar) are now preserved.
Author | Message | Commit |
---|---|---|
Bjørge Næss | form-builder Checksum files before uploading and link with existing asset document if any (#693) | c6ae5d415 |
Espen Hovlandsdal | cli Allow @sanity/core to declare CLI version requirement | 03e4c17b8 |
Espen Hovlandsdal | export Build asset map of asset metadata on export | 90b3d61fa |
Espen Hovlandsdal | import Rename asset map to asset ref map to better reflect intention | 7055b8008 |
Espen Hovlandsdal | import Reduce batch size to 128kb | 49c017426 |
Espen Hovlandsdal | import Update asset metadata from asset map after upload | c7dd303f2 |
Espen Hovlandsdal | base Add sha1sum to file and image asset schemas | d2664b5c8 |
Bjørge Næss | form-builder Support inc + dec patches (#694) | a913f17b3 |
Espen Hovlandsdal | desk-tool Allow hamburger menus to be toggled (#695) | 29a017e30 |
Bjørge Næss | deps Normalize versions (#696) | df1dcf15f |
dan-dr | plugin-loader Prevent throwing on all: -requests with no implementations (#702) | 8df3a6682 |
dan-dr | webpack-integration Add missing postcss-url dependency (#701) | 5f0609af8 |
dan-dr | core Add ability to build in unattended mode (no prompts) (#700) | 561fca917 |
Espen Hovlandsdal | import Fix JSON parse errors not being emitted (#703) | 7b7efe26a |
Espen Hovlandsdal | cli Only reveal auth token in debug output if --secrets is used | a611fb4de |
Espen Hovlandsdal | cli Allow providing auth token through environment variable | eaa258bf0 |