[Snyk] Upgrade sanity from 3.36.3 to 3.41.1 #4
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.36.3 to 3.41.1.
ℹ️ 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 58 versions ahead of your current version.
The recommended version was released on 23 days 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
📓 Full changelog
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
Image
andFile
blocks.🐛 Notable bugfixes
Attempted import error
related to usingswr
in embedded studios._key
, we now automatically create one for it, avoiding unnecessary warning.📓 Full changelog
vercelStegaClean
util from@ vercel/stega
(#6544)_updatedAt
when relevance ordering is used with Text Search API search strategy (#6537)useTranslation
(#6517)swr
,date-fns-tz
and@ vvo/tzdb
to restore embedded studios (#6553)cleanStegaUnicode
helper (#6564)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
Presence cursors in the Portable Text Editor
Sanity Studio has always supported real-time collaboration, but you have yet to be able to see where others are working within the Portable Text Editor. By upgrading, you'll get a similar experience to Google Docs when editing block content.
This release also includes bug fixes for the Portable Text Editor:
Comments and Tasks are now out of beta
Comments and Tasks are now officially out of beta; hence, we have updated the configuration APIs. Both comments and tasks are enabled by default and for all document types.
Comments configuration migration
Configuration during beta:
export default defineConfig({
// ... rest of config
document: {
unstable_comments: {
enabled: false,
},
},
});
New configuration (remove
unstable_
):+ comments: {
enabled: false,
},
},
});
Tasks configuration migration
Configuration during beta:
export default defineConfig({
// ... rest of config
unstable_tasks: { enabled: false },
})
New configuration (remove
unstable_
):+ tasks: { enabled: false },
})
Sanity TypeGen improvements
Thanks for all the feedback about Sanity TypeGen so far! This release ships several improvements and bug fixes:
count
in GROQ projectionssanity.types.ts
) is now formatted when a project has a Prettier configurationsrc
,app
, andsanity
folders by defaulttypegen
command would fail on relative importssanity-plugin-mux-input
plugin was installed.Do continue to give us feedback in #typescript in the community!
🐛 Notable bugfixes
📓 Full changelog