sanity-io/sanity (@sanity/vision)
### [`v3.36.1`](https://togithub.com/sanity-io/sanity/releases/tag/v3.36.1)
[Compare Source](https://togithub.com/sanity-io/sanity/compare/v3.36.0...v3.36.1)
##### Installation and upgrading
**To initiate a new Studio without installing the CLI globally:**
npm create sanity@latest
**To upgrade a v3 Studio, run this command in its folder:**
npm install sanity@latest
##### 🐛 Notable bugfixes
- Fixes an issue where the studio might crash on "orphaned marks" in the Portable Text Editor.
- Fixes an issue that caused the tasks plugin to be inserted multiple times in studios using more than one instance of the Structure Tool.
##### 📓 Full changelog
Author | Message | Commit
\------------ | ------------- | -------------
Pedro Bonamin | fix(tasks): group changes done to the same field ([#6132](https://togithub.com/sanity-io/sanity/issues/6132)) | [`61c7ef8`](https://togithub.com/sanity-io/sanity/commit/61c7ef8fcc)
Espen Hovlandsdal | fix(i18n): allow list formatter without arguments in `Translate` component ([#6135](https://togithub.com/sanity-io/sanity/issues/6135)) | [`3e5b8d6`](https://togithub.com/sanity-io/sanity/commit/3e5b8d60f3)
Pedro Bonamin | fix(core): remove duplicateds tasks plugins ([#6134](https://togithub.com/sanity-io/sanity/issues/6134)) | [`a0fce46`](https://togithub.com/sanity-io/sanity/commit/a0fce46d1c)
Sindre Gulseth | fix(typegen): add placeholder group to allow typegen to show in help ([#6133](https://togithub.com/sanity-io/sanity/issues/6133)) | [`45f0406`](https://togithub.com/sanity-io/sanity/commit/45f0406733)
### [`v3.36.0`](https://togithub.com/sanity-io/sanity/releases/tag/v3.36.0)
[Compare Source](https://togithub.com/sanity-io/sanity/compare/v3.35.2...v3.36.0)
##### Installation and upgrading
**To initiate a new Studio without installing the CLI globally:**
npm create sanity@latest
**To upgrade a Sanity Studio, run this command in its folder:**
npm install sanity@latest
##### ✨ Highlights
##### Sanity TypeGen (beta): Generate types for your schema and GROQ queries
This release comes with Sanity TypeGen, the new tooling in the Sanity CLI that enables extracting the schema into a static representation (`schema.json`) and to generate TypeScript type definition for it, as well as for GROQ query results.
You can learn more about Sanity TypeGen:
- [Blog post: Of course, you should be able to type your content quickly!
](https://www.sanity.io/blog/introducing-sanity-typegen?utm_source=github.com\&utm_medium=organic_social\&utm_campaign=sanity-typegen\&utm_content=)
- [Documentation](https://www.sanity.io/docs/sanity-typegen?utm_source=github.com\&utm_medium=organic_social\&utm_campaign=sanity-typegen\&utm_content=)
- [New course on Sanity Learn](https://www.sanity.io/learn/module/typescripted-content/introduction?utm_source=github.com\&utm_medium=organic_social\&utm_campaign=sanity-typegen\&utm_content=)
If you try out Sanity TypeGen, do let us know how it went in the #typescript channel in [the Sanity community](https://slack.sanity.io) or to your customer success team.
##### Tasks (beta): Delegate work within Sanity Studio
This update also includes the beta of Tasks for Sanity Studio. It's a way to assign tasks related to documents, delegate them to team members, and track their status across the project.
![image](https://hackmd.io/\_uploads/SJ4BS_g10.png)
If you wish to disable tasks, you can do so by adding the following to `sanity.config.ts`:
```ts
export default defineConfig({
...restOfConfig,
unstable_tasks: {
enabled: false,
},
})
```
Documentation for Tasks is in the works and will be announced when ready.
##### 🐛 Notable bugfixes
- Fixes a bug where all fields got marked as non-optional when extracting schema with `--enforce-required-fields`.
- Fixes a bug where Vision would insert new line on cmd-return.
##### On `styled-components@5`?
If you encounter an error such as `TypeError: Cannot read properties of undefined (reading 'div')`, please make sure your Studio doesn't depend on `styled-components@5`. Updating any such dependencies to `styled-components@6` should resolve the error:
npm install styled-components@latest
This error is caused by an ESM/CJS compability issue in `@sanity/ui`.
##### 📓 Full changelog
Author | Message | Commit
\------------ | ------------- | -------------
renovate\[bot] | fix(deps): update dependency [@sanity/presentation](https://togithub.com/sanity/presentation) to v1.12.1 ([#6109](https://togithub.com/sanity-io/sanity/issues/6109)) | [`2014ef5`](https://togithub.com/sanity-io/sanity/commit/2014ef56cc)
renovate\[bot] | chore(lockfile): update dependency [@sanity/react-loader](https://togithub.com/sanity/react-loader) to v1.9.5 ([#6104](https://togithub.com/sanity-io/sanity/issues/6104)) | [`0817d8d`](https://togithub.com/sanity-io/sanity/commit/0817d8ddf8)
renovate\[bot] | fix(deps): update dependency [@sanity/ui](https://togithub.com/sanity/ui) to ^2.0.12 ([#6107](https://togithub.com/sanity-io/sanity/issues/6107)) | [`4886b00`](https://togithub.com/sanity-io/sanity/commit/4886b00b17)
renovate\[bot] | fix(deps): update dependency [@sanity/client](https://togithub.com/sanity/client) to ^6.15.7 ([#6106](https://togithub.com/sanity-io/sanity/issues/6106)) | [`69a5d6d`](https://togithub.com/sanity-io/sanity/commit/69a5d6d60c)
Sindre Gulseth | fix: move typegen cli into [@sanity/cli](https://togithub.com/sanity/cli) ([#6111](https://togithub.com/sanity-io/sanity/issues/6111)) | [`3f37c21`](https://togithub.com/sanity-io/sanity/commit/3f37c218ee)
Tommy Petty | fix(comments): update close icon to be consistent ([#6096](https://togithub.com/sanity-io/sanity/issues/6096)) | [`89fd7ec`](https://togithub.com/sanity-io/sanity/commit/89fd7ecbdb)
renovate\[bot] | chore(deps): update dependency [@sanity/visual-editing](https://togithub.com/sanity/visual-editing) to v1.8.4 ([#6100](https://togithub.com/sanity-io/sanity/issues/6100)) | [`046c090`](https://togithub.com/sanity-io/sanity/commit/046c0907bf)
renovate\[bot] | chore(deps): update dependency turbo to ^1.13.0 ([#6114](https://togithub.com/sanity-io/sanity/issues/6114)) | [`1352e84`](https://togithub.com/sanity-io/sanity/commit/1352e84daa)
Sindre Gulseth | chore(typegen): show schema extraction and typegen in help texts ([#6122](https://togithub.com/sanity-io/sanity/issues/6122)) | [`ec3b25e`](https://togithub.com/sanity-io/sanity/commit/ec3b25e02e)
Pedro Bonamin | fix(pte): PTE inline block object modal closing on validation state changes ([#6113](https://togithub.com/sanity-io/sanity/issues/6113)) | [`a272c71`](https://togithub.com/sanity-io/sanity/commit/a272c71ee8)
Sindre Gulseth | fix(schema): correctly assert optional fields with enforce required fields ([#6121](https://togithub.com/sanity-io/sanity/issues/6121)) | [`f568e14`](https://togithub.com/sanity-io/sanity/commit/f568e14fd7)
Espen Hovlandsdal | chore: disable import/extensions rule for get-it middleware import ([#6127](https://togithub.com/sanity-io/sanity/issues/6127)) | [`aca88e9`](https://togithub.com/sanity-io/sanity/commit/aca88e90b0)
Sindre Gulseth | fix(schemaExtract): guard for list options not being an array ([#6128](https://togithub.com/sanity-io/sanity/issues/6128)) | [`e4f28e5`](https://togithub.com/sanity-io/sanity/commit/e4f28e5e95)
Sindre Gulseth | chore(codegen): track ratio between unknown nodes and all type nodes ([#6125](https://togithub.com/sanity-io/sanity/issues/6125)) | [`3822da2`](https://togithub.com/sanity-io/sanity/commit/3822da2710)
Sindre Gulseth | fix(vision): fixes bug where codemirror would insert a new line on cmd-return ([#6123](https://togithub.com/sanity-io/sanity/issues/6123)) | [`971ba9f`](https://togithub.com/sanity-io/sanity/commit/971ba9f65b)
Pedro Bonamin | fix(tasks): update description input to create blocks edx-1206 ([#6126](https://togithub.com/sanity-io/sanity/issues/6126)) | [`852bfca`](https://togithub.com/sanity-io/sanity/commit/852bfca3a6)
Pedro Bonamin | feat(tasks): add tasks empty states ([#6130](https://togithub.com/sanity-io/sanity/issues/6130)) | [`22afbb4`](https://togithub.com/sanity-io/sanity/commit/22afbb4fdb)
Sindre Gulseth | chore(codegen): add cl as codeowners for {code,type}gen ([#6118](https://togithub.com/sanity-io/sanity/issues/6118)) | [`94d0934`](https://togithub.com/sanity-io/sanity/commit/94d0934fd9)
Sindre Gulseth | feat(codegen): attempt to parse groq queries with parameter in slices ([#6117](https://togithub.com/sanity-io/sanity/issues/6117)) | [`97c0b0c`](https://togithub.com/sanity-io/sanity/commit/97c0b0cff7)
shur | feat: indicate in metadata that the quickstart option was used in project creation ([#6065](https://togithub.com/sanity-io/sanity/issues/6065)) | [`468e76c`](https://togithub.com/sanity-io/sanity/commit/468e76c8cc)
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
[ ] If you want to rebase/retry this PR, check this box
This PR contains the following updates:
3.35.2
->3.36.1
3.35.2
->3.36.1
3.35.2
->3.36.1
Release Notes
sanity-io/sanity (@sanity/vision)
### [`v3.36.1`](https://togithub.com/sanity-io/sanity/releases/tag/v3.36.1) [Compare Source](https://togithub.com/sanity-io/sanity/compare/v3.36.0...v3.36.1) ##### Installation and upgrading **To initiate a new Studio without installing the CLI globally:** npm create sanity@latest **To upgrade a v3 Studio, run this command in its folder:** npm install sanity@latest ##### 🐛 Notable bugfixes - Fixes an issue where the studio might crash on "orphaned marks" in the Portable Text Editor. - Fixes an issue that caused the tasks plugin to be inserted multiple times in studios using more than one instance of the Structure Tool. ##### 📓 Full changelog Author | Message | Commit \------------ | ------------- | ------------- Pedro Bonamin | fix(tasks): group changes done to the same field ([#6132](https://togithub.com/sanity-io/sanity/issues/6132)) | [`61c7ef8`](https://togithub.com/sanity-io/sanity/commit/61c7ef8fcc) Espen Hovlandsdal | fix(i18n): allow list formatter without arguments in `Translate` component ([#6135](https://togithub.com/sanity-io/sanity/issues/6135)) | [`3e5b8d6`](https://togithub.com/sanity-io/sanity/commit/3e5b8d60f3) Pedro Bonamin | fix(core): remove duplicateds tasks plugins ([#6134](https://togithub.com/sanity-io/sanity/issues/6134)) | [`a0fce46`](https://togithub.com/sanity-io/sanity/commit/a0fce46d1c) Sindre Gulseth | fix(typegen): add placeholder group to allow typegen to show in help ([#6133](https://togithub.com/sanity-io/sanity/issues/6133)) | [`45f0406`](https://togithub.com/sanity-io/sanity/commit/45f0406733) ### [`v3.36.0`](https://togithub.com/sanity-io/sanity/releases/tag/v3.36.0) [Compare Source](https://togithub.com/sanity-io/sanity/compare/v3.35.2...v3.36.0) ##### Installation and upgrading **To initiate a new Studio without installing the CLI globally:** npm create sanity@latest **To upgrade a Sanity Studio, run this command in its folder:** npm install sanity@latest ##### ✨ Highlights ##### Sanity TypeGen (beta): Generate types for your schema and GROQ queries This release comes with Sanity TypeGen, the new tooling in the Sanity CLI that enables extracting the schema into a static representation (`schema.json`) and to generate TypeScript type definition for it, as well as for GROQ query results. You can learn more about Sanity TypeGen: - [Blog post: Of course, you should be able to type your content quickly! ](https://www.sanity.io/blog/introducing-sanity-typegen?utm_source=github.com\&utm_medium=organic_social\&utm_campaign=sanity-typegen\&utm_content=) - [Documentation](https://www.sanity.io/docs/sanity-typegen?utm_source=github.com\&utm_medium=organic_social\&utm_campaign=sanity-typegen\&utm_content=) - [New course on Sanity Learn](https://www.sanity.io/learn/module/typescripted-content/introduction?utm_source=github.com\&utm_medium=organic_social\&utm_campaign=sanity-typegen\&utm_content=) If you try out Sanity TypeGen, do let us know how it went in the #typescript channel in [the Sanity community](https://slack.sanity.io) or to your customer success team. ##### Tasks (beta): Delegate work within Sanity Studio This update also includes the beta of Tasks for Sanity Studio. It's a way to assign tasks related to documents, delegate them to team members, and track their status across the project. ![image](https://hackmd.io/\_uploads/SJ4BS_g10.png) If you wish to disable tasks, you can do so by adding the following to `sanity.config.ts`: ```ts export default defineConfig({ ...restOfConfig, unstable_tasks: { enabled: false, }, }) ``` Documentation for Tasks is in the works and will be announced when ready. ##### 🐛 Notable bugfixes - Fixes a bug where all fields got marked as non-optional when extracting schema with `--enforce-required-fields`. - Fixes a bug where Vision would insert new line on cmd-return. ##### On `styled-components@5`? If you encounter an error such as `TypeError: Cannot read properties of undefined (reading 'div')`, please make sure your Studio doesn't depend on `styled-components@5`. Updating any such dependencies to `styled-components@6` should resolve the error: npm install styled-components@latest This error is caused by an ESM/CJS compability issue in `@sanity/ui`. ##### 📓 Full changelog Author | Message | Commit \------------ | ------------- | ------------- renovate\[bot] | fix(deps): update dependency [@sanity/presentation](https://togithub.com/sanity/presentation) to v1.12.1 ([#6109](https://togithub.com/sanity-io/sanity/issues/6109)) | [`2014ef5`](https://togithub.com/sanity-io/sanity/commit/2014ef56cc) renovate\[bot] | chore(lockfile): update dependency [@sanity/react-loader](https://togithub.com/sanity/react-loader) to v1.9.5 ([#6104](https://togithub.com/sanity-io/sanity/issues/6104)) | [`0817d8d`](https://togithub.com/sanity-io/sanity/commit/0817d8ddf8) renovate\[bot] | fix(deps): update dependency [@sanity/ui](https://togithub.com/sanity/ui) to ^2.0.12 ([#6107](https://togithub.com/sanity-io/sanity/issues/6107)) | [`4886b00`](https://togithub.com/sanity-io/sanity/commit/4886b00b17) renovate\[bot] | fix(deps): update dependency [@sanity/client](https://togithub.com/sanity/client) to ^6.15.7 ([#6106](https://togithub.com/sanity-io/sanity/issues/6106)) | [`69a5d6d`](https://togithub.com/sanity-io/sanity/commit/69a5d6d60c) Sindre Gulseth | fix: move typegen cli into [@sanity/cli](https://togithub.com/sanity/cli) ([#6111](https://togithub.com/sanity-io/sanity/issues/6111)) | [`3f37c21`](https://togithub.com/sanity-io/sanity/commit/3f37c218ee) Tommy Petty | fix(comments): update close icon to be consistent ([#6096](https://togithub.com/sanity-io/sanity/issues/6096)) | [`89fd7ec`](https://togithub.com/sanity-io/sanity/commit/89fd7ecbdb) renovate\[bot] | chore(deps): update dependency [@sanity/visual-editing](https://togithub.com/sanity/visual-editing) to v1.8.4 ([#6100](https://togithub.com/sanity-io/sanity/issues/6100)) | [`046c090`](https://togithub.com/sanity-io/sanity/commit/046c0907bf) renovate\[bot] | chore(deps): update dependency turbo to ^1.13.0 ([#6114](https://togithub.com/sanity-io/sanity/issues/6114)) | [`1352e84`](https://togithub.com/sanity-io/sanity/commit/1352e84daa) Sindre Gulseth | chore(typegen): show schema extraction and typegen in help texts ([#6122](https://togithub.com/sanity-io/sanity/issues/6122)) | [`ec3b25e`](https://togithub.com/sanity-io/sanity/commit/ec3b25e02e) Pedro Bonamin | fix(pte): PTE inline block object modal closing on validation state changes ([#6113](https://togithub.com/sanity-io/sanity/issues/6113)) | [`a272c71`](https://togithub.com/sanity-io/sanity/commit/a272c71ee8) Sindre Gulseth | fix(schema): correctly assert optional fields with enforce required fields ([#6121](https://togithub.com/sanity-io/sanity/issues/6121)) | [`f568e14`](https://togithub.com/sanity-io/sanity/commit/f568e14fd7) Espen Hovlandsdal | chore: disable import/extensions rule for get-it middleware import ([#6127](https://togithub.com/sanity-io/sanity/issues/6127)) | [`aca88e9`](https://togithub.com/sanity-io/sanity/commit/aca88e90b0) Sindre Gulseth | fix(schemaExtract): guard for list options not being an array ([#6128](https://togithub.com/sanity-io/sanity/issues/6128)) | [`e4f28e5`](https://togithub.com/sanity-io/sanity/commit/e4f28e5e95) Sindre Gulseth | chore(codegen): track ratio between unknown nodes and all type nodes ([#6125](https://togithub.com/sanity-io/sanity/issues/6125)) | [`3822da2`](https://togithub.com/sanity-io/sanity/commit/3822da2710) Sindre Gulseth | fix(vision): fixes bug where codemirror would insert a new line on cmd-return ([#6123](https://togithub.com/sanity-io/sanity/issues/6123)) | [`971ba9f`](https://togithub.com/sanity-io/sanity/commit/971ba9f65b) Pedro Bonamin | fix(tasks): update description input to create blocks edx-1206 ([#6126](https://togithub.com/sanity-io/sanity/issues/6126)) | [`852bfca`](https://togithub.com/sanity-io/sanity/commit/852bfca3a6) Pedro Bonamin | feat(tasks): add tasks empty states ([#6130](https://togithub.com/sanity-io/sanity/issues/6130)) | [`22afbb4`](https://togithub.com/sanity-io/sanity/commit/22afbb4fdb) Sindre Gulseth | chore(codegen): add cl as codeowners for {code,type}gen ([#6118](https://togithub.com/sanity-io/sanity/issues/6118)) | [`94d0934`](https://togithub.com/sanity-io/sanity/commit/94d0934fd9) Sindre Gulseth | feat(codegen): attempt to parse groq queries with parameter in slices ([#6117](https://togithub.com/sanity-io/sanity/issues/6117)) | [`97c0b0c`](https://togithub.com/sanity-io/sanity/commit/97c0b0cff7) shur | feat: indicate in metadata that the quickstart option was used in project creation ([#6065](https://togithub.com/sanity-io/sanity/issues/6065)) | [`468e76c`](https://togithub.com/sanity-io/sanity/commit/468e76c8cc)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR has been generated by Renovate Bot.