[Snyk] Upgrade sanity from 3.33.0 to 3.44.0 #6
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.
This PR was automatically created by Snyk using the credentials of a real user.
![snyk-top-banner](https://github.com/andygongea/OWASP-Benchmark/assets/818805/c518c423-16fe-447e-b67f-ad5a49b5d123)
Snyk has created this PR to upgrade sanity from 3.33.0 to 3.44.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 87 versions ahead of your current version.
The recommended version was released on a month ago.
Release notes
Package name: sanity
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
Customizing restore action now works
This releases fixes a bug preventing developers removing or customising the "restore" document action using the
document.actions
Studio configuration property.Studio will now respect changes you make to the "restore" document action, but please note that you must set the
action
property to"restore"
on yourDocumentActionComponent
. Theaction
property allows Studio to identify the restore action.Example
return action
}
Other bugfixes
preview
property inDocumentComponents
.📓 Full changelog
restore
document actionundefined
as title torenderDefault()
for array and object fields (#6774)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
sanity init
command for Next.js-embedded Studios is updated to installnext-sanity v9
andnext v14
as per best practices.// @ sanity-typegen-ignore
comments that will ignore certain queries from type generation (thanks @ largis21!).🐛 Notable Bugfixes
usePaneRouter
that caused build warnings and potential execution order issues.📓 Full changelog
discardChanges
document action