[Snyk] Upgrade @sanity/vision from 3.56.0 to 3.57.0 #119
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.56.0 to 3.57.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 4 versions ahead of your current version.
The recommended version was released on 22 days ago.
Release notes
Package name: @sanity/vision
✨ Highlights
Significant rendering perf. improvements (up to x10) in dev mode
This change enables
styled-components
"speedy mode" insanity dev
, improving developer mode performance. This change impacts only development builds (sanity dev
) – production builds (sanity build
orsanity start
) remain unaffected since "speedy mode" has always been enabled in production.Developers embedding Sanity Studio in other frameworks like Next.js or Remix need to adjust their own build tooling to declare the
SC_DISABLE_SPEEDY
flag to achieve the same performance benefits. For example, Next.js users can add this snippet to theirnext.config.{js,mjs,ts}
file:For Safari users, while they will still be able to inspect and see CSS rules coming from
styled-components
, these will now be read-only in the DevTools inspector. The performance benefits from enabling "speedy mode" in development mode are significant for Safari users and outweigh the convenience of being able to edit these rules directly in the inspector. With Hot Module Reload, developers can still quickly make changes to their source code, and the new styles will apply immediately.Enabling "speedy mode" offers a faster development experience across the board. Developers using Safari for testing purposes can still verify the functionality of the studio, and for more detailed CSS editing, they can switch to Chrome, Firefox, or other Chromium-based browsers like Arc or Brave.
It's still possible to restore the old behaviour of disabling speedy in dev mode in userland with a custom
sanity.cli.ts
override:import {defineCliConfig} from 'sanity/cli'
import {type UserConfig} from 'vite'
export default defineCliConfig({
vite(viteConfig: UserConfig): UserConfig {
return {
...viteConfig,
define: {
...viteConfig.define,
//
sanity dev
enables speedy in both development and production, this line restores the defaultstyled-components
behaviour of only enabling it in production'process.env.SC_DISABLE_SPEEDY': JSON.stringify(process.env.NODE_ENV !== 'production'),
},
}
},
})
add
--max-fetch-concurrency
to prevent stalled validatorsThis update addresses an issue where the
sanity documents validate
CLI command could time out when validating documents with complex custom validation rules. The changes include:--max-fetch-concurrency
to allow users to adjust the maximum number of concurrentclient.fetch
requests during validation.Usage:
These changes should improve the performance and reliability of document validation for projects with complex custom validation rules. Users experiencing timeouts during validation should try increasing the
--max-fetch-concurrency
value if issues persist with the new default.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.
📓 Full changelog
✨ Highlights
Improved document sync notification
Fixes an issue where the syncing document notification would sometimes remain on the screen indefinitely, even after the document was no longer visible. The toast is now dismissible, improving the user experience when working with synchronized documents.
Copy document URL to clipboard
A new feature has been added to the document pane, allowing users to easily copy the current document's URL to their clipboard. This makes sharing documents with colleagues and collaborators more convenient.
Ending the "Array Tree Editing" beta
Thank you to everyone who participated in the "Array Tree Editing" beta. Based on your feedback, we are ending this experiment as we continue to explore better ways to navigate nested structured.
🐛 Notable bugfixes
--no-auto-updates
flag in CLI: Fixed an issue where the CLI would not respect the--no-auto-updates
flag, ensuring that this configuration setting now behaves as expected.DateTimeInput
UI component, providing more control over its appearance, especially in modal contexts.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.
📓 Full changelog
--no-auto-updates flag
in CLI config (#7396)Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information: