v0.140.9
Upgrade the Command Line Interface (CLI) with
npm install --global @sanity/cli
Upgrade the Content Studio with:
sanity upgrade
✨ Highlights
It's now possible to remove all data for a rich text field
We used to leave an empty block object when you deleted all content in the editor for Portable Text. Now the field will be completely removed when you empty the editor for content.
Hoisted types can now be used as annotations
There was a bug in the schema validation that made it impossible to use types defined globally (also known as "hoisted types") as an annotation in a block type. Now you can refer to annotations types just as {type: 'myTypeDefinedElseWhere'}
.
🐛 Notable bugfixes / changes
- Stack traces are now shown by default when errors occur in the Sanity CLI tool in order to more easily debug issues
- Fixed a bug for fallback deserialization of HTML links when pasting HTML into the editor for Portable Text without having the default
link
type in the schema. - Fixed a bug where inserting inline objects in the editor for Portable Text would sometimes cause an error.
- The
@sanity/code-input
package was implicitly depending on an undeclared dependency - Fixed a bug in
@sanity/image-url
where the crop parameter relied on the horizontal dimension where it should rely on the vertical
📓 Full changelog
Author | Message | Commit ------------ | ------------- | ------------- Bjørge Næss | [form-builder] Pass onBlur to underlying string input (#1206) | a24ff45c1 Espen Hovlandsdal | [schema] Fix block annotation validation not handling certain objects (#1203) | d27d17352 Knut Melvær | Update Readme (#1211) | 3642f89af Kristoffer J. Sivertsen | [default-layout] Reset tool when selecting active tool (#1196) | 5f9138130 Per-Kristian Nordnes | [form-builder] Block editor: reset field on delete all (#1214) | d5099ac6b Kristoffer J. Sivertsen | Ux/fix spinner searchable select (#1204) | 356b60f35 Kristoffer J. Sivertsen | [components] Height:stretch does not work as intended in firefox (#1213) | 95fac14a9 Kristoffer J. Sivertsen | Fix/title push icons outside mobile view (#1194) | f76253de5 Marius Lundgård | [chore] Alphabetize rules | 26410020b Marius Lundgård | [chore] Disable block-no-empty | 6f138213b Marius Lundgård | [chore] Disable comment-empty-line-before | a55e95704 Bjørge Næss | [core] Fix erroneous eslint rule | ca772cda6 Per-Kristian Nordnes | [form-builder] Block editor: Better handling of unsetting field when editor is empty (#1218) | 42f8f1f0a Simen Svale Skogsrud | [image-url] Fixe a mixup where a crop parameter relied on the horizontal dimension where it should rely on the vertical | 393b1a237 Per-Kristian Nordnes | [block-tools] Fix bug in link deserialization fallback (#1215) | dc89b281c Per-Kristian Nordnes | [form-builder] Block editor: fix sometimes failing insert inline object (#1227) | 050a04bef Espen Hovlandsdal | [code-input] Add react-icons as dependency (#1228) | 59b401b6c Espen Hovlandsdal | [cli] Show stack traces on errors by default (#1202) | b2ab56a2b Kristoffer J. Sivertsen | Block editor dialog title (#1226) | 75d019a5c