Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Dec 2, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@sanity/icons (source) ^3.4.0 -> ^3.5.0 age adoption passing confidence
@sanity/types (source) ^3.64.3 -> ^3.66.0 age adoption passing confidence
@sanity/ui (source) ^2.8.25 -> ^2.9.1 age adoption passing confidence
@types/react (source) ^18.3.12 -> ^18.3.14 age adoption passing confidence
prettier (source) ^3.3.3 -> ^3.4.2 age adoption passing confidence
sanity (source) ^3.64.3 -> ^3.66.0 age adoption passing confidence

Release Notes

sanity-io/icons (@​sanity/icons)

v3.5.0

Compare Source

Features
Bug Fixes
sanity-io/sanity (@​sanity/types)

v3.66.0

Compare Source

✨ Highlights

React Compiler for auto-updating studios

Studios that have opted in to the auto-updating feature will now use code optimized by the React Compiler. In many cases, this results in a faster user interface.

Other features

Configurable slug field weight

It's now possible to configure search weights for slug fields using the options.search.weight field option:

defineField({
  name: 'slug',
  type: 'slug',
+ options: {
+   search: {
+     weight: 50,
+   },
+ },
}),

The slug field's weight will now be respected when using global search with "Best match" sorting selected, and when using reference search. Learn more about search weights in the Studio Search Configuration documentation.

Crop/hotspot vector format warning

When using vector formats (like SVG), any crop/hotspot defined for the image will only be applied if the image is delivered in a raster format. To make this clear, a warning is now displayed when setting a crop/hotspot on vector images.

Document links in Vision

When using the @sanity/vision plugin, if query results contain either _id or _ref attributes, a link icon is displayed next to the value making it easier to find and edit the document.

Note: This is currently only displayed if the queried dataset matches the dataset of the active workspace.

Sanity v2 CLI commands removed

v2 has been end-of-life since April 2024 and the CLI commands for v2 will no longer display a removed error.

You can still use @sanity/cli@^2 should you need to run CLI commands against the an old studio project. See the guide for more details on migrating from v2 to v3.

