[Snyk] Upgrade @sanity/vision from 3.33.0 to 3.49.0 #10
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to upgrade @sanity/vision from 3.33.0 to 3.49.0.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 103 versions ahead of your current version.
The recommended version was released on 25 days ago.
Release notes
Package name: @sanity/vision
Install or upgrade Sanity Studio
To initiate a new Sanity Studio project or upgrade an existing one, please refer to our comprehensive guide on Installing and Upgrading Sanity Studio.
If you are updating from a version earlier than 3.37.0, you should also check out this article to ensure your dependencies are up to date.
✨ Highlights
New TypeGen Features
Better GROQ Function Coverage
We have added the following improvements to type generation for GROQ query results:
dateTime::now()
andglobal::now()
.round()
,upper()
, andlower()
functions.*[!(_type == "post")]
Improved Union Handling in TypeGen
TypeGen now correctly expands all unions inside an object, addressing this reported issue on GitHub. Previously, only a part of a union might be returned. TypeGen now ensures that all object types in a union are expanded and included in the generated types.
TyeGen will now generate the following type for the query above:
New import path for the Portable Text Editor
We’ve started work on a standalone Portable Text Editor package, and thus transitioned to using the
@ portabletext/editor
package instead of the now deprecated@ sanity/portable-text-editor
package. This change includes several internal improvements and fixes. You can follow this work in this repository on GitHub — more documentation to come.Advanced users who have used the
@ sanity/portable-text-editor
dependecy should update to@ portabletext/editor
to ensure continued support and improvements.🐛 Notable bugfixes
FormInput
would not render fields inside a fieldset.📓 Full changelog
FormInput
(#7045)openPath
(#7046)@ portabletext/editor
instead of@ sanity/portable-text-editor
(#7035)Install or upgrade Sanity Studio
To initiate a new Sanity Studio project or upgrade an existing one, please refer to our comprehensive guide on Installing and Upgrading Sanity Studio.
If you are updating from a version earlier than 3.37.0, you should also check out this article to ensure your dependencies are up to date.
🐛 Notable Bugfixes
--no-dry-run
and--no-confirm
CLI options to be used together. Big thanks to @ pawelngei!📓 Full changelog
Version
step from release workflow (#7032)Install or upgrade Sanity Studio
To initiate a new Sanity Studio project or upgrade an existing one, please refer to our comprehensive guide on Installing and Upgrading Sanity Studio.
If you are updating from a version earlier than 3.37.0, you should also check out this article to ensure your dependencies are up to date.
🐛 Notable Bugfixes
dataset export
workflow.📓 Full changelog
Installation and upgrading
To initiate a new Studio without installing the CLI globally:
To upgrade a v3 Studio, run this command in its folder:
🐛 Notable bugfixes
📓 Full changelog
process.env
(#6991)Installation and upgrading
To initiate a new Studio without installing the CLI globally:
To upgrade a v3 Studio, run this command in its folder:
✨ Highlights
Array insert menu
This release includes a much requested upgrade of the array insert menu with various new options available. Including a new and more informative grid view, the ability to organize available schema types in groups, and filter them with a search term, and more. Check out the array article in the docs for examples.
Other features
Adds a type export of all the discovered Sanity schema variants resulting from running
sanity typegen
in the CLI. This can be useful in mocks/testing environments and used by third party tools to get a list of potential types. This union type is accessible asAllSanitySchemaTypes
in the generated type definitions.🐛 Notable bugfixes
Hotspot & Crop
tool now render faster, and use far less memory.📓 Full changelog
useListFormat
to no longer violate the rule of hooks (#6876)ifDraftRevisionId
optimistic lock usage when publishing documents