Update dependency sanity to ^3.57.0 #352
Merged
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 contains the following updates:
^3.56.0
->^3.57.0
Release Notes
sanity-io/sanity (sanity)
v3.57.0
Compare Source
✨ 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: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
Author | Message | Commit
------------ | ------------- | -------------
Rico Kahler | feat(cli): allow setting --max-fetch-concurrency to prevent stalled validators (#7450)|
85b0538
Jordan Lawrence | chore(core): improvements to diff component styles and presentation (#7385) |
35b6600
Jordan Lawrence | fix(structure): passing from operation context to label for success toast (#7437) |
f4e414c
Cody Olsen | fix: significantly speed up styled-components in dev mode (#7440) |
c259119
Jordan Lawrence | test: improved context mocking on TestProvider (#7433) |
58863af
Jordan Lawrence | chore(core): single addon dataset context (#7432) |
9da634e
Jordan Lawrence | chore: improved data testing by ui and test id (#7428) |
deca138
RitaDias | test(sanity): skip toolbar test (#7446) |
713c3f9
renovate[bot] | chore(lockfile): update dependency styled-components to v6.1.13 (#7443) |
7395a93
renovate[bot] | chore(deps): update dependency styled-components to ^6.1.13 (#7442) |
c5a4207
renovate[bot] | fix(deps): update dependency @portabletext/editor to ^1.0.19 (#7405) |
5ebff0d
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.