Releases: sanity-io/sanity
v0.126.3
Upgrade with:
sanity upgrade
And install the latest Command Line Interface (CLI) with:
npm install --global @sanity/cli
🐛 Notable bugfixes
- Fixed a relative import that could in some circumstance cause a "Module not found error".
📓 Full changelog
Author | Message | Commit |
---|---|---|
Bjørge Næss | [default-layout] Fix wrong relative import (#654) | f37a3ba |
v0.126.2
Upgrade with:
sanity upgrade
And install the latest Command Line Interface (CLI) with:
npm install --global @sanity/cli
🐛 Notable bugfixes
- Fixed assets potentially being invalid after export
- Fixed very old assets not being exportable through (
sanity dataset export
) - Fixed slug fields not being able to merge default validation with custom validation
📓 Full changelog
Author | Message | Commit |
---|---|---|
Thomas Drevon | [mutator] Update mutator readme (#406) | 2ff0084 |
Jørgen Aaberg | Remove typo in form-builder example in README.MD (#649) | bcbe852 |
Espen Hovlandsdal | [export] Handle exporting of old asset IDs | f8c4d76 |
Espen Hovlandsdal | [export] Temporarily store files to filesystem before archiving | 8923552 |
Espen Hovlandsdal | [schema] Fix combining slug validation rules with custom ones | 2b13b12 |
v0.126.1
Upgrade with:
sanity upgrade
And install the latest Command Line Interface (CLI) with:
npm install --global @sanity/cli
🐛 Notable bugfixes
- Fixed a bug causing hotspot/crop handles not responding to user input
- Misc. bugfixes related to the slug input
📓 Full changelog
Author | Message | Commit |
---|---|---|
Bjørge Næss | [imagetool] Hotfix hotspot (#647) | 2b77e3e |
Bjørge Næss | [cli] Use media for preview in movies template (#646) | a180273 |
Espen Hovlandsdal | [schema] Fix validation of slugs in arrays (#648) | c9af1b1 |
Espen Hovlandsdal | [schema] Fix error in slug validation when current is not set (#648) |
82578ea |
Bjørge Næss | [form-builder] Fix bug causing editing slugs in array to have no effect (#648) | 0b47ac2 |
Bjørge Næss | [schema] Set default preview for slugs (#648) | 9a068f3 |
v0.126.0
Upgrade with:
sanity upgrade
And install the latest Command Line Interface (CLI) with:
npm install --global @sanity/cli
✨ Highlights
✅ Validation (experimental 🔬)
The first building blocks of the long-awaited validation infrastructure is here. Each document field can specify validation rules that generate either errors (prevent the document from being published) or warnings (allow publishing, but notify the user about the warning).
For a full overview of the validation feature, see the documentation. We're looking for feedback on this feature and how you like the developer and user experience - drop us a line if you'd like to help!
🐌 Improved and simplified slug input
The slug input has been significantly simplified and is now easier to customize. A slugify
option can now be provided in order to customize how slugs are generated, which also introduces the ability to generate the slug in an asyncronous manner (just return a promise!).
The uniqueness check now more correctly considers draft/published status, and also ensures that the uniqueness check is run per document type. The check to determine whether a slug is unique or not can now be customized by passing an isUnique
function in the field options. More information can be found in the documentation.
🗜️ Import/export tarballs
sanity dataset export
now generates a tarball (.tar.gz
) containing both the documents in NDJSON form as well as assets (files and images). This provides a simple way to transfer data between different projects or datasets.
If you want to remove assets from the export, you can use the --no-assets
flag, or if you just want the raw documents, use the --raw
flag.
🛰️ Better indication of network status
The studio is now more responsive in the case of network errors, indicating the reconnect status and locking the local document to prevent data from being lost.
🤖 CLI: Unattended "new project"
The command line tool is now able to create and bootstrap a new project and dataset by using the --yes
and --create-project
flags (see sanity help init
for more information).
👀 Faster previews
All documents that are previewed on screen now share the same in-memory representation. This should lead to a faster and more responsive UI.
🐛 Notable bugfixes
- Publishing documents now include a revision lock to prevent race conditions or incorrect local states.
- The
@sanity/cli
package did not notify on new releases. Now is a good time to runnpm install -g @sanity/cli
to ensure you stay up to date with new releases! - Listeners would in certain cases stop reconnecting.
@sanity/client
will now always try to reconnect if disconnected, untilunsubscribe()
is called. - Read-only fields are now more clearly presented as... read-only!
📓 Full changelog
Author | Message | Commit |
---|---|---|
Kristoffer J. Sivertsen | [form-builder] Show paste enable on uploadplaceholder (#583) | 9ebff06 |
Espen Hovlandsdal | [chore] Disable browser env for non-browser modules | 7c98296 |
Espen Hovlandsdal | [export] Add new export module for exporting a dataset and downloading associated assets | ee9aa4c |
Espen Hovlandsdal | [core] Use new @sanity/export module for exporting datasets | b14a433 |
Espen Hovlandsdal | [import] Refactored to alllow importing from tarballs | 36bf52a |
Espen Hovlandsdal | [core] Add more help text for import/export commands | 0d15bea |
Espen Hovlandsdal | [export] Don't filter or touch asset documents or references in raw mode | dbc0bba |
Espen Hovlandsdal | [export] Add support for filtering on drafts and types | 1d452dd |
Espen Hovlandsdal | [core] Document drafts, types and overwrite flags for export command | c26fc06 |
Espen Hovlandsdal | [cli] Replace update-notifier with custom, non-lazy-loaded version | c7d4ecf |
Espen Hovlandsdal | [cli] Remove unnecessary rewriting of lazy loader in update notifier | 166f061 |
Espen Hovlandsdal | [chore] Normalize engines and author fields | 7e3ceb1 |
Espen Hovlandsdal | [chore] Upgrade and normalize dependencies | 1957c00 |
Bjørge Næss | [form-builder] Minor flowtype fix | 4442fcc |
Bjørge Næss | [preview] Optimize preview fetching | c1e0ca3 |
Espen Hovlandsdal | [client] Always reconnect listeners, even when auto-reconnect fails | 292ed3b |
Kristoffer J. Sivertsen | [all] Adding support for and styling readOnly fields. #440 (#574) | c716c93 |
Espen Hovlandsdal | [validation] Initial validation implementation | 22807f8 |
Bjørge Næss | [form-builder] Consistent naming of input components/folders (#603) | dd2cd28 |
Espen Hovlandsdal | [cli] Replace progrescii + thenify dependencies | f4d3b0e |
Bjørge Næss | [preview] Fix issue with accumulated queries + default pagination limit (#610) | e167b3e |
Espen Hovlandsdal | [base] Provide size ordering + size subtitles for assets | ad772ce |
Bjørge Næss | [export] Set publishConfig.access = 'public' | c4063d3 |
Bjørge Næss | [components] Remove react-text-ellipsis due to perf issues (#606) | f520138 |
Kristoffer J. Sivertsen | [components] Avoid repaint on scroll (#615) | ca81321 |
Kristoffer J. Sivertsen | [components] Click to scroll for block editor #76 (#578) | c28dbff |
Bjørge Næss | [preview] Cache and share preview snapshots between all subscribers (#612) | 0b34988 |
Kristoffer J. Sivertsen | [components] Proof of new slug concept (#585) | 03b7d93 |
Espen Hovlandsdal | [schema] Deprecate slugifyFn (now called slugify ) |
1c857ac |
Kristoffer J. Sivertsen | [base] Not using height on text input (#619) | 0f0be2f |
Bjørge Næss | [test-studio] Add species type | 3932474 |
Bjørge Næss | [chore] Remove outdated changelog | f32b2ff |
Espen Hovlandsdal | [desk-tool] Lock to last-known local revision when publishing | 50bc679 |
Espen Hovlandsdal | [schema] Change slug uniqueness function name to isUnique |
130c978 |
Kristoffer J. Sivertsen | [default-layout] Removing padding from secondary navigation | 823769e |
Bjørge Næss | [eslint-config-sanity] Import eslint config package (#625) | d803394 |
Bjørge Næss | [form-builder] Handle readOnly on unknown fields (#627) | 2e874ef |
Espen Hovlandsdal | [cli] Allow creating new projects in unattended mode | febffa6 |
Bjørge Næss | [cli] Add react-icons as dev dependency (#630) | 0a8032b |
Kristoffer J. Sivertsen | [components] Scrollcontainer has default style. Override for mobile in defaultpane (#631) | e4801da |
Espen Hovlandsdal | [client] Allow specifying ID of transactions | 4e73a08 |
Espen Hovlandsdal | [cli] Skip dataset validation on CI-environment | 2d4a1f0 |
Bjørge Næss | [infrastructure] Improve how we handle connection failures/reconnects (#632) | 582a5ee |
Bjørge Næss | [preview] Emit null as snapshot for missing documents (#634) | fd65783 |
Kristoffer J. Sivertsen | [imagetool] Min width on canvas (#636) | a7abf4b |
Espen Hovlandsdal | [validation] Allow disabling validation for field and document types | b22e0cc |
Espen Hovlandsdal | [validation] Infer value from title/value list options | 3929d4a |
Bjørge Næss | [form-builder] Support readOnly on block editor (#640) | 118417c |
Bjørge Næss | [form-builder] Hide delete button from dialog when array is read only (#641) | e230a93 |
Thomas Drevon | [cli] Fix slug field options in movies template schema (#642) | 60e4802 |
Espen Hovlandsdal | [import] Fix importing of unreferenced assets | 720c909 |
Espen Hovlandsdal | [cli] Update URL for moviedb dataset | fedbd51 |
v0.125.9
Upgrade with:
sanity upgrade
And install the latest Command Line Interface (CLI) with:
npm install --global @sanity/cli
🐛 Notable bugfixes
This fixed a breaking change in a third party module that affected the visual appearance of the Sanity Studio.
📓 Full changelog
Author | Message | Commit |
---|---|---|
Bjørge Næss | [server] Configure custom properties with preserve: false (#601) | 2a1d5d7 |
v0.125.8
Upgrade with:
sanity upgrade
And install the latest Command Line Interface (CLI) with:
npm install --global @sanity/cli
🐛 Notable bugfixes
- Fixed a bug where images would not display in image fields
- The hotspot/crop tool is now responsive
- Made it possible to unset color values
📓 Full changelog
Author | Message | Commit |
---|---|---|
Kristoffer J. Sivertsen | [imagetool] Make imagetool responsive (#590) | 74ef6b7 |
Kristoffer J. Sivertsen | Color input with unset fixes #584 (#593) | ab8cdfa |
v0.125.6
Upgrade with:
sanity upgrade
And install the latest Command Line Interface (CLI) with:
npm install --global @sanity/cli
🐛 Notable bugfixes
- Make links in error dialogs inherit correct color
- Optimize hotspot selection for images
- Various improvements for smaller screen devices
📓 Full changelog
Author | Message | Commit |
---|---|---|
Bjørge Næss | [cli] Make block text references to separate named types (#572) | 24ed5c1 |
Bjørge Næss | [imagetool] Scale down large images before passing to ImageTool (#567) | 469569c |
Kristoffer J. Sivertsen | [components] Inherit color on state colored dialogs. (#571) | 07fb511 |
Kristoffer J. Sivertsen | [desk-tool] Reopen collaped panes when changing type. Fixes #260 (#576) | 2504461 |
Kristoffer J. Sivertsen | [form-builder] Center with flex. Fixes #79 (#577) | 5c8eef1 |
Bjørge Næss | [base] Don't include results on document store listeners (#579) | f1701b5 |
Bjørge Næss | [preview] Don't write ref attributes on materialized values (#580) | f95dfaa |
Bjørge Næss | [imagetool] Always show drag handles on crop rect (#568) | ae7f208 |
Kristoffer J. Sivertsen | [default-layout] Use visibilityState to hide loadingScreen. Fixes #459 (#573) | 41cd02a |
Kristoffer J. Sivertsen | [example-studio] Adding icons in example-studio. Also uses correct vision plugin (#581) | 9b6e933 |
Kristoffer J. Sivertsen | [cli] Add icons to movies-studio (#582) | 97b9256 |
Kristoffer J. Sivertsen | Component/tri state switch (#575) | f2ae92d |
Kristoffer J. Sivertsen | Optimize responsive (#586) | 4ea1182 |
Espen Hovlandsdal | [chore] Run tests on node 9 as well | b4fbcf9 |
Bjørge Næss | [form-builder] Refactor gradientPatchAdapter (#589) | cc039fe |
v0.125.5
Bugfix release
- Fixed a bug that sometimes caused errors to be thrown when switching between documents.
- Removed
required: true
from a few fields in example schemas generated atsanity init
.
Upgrade with:
sanity upgrade
📓 Changelog
Author | Message | Commit |
---|---|---|
Bjørge Næss | [form-builder] Guard against this._editorNode being null (#569) | 4ae5281 |
Bjørge Næss | [cli] Remove required: true from template schemas (#570) | 01da7ee |
v0.125.4
Upgrade with:
sanity upgrade
And install the latest Command Line Interface (CLI) with:
npm install --global @sanity/cli
✨ Highlights
- A few performance enhancements
🐛 Notable bugfixes
- Fix image-url package incorrectly being published in ES6 format
- Fix
sanity exec
not working because of missing dependencies - Fix close button on Google Maps input dialog appearing behind the dialog/map
- Fix hortizontally aligned radio buttons float issue
📓 Full changelog
Author | Message | Commit |
---|---|---|
Bjørge Næss | [preview] Wait 20s after page visibility changes to off before disposing preview listeners (#546) | 4a8c7f7 |
Simen Svale Skogsrud | [mutator] Fix/mutation rev shortcomings (#551) | b1ddb43 |
Simen Svale Skogsrud | [mutator] Eliminated two extraneous calls to JSON.stringify (#552) | 5281f56 |
Bjørge Næss | [mutator] Do a few more debug call optimizations (#554) | 089d41a |
Espen Hovlandsdal | [default-layout] Show 'Up to date' instead of specific version number | ec303f9 |
Espen Hovlandsdal | [chore] Bump prettier print width to 100 | 6e1bb4e |
Espen Hovlandsdal | [server] Exclude packages/@sanity -paths from babel-loader |
f695eab |
Bjørge Næss | [form-builder] Optimize selectionchange event handlers in FormbuilderBlock/FormBuilderInline (#555) | c6407a8 |
Espen Hovlandsdal | [image-url] Set babel env target to IE9 for image-url package | ec4b120 |
Espen Hovlandsdal | [client] Add ifRevisionId() method to patches | 152e333 |
Espen Hovlandsdal | [core] Use ESM default export for dataset prompt | e71236c |
Espen Hovlandsdal | [core] Improve help text for deploy, build and import commands | 108c3c3 |
Espen Hovlandsdal | [core] Fix missing dependencies for 'sanity exec' command | 219bba9 |
Espen Hovlandsdal | [google-maps-input] Fix close button layering | cff3049 |
Kristoffer J. Sivertsen | [components] Radioselect with using flex. Fixes #528 | 8692e9d |