🐛 Notable bugfixes

  • Annotations in the Portable Text Editor will now autofocus on the first input when being created.
  • Fixed a regression in v3.65.0 that caused the document editor panel header to look slightly misaligned with presentation tool's URL bar, and the Tasks panel header.
  • Fixes an issue where editing an annotation in the Portable Text Editor could result in multiple editing dialogs being opened.

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
------------ | ------------- | -------------
Snorre Eskeland Brekke | feat: Start in Create button is now enabled by default (#​7884) | 723f7fe
Snorre Eskeland Brekke | Revert "feat: Start in Create button is now enabled by default (#​7884)" | e515f9e
renovate[bot] | fix(deps): update dependency @​portabletext/editor to ^1.12.0 (#​7883) | 1dc2a68
renovate[bot] | chore(deps): update typescript-tooling (#​7882) | aebe3ce
Ash | refactor(sanity): clarify variable name | fcff773
Ash | chore(sanity): remove duplicate test | ee3f331
Ash | feat: support search weight configuration for slug fields | 022c910
renovate[bot] | fix(deps): Update dev-non-major (#​7893) | 3f7892e
renovate[bot] | chore(lockfile): update dependency @​sanity/react-loader to v1.10.22 (#​7896) | b13265d
renovate[bot] | chore(deps): update dependency @​sanity/code-input to v5 (#​7901) | a323ddd
renovate[bot] | fix(deps): update dependency @​sanity/presentation to v1.19.2 (#​7899) | e432e37
renovate[bot] | fix(deps): Update dev-non-major (#​7902) | 56ed6cb
renovate[bot] | fix(deps): update dependency @​sanity/icons to ^3.5.0 (#​7900) | 1ed427e
Pedro Bonamin | fix(core): portable text annotations slow to show (#​7588) | ef50844
renovate[bot] | fix(deps): update dependency groq-js to ^1.14.1 (#​7910) | 037a2f4
renovate[bot] | fix(deps): update dependency @​portabletext/editor to ^1.12.2 (#​7909) | b2f1ff2
renovate[bot] | fix(deps): update dependency @​sanity/ui to ^2.8.26 (#​7906) | 5b58ced
renovate[bot] | fix(deps): update dependency @​sanity/presentation to v1.19.3 (#​7914) | e609391
renovate[bot] | fix(deps): update dependency @​sanity/insert-menu to v1.0.15 (#​7913) | d91efd9
Cody Olsen | fix: vertically center pane header when no tabs (#​7912) | 481febd
Marius Lundgård | fix(sanity): support future UI tones (#​7916) | f5e85ae
renovate[bot] | fix(deps): Update dev-non-major (#​7905) | b4c157c
renovate[bot] | fix(deps): update dependency @​sanity/ui to ^2.9.0 (#​7918) | d3a4a1f
renovate[bot] | fix(deps): update dependency @​sanity/ui to ^2.9.0 (#​7919) | b28b160
Rostislav Melkumyan | feat(cli): add test-template for testing --template flag (#​7877) | 52ab8b2
renovate[bot] | fix(deps): update dependency @​sanity/client to ^6.23.0 (#​7931) | 90f884d
renovate[bot] | chore(deps): update typescript-tooling (#​7928) | 755cd44
renovate[bot] | fix(deps): update dependency @​sanity/presentation to v1.19.4 (#​7930) | ee5f3b6
renovate[bot] | fix(deps): Update dev-non-major (#​7920) | 5b25212
Cody Olsen | fix: support react compiler for auto updating studios (#​7897) | e40d5b6
Rostislav Melkumyan | feat(cli): remove v2 init messaging (#​7887) | 2333027
RitaDias | test(e2e): add unpublish e2e test (#​7927) | 079824e
Rostislav Melkumyan | feat(cli): add support for remote templates with --template (#​7867) | 1f59825
ecospark[bot] | chore(deps): dedupe pnpm-lock.yaml (#​7933) | 4fff528
renovate[bot] | fix(deps): update dependency @​sanity/icons to ^3.5.0 (#​7929) | 8ee3384
renovate[bot] | fix(deps): update dependency @​portabletext/editor to ^1.12.3 (#​7921) | 1e6a839
renovate[bot] | fix(deps): update dependency @​sanity/client to ^6.24.0 (#​7935) | 5bce66e
Yang Yu | fix(deps): bump sentry/react to 8.33 (#​7932) | e855a41
Bjørge Næss | fix(vision): add a warning about unsupported perspective when pasting (#​7937) | bd2b3cf
renovate[bot] | fix(deps): update dependency @​sanity/client to ^6.24.1 (#​7938) | 4bc55d6
Rostislav Melkumyan | feat: add CI specific token label (#​7934) | 4b64fbb
renovate[bot] | fix(deps): update dependency @​portabletext/editor to ^1.13.0 (#​7939) | ad43939
Bjørge Næss | chore(vision): revert accidental file rename (#​7945) | b4df341
renovate[bot] | fix(deps): update dependency @​sanity/insert-menu to v1.0.16 (#​7942) | 2aac70c
renovate[bot] | fix(deps): Update dev-non-major (#​7946) | 59ebd9b
Bjørge Næss | fix: add svg hotspot+crop warning to image tool dialog (#​7917) | 3bd79af
RitaDias | test(e2e): restore last e2e tests (#​7926) | b74b50e
Pedro Bonamin | fix(core): disable scheduledPublishing and tasks if /features returns error (#​7517) | a20fb8f
Sindre Gulseth | feat(vision): link to edit documents on _id, _ref attributes (#​6124) | 2379f2b
renovate[bot] | fix(deps): update dependency @​sanity/ui to ^2.9.1 (#​7948) | 561e7fc
renovate[bot] | fix(deps): update dependency @​sanity/mutate to ^0.11.1 (#​7903) | 08d3686
Rostislav Melkumyan | feat(cli): generate read token conditionally for remote template (#​7953) | ff90128
Bjørge Næss | fix(cli): remove v2 commands (#​5750) | d98873c
Christian Grøngaard | fix(core): only open one annotation object edit modal at a time (#​7898) | fbecbc8
renovate[bot] | fix(deps): update dependency @​sanity/presentation to v1.19.5 (#​7957) | 7c5a231
Bjørge Næss | fix(core): add telemetry debug/noop logger (#​7958) | 4767ac7
renovate[bot] | fix(deps): Update dev-non-major (#​7959) | c06deef
Espen Hovlandsdal | fix: reword warning about vector images not support crop/hotspot (#​7960) | eecd0c5

v3.65.1

Compare Source

🐛 Notable bugfixes

  • Fixes a regression introduced in v3.65.0 where array list references rendered too lazily requering focus or clicking to render, when initially "below the fold" of the browser window.
  • Fixes an issue where setting options.sanityCreate.exclude: true on a document type wasn't correctly hiding "Start in Sanity Create" button for new documents of that type.
  • Fixes issue where when in presentation it was impossible to open the review section in the History Panel

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
------------ | ------------- | -------------
Cody Olsen | fix: opt-out @tanstack/react-virtual from React Compiler (#​7891) | db5495b
Snorre Eskeland Brekke | fix: Start in Create type exclusion now recursively checks for sanityCreate.exclude options (#​7890) | af03b86
renovate[bot] | fix(deps): update dependency @​sanity/presentation to v1.19.1 (#​7894) | 0bbc018
renovate[bot] | fix(deps): update dependency @​sanity/insert-menu to v1.0.14 (#​7895) | c5ed867

v3.65.0

Compare Source

✨ Highlights

React Compiler Beta

The sanity and @sanity/vision packages are now precompiled with the React Compiler.
So far, 1,231 out of 1,411 components have been compiled, resulting in a 20%-30% overall reduction in render time and latency. We anticipate even greater improvements as we refactor the remaining 180 components to support auto-memoization.

For several weeks, we’ve already been shipping key packages—including our design system (@​sanity/ui), the PortableText editor (@​portabletext/editor), and react-rx (responsible for state management across Sanity Studio)—precompiled with the React Compiler.

We continue to see impressive results in our profiling and analysis, and with the release of React Compiler in beta we are excited to add support for auto-memoizing your own studio code:

pnpm add react-compiler-runtime@beta && pnpm add --save-dev babel-plugin-react-compiler@beta eslint-plugin-react-compiler@beta
yarn add react-compiler-runtime@beta && yarn add --save-dev babel-plugin-react-compiler@beta eslint-plugin-react-compiler@beta
npm install --save-exact react-compiler-runtime@beta && npm install --save-exact --save-dev babel-plugin-react-compiler@beta eslint-plugin-react-compiler@beta

And in your sanity.cli.ts add:

import {defineCliConfig} from 'sanity/cli'

export default defineCliConfig({
   api: {
      projectId: 'abc123',
      dataset: 'production',
   },
   reactStrictMode: true,
+  reactCompiler: {target: '18'},
})

If you decide to give the React Compiler a try make sure you share your feedback and experience using it with the Working Group!

Sanity plugin authors, provided they're using @sanity/pkg-utils, can also ship pre-compiled plugins by running:

pnpm add react-compiler-runtime@beta && pnpm add --save-dev @​sanity/pkg-utils@latest babel-plugin-react-compiler@beta eslint-plugin-react-compiler@beta
yarn add react-compiler-runtime@beta && yarn add --save-dev @​sanity/pkg-utils@latest babel-plugin-react-compiler@beta eslint-plugin-react-compiler@beta
npm install --save-exact react-compiler-runtime@beta && npm install --save-exact --save-dev @​sanity/pkg-utils@latest babel-plugin-react-compiler@beta eslint-plugin-react-compiler@beta

and changing the package.config.ts to:

import {defineConfig} from '@​sanity/pkg-utils'

export default defineConfig({
   // ...
+  babel: {reactCompiler: true},
+  reactCompilerOptions: {target: '18'},
})

History UI updates

The history inspector UI has been updated to display edits collapsed into the Published event they belong to. From and To revision selectors are added to the top of the inspector.

history

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
------------ | ------------- | -------------
Cody Olsen | feat: add support for React Compiler beta (#​7702) | 8aace40
renovate[bot] | chore(lockfile): update dependency react-focus-lock to v2.13.2 (#​7848) | e8c7e68
renovate[bot] | chore(lockfile): update dependency @​sanity/asset-utils to v2.2.0 (#​7847) | b7b0a84
renovate[bot] | chore(deps): update dependency turbo to ^2.3.0 (#​7846) | c52a456
Espen Hovlandsdal | chore(cli): temporarily disable telemetry tests (#​7845) | 9b5f565
Pedro Bonamin | feat(structure): History UI updates (#​7462) | 16532a8
Pedro Bonamin | fix(core): discard announcements dialog onClickOutside (#​7863) | 7888272
ecospark[bot] | fix(deps): update React Compiler dependencies 🤖 ✨ (#​7872) | 6fbae0b
Cody Olsen | chore(ci): max react compiler warnings are now 79 | 363235e
ecospark[bot] | chore(deps): dedupe pnpm-lock.yaml (#​7873) | 1ebdc17
renovate[bot] | fix(deps): update dependency react-rx to ^4.1.7 (#​7874) | 456187c
renovate[bot] | fix(deps): update dependency @​portabletext/editor to ^1.11.3 (#​7865) | a43bf85
Bjørge Næss | fix(telemetry): log (well known) workspace and dataset names (#​7859) | b97d4aa
renovate[bot] | fix(deps): update dependency @​sanity/ui to ^2.8.25 (#​7876) | ecce434
renovate[bot] | fix(deps): Update dev-non-major (#​7875) | 4baafb1
renovate[bot] | fix(deps): update dependency @​sanity/presentation to v1.18.5 (#​7881) | 00cc366
renovate[bot] | fix(deps): update dependency @​sanity/insert-menu to v1.0.13 (#​7880) | 71a5524

sanity-io/ui (@​sanity/ui)

v2.9.1

Compare Source

Bug Fixes
  • card: guard when picking new nested theme properties (963f09d)

v2.9.0

Compare Source

Features
  • support neutral and suggest tones (18c08b8)
  • theme: add new tones (fabe61c)
Bug Fixes
  • figma: support new color tones (31d8c48)
  • theme: adjust color tokens (d8b3181)
  • theme: generate tones based on constants (7252249)
  • theme: propagate hue based on tone setting (c11dc3d)
  • theme: use legacy types correctly (79510fe)
  • toast: use neutral tone for info status (cb56633)

v2.8.26

Compare Source

Bug Fixes
  • popover: render the child when a reference element is provided (2c1bf33)
prettier/prettier (prettier)

v3.4.2

Compare Source

diff

Treat U+30A0 & U+30FB in Katakana Block as CJK (#​16796 by @​tats-u)

Prettier doesn't treat U+30A0 & U+30FB as Japanese. U+30FB is commonly used in Japanese to represent the delimitation of first and last names of non-Japanese people or “and”. The following “C言語・C++・Go・Rust” means “C language & C++ & Go & Rust” in Japanese.

<!-- Input (--prose-wrap=never) -->

C言
語
・
C++
・
Go
・
Rust

<!-- Prettier 3.4.1 -->
C言語・ C++ ・ Go ・ Rust

<!-- Prettier 3.4.2 -->
C言語・C++・Go・Rust

U+30A0 can be used as the replacement of the - in non-Japanese names (e.g. “Saint-Saëns” (Charles Camille Saint-Saëns) can be represented as “サン゠サーンス” in Japanese), but substituted by ASCII hyphen (U+002D) or U+FF1D (full width hyphen) in many cases (e.g. “サン=サーンス” or “サン=サーンス”).

Fix comments print on class methods with decorators (#​16891 by @​fisker)
// Input
class A {
  @&#8203;decorator
  /** 
   * The method description
   *
  */
  async method(foo: Foo, bar: Bar) {
    console.log(foo);
  }
}

// Prettier 3.4.1
class A {
  @&#8203;decorator
  async /**
   * The method description
   *
   */
  method(foo: Foo, bar: Bar) {
    console.log(foo);
  }
}

// Prettier 3.4.2
class A {
  @&#8203;decorator
  /**
   * The method description
   *
   */
  async method(foo: Foo, bar: Bar) {
    console.log(foo);
  }
}
Fix non-idempotent formatting (#​16899 by @​seiyab)

This bug fix is not language-specific. You may see similar change in any languages. This fixes regression in 3.4.0 so change caused by it should yield same formatting as 3.3.3.

// Input
<div>
  foo
  <span>longlonglonglonglonglonglonglonglonglonglonglonglonglonglongl foo</span>
  , abc
</div>;

// Prettier 3.4.1 (first)
<div>
  foo
  <span>
    longlonglonglonglonglonglonglonglonglonglonglonglonglonglongl foo
  </span>, abc
</div>;

// Prettier 3.4.1 (second)
<div>
  foo
  <span>longlonglonglonglonglonglonglonglonglonglonglonglonglonglongl foo</span>
  , abc
</div>;

// Prettier 3.4.2
<div>
  foo
  <span>longlonglonglonglonglonglonglonglonglonglonglonglonglonglongl foo</span>
  , abc
</div>;

v3.4.1

Compare Source

diff

Remove unnecessary parentheses around assignment in v-on (#​16887 by @​fisker)
<!-- Input -->
<template>
  <button @&#8203;click="foo += 2">Click</button>
</template>

<!-- Prettier 3.4.0 -->
<template>
  <button @&#8203;click="(foo += 2)">Click</button>
</template>

<!-- Prettier 3.4.1 -->
<template>
  <button @&#8203;click="foo += 2">Click</button>
</template>

v3.4.0

Compare Source

diff

🔗 Release Notes


Configuration

📅 Schedule: Branch creation - "before 4am on monday" in timezone America/Los_Angeles, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the dependencies Pull requests that update a dependency file label Dec 2, 2024
@renovate renovate bot force-pushed the renovate/packages-dependencies branch from ac042c4 to 29e1c2d Compare December 5, 2024 19:38
@renovate renovate bot force-pushed the renovate/packages-dependencies branch from 8ccea86 to dab9bba Compare December 5, 2024 19:48
@renovate
Copy link
Contributor Author

renovate bot commented Dec 5, 2024

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@thomasKn thomasKn merged commit 560fae9 into main Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants