dfweb-v3
dfweb-v3 copied to clipboard
Update sanity monorepo to ^3.42.1
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| @sanity/vision (source) | ^3.36.4 -> ^3.42.1 |
||||
| sanity (source) | ^3.36.4 -> ^3.42.1 |
Release Notes
sanity-io/sanity (@sanity/vision)
v3.42.1
v3.42.0
v3.41.2
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.
🐛 Notable bugfixes
- Resolves a
Maximum update depth exceededcrash in Presentation Tool.
📓 Full changelog
Author | Message | Commit
------------ | ------------- | -------------
renovate[bot] | fix(deps): update dependency @sanity/presentation to v1.15.2 (#6632) | 43823f6
v3.41.1
Installation and upgrading
To initiate a new Studio without installing the CLI globally:
npm create sanity@latest
To upgrade a v3 Studio, run this command in its folder:
npm install sanity@latest
🐛 Notable bugfixes
- Fixes a regression in Presentation Tool introduced in v3.41.0 that causes it to crash in embedded studios.
📓 Full changelog
Author | Message | Commit
------------ | ------------- | -------------
Binoy Patel | test(core): fixes flaky test with document publish (#6595) | 2a8375a
renovate[bot] | chore(deps): update linters (#6590) | 59b8ce8
renovate[bot] | chore(deps): update dependency styled-components to ^6.1.10 (#6585) | 5e727e0
renovate[bot] | chore(lockfile): update dependency zod to v3.23.7 (#6527) | 571dd56
renovate[bot] | chore(deps): update dependency @sanity/pkg-utils to v6.8.13 (#6599) | d9f9188
renovate[bot] | chore(deps): update dependency @sanity/tsdoc to v1.0.51 (#6600) | 56a8a79
renovate[bot] | chore(lockfile): update dependency @sanity/react-loader to v1.9.17 (#6584) | 0819c40
Cody Olsen | fix(presentation): regression causing a crash when in an embedded studio (#6606) | 99dfb60
v3.41.0
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
- The Portable Text Editor (PTE) now supports drag-n-dropping + pasting of images and files into
ImageandFileblocks.
🐛 Notable bugfixes
- Fixes a bug where importing a variable inside an imported file would fail in Typegen.
- Fixes issues in the PTE where tools would show as being active for a selection when only part of the selection used the tool. Now tools will show as active only when all highlighted selections use the tool.
- Fixes an
Attempted import errorrelated to usingswrin embedded studios. - Fixes an issue in which listeners would sometimes not close if they were unsubscribed from shortly after opening.
- Fixes an issue in which users were incorrectly seeing the scheduled publishing upsell UI.
- When child within the PTE is created without a
_key, we now automatically create one for it, avoiding unnecessary warning. - Fixes an issue in tasks in which the UI showed that they were created but the transaction didn't end.
📓 Full changelog
Author | Message | Commit
------------ | ------------- | -------------
Herman Wikner | feat(comments): add telemetry (#6541) | 2d35256
Sindre Gulseth | fix(typegen): pass resolved path instead of the imported path (#6540) | e7ffe93
Cody Olsen | fix: use vercelStegaClean util from @vercel/stega (#6544) | 790bc8f
Pedro Bonamin | fix(pte): preserve block key when pressing enter at start of block (#6521) | 7df5396
Ash | fix(sanity): do not order by _updatedAt when relevance ordering is used with Text Search API search strategy (#6537) | 0ede4cf
Pedro Bonamin | chore(test-studio): bump vercel stega version (#6545) | 96f3841
ecospark[bot] | chore(deps): dedupe pnpm-lock.yaml (#6547) | ad28225
renovate[bot] | fix(deps): update dependency @sanity/client to ^6.16.0 (#6548) | 35b19c2
Tommy Petty | chore(i18n): fix imports for useTranslation (#6517) | 869b698
jordanl17 | fix(pte): tools are active only when all blocks use the tool (#6524) | 169e5fd
renovate[bot] | chore(deps): update dependency @sanity/visual-editing to v1.8.17 (#6551) | 24f97ab
Binoy Patel | chore: package build (#6394) | 5a889fc
Rico Kahler | fix: remove unconditional external from vite build (#6554) | f1e9546
Cody Olsen | fix: inline swr, date-fns-tz and @vvo/tzdb to restore embedded studios (#6553) | 9a50252
renovate[bot] | chore(deps): update dependency @sanity/pkg-utils to v6.8.10 (#6549) | f8f1b47
renovate[bot] | chore(deps): update dependency @vercel/stega to v0.1.2 (#6546) | 6a2cdda
Bjørge Næss | fix(deps): replace hashlru with quicklru (#6557) | d634727
Espen Hovlandsdal | chore(deps): update dependency @sanity/client to v6.17.1 (#6561) | 7dd2d84
Cody Olsen | fix: remove cleanStegaUnicode helper (#6564) | 2e224d4
renovate[bot] | fix(deps): update dependency @sanity/client to ^6.17.2 (#6567) | 154d90b
shur | feat: add cliInitializedAt field to project metadata (#6538) | 15486f7
Pedro Bonamin | fix(schedule-publishing): update flag used to check scheduledPublishing (#6543) | 57fcbac
renovate[bot] | chore(deps): update dependency @sanity/tsdoc to v1.0.47 (#6550) | 25cbd4e
renovate[bot] | chore(deps): update dependency @sanity/pkg-utils to v6.8.11 (#6573) | b31a151
renovate[bot] | chore(deps): update dependency @sanity/visual-editing to v1.8.18 (#6574) | 77654c1
Herman Wikner | fix(core): collapsed range decorations (#6568) | 70ab283
Pedro Bonamin | chore(scheduled-publishing): update schedule tool upsell layout (#6572) | 295ea72
Pedro Bonamin | fix(tasks): update tasks panel z index (#6571) | 3b3125c
Pedro Bonamin | feat(pte): create new text blocks if needed (#6560) | cadd496
RitaDias | refactor(@sanity): remove warning for when child within PTE has no key (#6565) | e1fc2a0
Binoy Patel | test(core): add test that only one listener is open when navigating list (#6569) | 161b926
renovate[bot] | fix(deps): update dependency get-it to ^8.4.28 (#6576) | 47ef785
Pedro Bonamin | fix(tasks): close the form only after the task is created (#6450) | e089eb7
renovate[bot] | fix(deps): update dependency @sanity/ui to ^2.1.6 (#6575) | 48321e6
Fred Carlsen | feat(form/inputs): add support for image drop+paste in PTE input (#6534) | e964b1e
renovate[bot] | fix(deps): update dependency @sanity/presentation to v1.14.0 (#6577) | 0812390
renovate[bot] | chore(deps): update dependency vite to ^4.5.3 (#6583) | ed5aca8
Carolina Gonzalez | fix: use discard when doc is not published (#6535) | 9c86166
renovate[bot] | fix(deps): update dependency @sanity/presentation to v1.15.0 (#6591) | 1d88df6
renovate[bot] | chore(deps): update dependency esbuild to ^0.21.0 (#6589) | fada62f
Pedro Bonamin | fix(pte): insert empty text block after removing void block (#6552) | 379510f
Binoy Patel | test(core, desk): add tests for keyvalue storage (#6587) | ab94bea
v3.40.0
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:
- The Portable Text Editor will now remove the invisible Stega-encoded characters if you copy-paste from a preview using Visual Editing
- The cursor will not move out of viewpoint when deleting a character in PTE.
- Creating an annotation at the bottom of a PTE will no longer scroll you to the top.
- Fixes an issue where changing positions of items of an array within PTE would launch a cryptic error
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:
// ./sanity.config.ts|js
export default defineConfig({
// ... rest of config
document: {
unstable_comments: {
enabled: false,
},
},
});
New configuration (remove unstable_):
// ./sanity.config.ts|js
export default defineConfig({
// ... rest of config
document: {
- unstable_comments: {
+ comments: {
enabled: false,
},
},
});
Tasks configuration migration
Configuration during beta:
// ./sanity.config.ts|js
export default defineConfig({
// ... rest of config
unstable_tasks: { enabled: false },
})
New configuration (remove unstable_):
// ./sanity.config.ts|js
export default defineConfig({
// ... rest of config
- unstable_tasks: { enabled: false },
+ tasks: { enabled: false },
})
Sanity TypeGen improvements
Thanks for all the feedback about Sanity TypeGen so far! This release ships several improvements and bug fixes:
- Sanity Typegen now supports
countin GROQ projections - TypeGen code (
sanity.types.ts) is now formatted when a project has a Prettier configuration - The TypeGen search path now includes
src,app, andsanityfolders by default - Various bug fixes for type generation
- Fixes an issue where
typegencommand would fail on relative imports - Fixes a bug where we could not extract or validate schema when the
sanity-plugin-mux-inputplugin was installed.
Do continue to give us feedback in #typescript in the community!
🐛 Notable bugfixes
- Fixes ambiguous aria-labels on some Status buttons
- Fixes issue with inline text comments that would include an inline object.
- Fixes toast message for document duplicate action
📓 Full changelog
Author | Message | Commit
------------ | ------------- | -------------
ecospark[bot] | chore(deps): dedupe pnpm-lock.yaml (#6463) | a2faad2
renovate[bot] | chore(deps): update dependency @sanity/pkg-utils to v6.8.4 (#6460) | 34a1ae6
Sindre Gulseth | fix(cli): mock matchMedia window function (#6472) | ea715e8
Bjørge Næss | chore: add perf runner to workspace (#6427) | 9af065a
Sindre Gulseth | fix(typegen): fixes a bug where we imported the wrong relative path (#6457) | e1bd1f0
renovate[bot] | chore(deps): update dependency @sanity/tsdoc to v1.0.39 (#6464) | f6af636
Sindre Gulseth | feat(typegen): also search for queries in app and sanity folders (#6475) | 03cbb12
Sindre Gulseth | chore: upgrade groq-js (#6474) | 68bb282
ecospark[bot] | chore(deps): dedupe pnpm-lock.yaml (#6476) | 076b2fc
renovate[bot] | chore(deps): update dependency @sanity/visual-editing to v1.8.15 (#6465) | 2f7674c
renovate[bot] | chore(lockfile): update dependency @sanity/react-loader to v1.9.14 (#6466) | 9887e7c
renovate[bot] | chore(lockfile): update dependency date-fns-tz to v2.0.1 (#6467) | 14b4365
renovate[bot] | chore(lockfile): update dependency i18next to v23.11.2 (#6468) | 3fcfa42
renovate[bot] | chore(lockfile): update dependency zod to v3.23.4 (#6470) | bef170b
renovate[bot] | chore(lockfile): update dependency next to v14.2.2 (#6469) | cb957a6
renovate[bot] | chore(lockfile): update dependency react-focus-lock to v2.12.1 (#6471) | 05a019a
renovate[bot] | chore(deps): update dependency @sanity/pkg-utils to v6.8.6 (#6482) | c903cde
renovate[bot] | chore(deps): update react monorepo (#6484) | 3c8a329
renovate[bot] | chore(deps): update dependency @sanity/tsdoc to v1.0.40 (#6483) | 0163210
renovate[bot] | fix(deps): update dependency @sanity/presentation to v1.12.8 (#6485) | 05aad5c
renovate[bot] | chore(deps): update react monorepo to ^18.3.0 (#6490) | 144bb21
renovate[bot] | chore(lockfile): update dependency @types/react-is to v18.3.0 (#6491) | 2225589
Cody Olsen | chore: setup next test that embeds the test studio (#6487) | edefb66
Bjørge Næss | fix(test): remove hydrateroot warning test (#6494) | d50a0f1
ecospark[bot] | chore(deps): dedupe pnpm-lock.yaml (#6493) | c1f9071
Rostislav Melkumyan | feat: set print width to 40 (#6068) | 2e24fcd
renovate[bot] | chore(deps): update dependency @sanity/pkg-utils to v6.8.7 (#6496) | 2b840ba
renovate[bot] | chore(deps): update dependency turbo to ^1.13.3 (#6497) | fc80d2b
renovate[bot] | chore(lockfile): update dependency @sanity/logos to v2.1.11 (#6498) | 69b3c64
renovate[bot] | chore(lockfile): update dependency @sanity/react-loader to v1.9.15 (#6499) | c8b1d5e
renovate[bot] | chore(deps): update dependency @sanity/visual-editing to v1.8.16 (#6500) | 2dff2bd
renovate[bot] | fix(deps): update dependency @sanity/presentation to v1.12.10 (#6501) | 06ef31d
Herman Wikner | feat(core): implement presence cursors (#6081) | 1522806
renovate[bot] | fix(deps): Update react monorepo (#6502) | fa9d145
Espen Hovlandsdal | chore(lint): add certain unicorn eslint rules (#6352) | ba83971
Espen Hovlandsdal | test: increase timeout for cross-dataset reference test | afea9cf
Espen Hovlandsdal | chore: fix incorrect path used in workshop story | 61daf0c
ecospark[bot] | chore(deps): dedupe pnpm-lock.yaml (#6506) | 6486e34
RitaDias | fix(structure): uncaught error while swapping images in array in PTE (#6399) | c9bfc31
renovate[bot] | chore(deps): update dependency @types/react to v18.3.1 (#6507) | 311d722
Nina Andal Aarvik | fix(core): change scrollintoview block to be nearest (#6328) | 509757c
Nina Andal Aarvik | fix(core): set scroll boundary to nearest (#6310) | 0dae0da
RitaDias | fix(@sanity): issue where hidden unicode characters were bloating document in PTE (#6440) | ffa68ec
Per-Kristian Nordnes | chore: add codeowners to block-tools | 479e71f
ecospark[bot] | chore(deps): dedupe pnpm-lock.yaml (#6508) | ff26edd
renovate[bot] | chore(deps): update dependency @sanity/pkg-utils to v6.8.8 (#6509) | 4bb667d
cngonzalez | feat: use prefersLatestPublished parameter in DocumentPaneProvider (#6486) | 3da55ae
cngonzalez | fix: prevent looping requests to keyvalue in recent searches (#6480) | 232385e
Binoy Patel | feat(singletons): add a singleton package exports | 884fca1
Binoy Patel | feat(singletons): add eslint rule for boundaries | bfd9a30
Binoy Patel | refactor(core): move ConnectorContext to singletons | 3008a1c
Binoy Patel | refactor(core): move PreviewCardContext to singletons | 30cc592
Binoy Patel | refactor(core): move scrollContext to singletons | 5ca1b00
Binoy Patel | refactor(core): move ZIndexContext to singletons | d1a1d40
Binoy Patel | refactor(core): move DiffContext to singletons | ef08d0a
Binoy Patel | refactor(core): move DocumentChangeContext to singletons | 0509e58
Binoy Patel | refactor(core): move FormBuilderContext to singletons | 0f9cf43
Binoy Patel | refactor(core): move DocumentIdContext to singletons | 79343e4
Binoy Patel | refactor(core): move FormValueContext to singletons | 2b46b43
Binoy Patel | refactor(core): move GetFormValueContext to singletons | 3dc7e62
Binoy Patel | refactor(core): move HoveredFieldContext to singletons | dbedca6
Binoy Patel | refactor(core): move FieldActionsContext to singletons | c7374f7
Binoy Patel | refactor(core): move VirtualizerScrollInstanceContext to singletons | 372774e
Binoy Patel | refactor(core): move SortableItemIdContext to singletons | ffea136
Binoy Patel | refactor(core): move PortableTextMarkersContext to singletons | ed8f318
Binoy Patel | refactor(core): move PortableTextMemberItemsContext to singletons | 6325629
Binoy Patel | refactor(core): move ReferenceItemRefContext to singletons | a25a30b
Binoy Patel | refactor(core): move DocumentFieldActionsContext to singletons | 6f08a7d
Binoy Patel | refactor(core): move FormCallbacksContext to singletons | 2518910
Binoy Patel | refactor(core): move PresenceContext to singletons | 6a02f80
Binoy Patel | refactor(core): move ReferenceInputOptionsContext to singletons | 19311e4
Binoy Patel | refactor(core): move ValidationContext to singletons | cab8131
Binoy Patel | refactor(core): move ReviewChangesContext to singletons | 79e4bfa
Binoy Patel | refactor(core): move LocaleContext to singletons | d614474
Binoy Patel | refactor(core): move FormFieldPresenceContext to singletons | 16d87a1
Binoy Patel | refactor(core): move ResourceCacheContext to singletons | b64d789
Binoy Patel | refactor(core): move ColorSchemeValueContext to singletons | 23e50fb
Binoy Patel | refactor(core): move ColorSchemeSetValueContext to singletons | 5db6f24
Binoy Patel | refactor(core): move SourceContext to singletons | 896ed1e
Binoy Patel | refactor(core): move WorkspaceContext to singletons | 96e1bb7
Binoy Patel | refactor(core): move NavbarContext to singletons | 2601315
Binoy Patel | refactor(core): move ActiveWorkspaceMatcherContext to singletons | 2ac5f1b
Binoy Patel | refactor(core): move AddonDatasetContext to singletons | b1e2f60
Binoy Patel | refactor(core): move FreeTrialContext to singletons | fd7dca3
Binoy Patel | refactor(core): move CalendarContext to singletons | 0f0d13f
Binoy Patel | refactor(core): move SearchContext to singletons | b4a8f3b
Binoy Patel | refactor(core): move RouterHistoryContext to singletons | dbf67a8
Binoy Patel | refactor(singletons): revert exporting free trial types on sanity | 198df70
Binoy Patel | refactor(core): move WorkspacesContext to singletons | 7e3775d
Binoy Patel | refactor(core): move UserColorManagerContext to singletons | 548952e
Binoy Patel | fix(singletons): fix build issues and move CalendarContext interface back | b3de008
Binoy Patel | refactor(router): move RouterContext to singletons | 56dd5be
Binoy Patel | refactor(structure): move StructureToolContext to singletons | d385839
Binoy Patel | refactor(structure): move PaneContext to singletons | bef2ba2
Binoy Patel | refactor(structure): move DocumentPaneContext to singletons | 73cbcd1
Binoy Patel | fix(singletons): use relative path for StructureToolContextValue type | 30204c7
Binoy Patel | refactor(structure): move CommentInputContext to singletons | 6247093
Binoy Patel | refactor(structure): move CommentsAuthoringPathContext to singletons | 6555ffc
Binoy Patel | refactor(structure): move CommentsContext to singletons | 94950b7
Binoy Patel | refactor(structure): move CommentsEnabledContext to singeltons | 8780274
Binoy Patel | refactor(structure): move comments contexts to singletons | fd327ee
Binoy Patel | refactor(structure): move PaneLayoutContext to singletons | 569c0f9
Binoy Patel | refactor(structure): move PaneRouterContext to singletons | e765a47
Binoy Patel | fix(structure): expose PaneRouterContext from structure | ab835d9
Binoy Patel | refactor(tasks): move TasksEnabledContext to singletons | 453d260
Binoy Patel | refactor(tasks): move MentionUserContext to singletons | 924f5b0
Binoy Patel | refactor(tasks): move TasksNavigationContext to singletons | 2bb6668
Binoy Patel | refactor(tasks): move TasksContext to singletons | 9a8ed79
Binoy Patel | fix: build after pkg-utils@5 upgrade | c3b756b
Binoy Patel | refactor(tasks): move TasksUpsellContext to singletons | b422fab
Binoy Patel | chore(lint): only allow relative type imports in singeltons | 8e3dc30
Binoy Patel | chore(lint): update eslint to be specific about imports | 932f459
Binoy Patel | refactor(singletons): use relative type imports | a57e70c
Binoy Patel | refactor(singletons): move core context to core folder | f62078c
Binoy Patel | fix(core): export AddonDataSetContext from singletons | 970cf7d
Binoy Patel | chore(core): remove AddonDatasetContext exports | f29d0dd
Binoy Patel | fix(build): add missing legacy exports and types information | 2053b1f
Binoy Patel | fix: fix linting and type errors after rebase | c093246
Binoy Patel | refactor(singletons): move tasks to core | bfcdc44
Binoy Patel | fix(router): expose RouterContext from sanity/router | 7eeda3b
Binoy Patel | refactor(tasks): move isLastPane context to singletons | 968ae85
Binoy Patel | chore: add _singletons to tsconfig paths | 684bb8a
Binoy Patel | refactor(schedule-publishing): move DocumentActionPropsContext to singletons | dab96b5
Binoy Patel | refactor(scheduled-publishing): move ScheduledPublishingEnabledContext to singletons | 00fc838
Binoy Patel | refactor(scheduled-publishing): move SchedulePublishUpsellContext to singletons | 2164666
Binoy Patel | refactor(scheduled-publishing): move SchedulesContext to singletons | d946d30
Binoy Patel | fix: next studio build | 52bcbda
Binoy Patel | chore: add eslint rule for disabling createContext outside _singletons (#6349) | d79f363
Herman Wikner | fix(comments): inline comment creation issue in Safari (#6510) | 3b4a7e6
Herman Wikner | fix(core): skip reset presence selection on PTE blur (#6511) | f0c94f1
Pedro Bonamin | fix(scheduled-publishing): deprecated error toast shows multiple times (#6513) | 21d5b32
Sindre Gulseth | chore(typegen): track empty union type nodes generated (#6495) | 124be88
Espen Hovlandsdal | chore(deps): upgrade to react 18.3.1 (#6505) | 9e2cf15
ecospark[bot] | chore(deps): dedupe pnpm-lock.yaml (#6515) | cc106e4
jordanl17 | fix: statusButton requires provided aria-label (#6430) | 06c67fc
renovate[bot] | chore(deps): update dependency @sanity/tsdoc to v1.0.41 (#6518) | 7876a0a
renovate[bot] | chore(lockfile): update dependency @sanity/react-loader to v1.9.16 (#6519) | e618da3
RitaDias | chore(sanity): remove beta and unstable from comments and tasks (#6478) | f92ba3e
renovate[bot] | chore(deps): update pnpm to v8.15.8 (#6526) | 0982673
renovate[bot] | chore(deps): update dependency @sanity/pkg-utils to v6.8.9 (#6525) | bc85a3d
Nina Andal Aarvik | fix(structure): add string for duplicate event (#6523) | f51b157
renovate[bot] | chore(lockfile): update dependency @babel/preset-env to v7.24.5 (#6528) | dbb26b7
Per-Kristian Nordnes | fix(portable-text-editor): fix issue where decoration on inline object would cause freeze (#6531) | f03f6eb
renovate[bot] | chore(deps): update dependency @sanity/tsdoc to v1.0.42 (#6529) | c893c77
Per-Kristian Nordnes | fix(portable-text-editor): fix issue where decoration would not target correctly (#6532) | 251d592
v3.39.1
Installation and upgrading
To initiate a new Studio without installing the CLI globally:
npm create sanity@latest
To upgrade a v3 Studio, run this command in its folder:
npm install sanity@latest
🐛 Notable bugfixes
- Disables the new search API introduced in v3.38.0 due to a few discovered issues. We'll re-enable it in a future release.
- Fixes an issue when using the "movie database" template when running
npm create sanity
📓 Full changelog
Author | Message | Commit
------------ | ------------- | -------------
Espen Hovlandsdal | fix(cli): remove comments from moviedb template, hide location field (#6488) | 80f8daf
Espen Hovlandsdal | fix(search): revert to old search API for now (#6503) | 8a08212
v3.39.0
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
Scheduled Publishing is now part of the core Sanity Studio package
The Scheduled Publishing feature, which up until this release has been available as a plugin for Sanity Studio, has been moved into the core sanity package and enabled by default. Scheduled Publishing is available on all paid plans and trials.
If you wish to opt out of Scheduled Publishing, you can do so in your Studio configuration:
// sanity.config.ts
export default defineConfig({
// ....
scheduledPublishing: {
enabled: false,
}
)
Go to docs and feature announcement blog post to learn more.
Migrating from the Scheduled Publishing plugin to the new built-in configuration:
If you are already using Scheduled Publishing plugin, the first step is to get rid of it and update your studio to the latest release. If you already updated your studio you might have gotten an alert about this.
Run the following command in your project root to uninstall the plugin:
npm uninstall @​sanity/scheduled-publishing
Next, remove the plugin from your studio configuration. Typically you'll find this in ./sanity.config.ts|js. Find the scheduledPublishing plugin and do the following changes in your configuration file:
Before:
// sanity.config.ts
import {scheduledPublishing} from '@​sanity/scheduled-publishing'
export default defineConfig({
//....
plugins: [
scheduledPublishing({
// e.g. 12/25/2024 6:30 AM
inputDateTimeFormat: 'MM/dd/yyyy h:mm a',
})
]
})
After:
- import {scheduledPublishing} from '@​sanity/scheduled-publishing'
export default defineConfig({
// ...
plugins: [
- scheduledPublishing({
- inputDateTimeFormat: 'MM/dd/yyyy h:mm a',
- })
],
+ scheduledPublishing: {
+ enabled: true,
+ inputDateTimeFormat: 'MM/dd/yyyy h:mm a',
+ }
})
🐛 Notable bugfixes
- Fixes a bug that caused negations to be transformed to wildcard search prefixes if they appeared at the end of a search query.
- Improves error handling when attempting to run a migration against invalid project configurations.
- Fixes an issue where a document's validation panel would show a system error message when a field with a validation error was deleted.
- Fixes a bug that caused
_typeto be incorrectly parsed from statements in thefilterparameter of document lists. - Fixes an issue that sometimes caused the Studio to load indefinitely when visited from a task notification email.
Author | Message | Commit
------------ | ------------- | -------------
cngonzalez | fix: refactor checkoutPair to allow mutations for liveEdit documents (#6393) | f6ae402
Ash | fix(core): prevent transformation of negation tokens into wildcard prefix tokens (#6396) | f28ef7e
Bjørge Næss | fix(migrate): forward possible API error response to error thrown for non 2xx (#6387) | 9316475
Rico Kahler | refactor(tasks, comments): core plugins (#6333) | 3c917d2
renovate[bot] | chore(deps): update dependency @sanity/tsdoc to v1.0.34 (#6402) | 5fc2775
renovate[bot] | chore(lockfile): update dependency @sanity/react-loader to v1.9.12 (#6405) | d3e924e
renovate[bot] | chore(lockfile): update dependency @sanity/preview-url-secret to v1.6.9 (#6404) | 4c6f1e2
renovate[bot] | chore(deps): update dependency @sanity/visual-editing to v1.8.12 (#6403) | 6802d29
renovate[bot] | fix(deps): update dependency @sanity/client to ^6.15.17 (#6406) | 82e505f
renovate[bot] | fix(deps): update dependency @sanity/presentation to v1.12.5 (#6407) | 98bb233
renovate[bot] | fix(deps): update dependency @sanity/ui to ^2.1.4 (#6408) | 59cad0b
renovate[bot] | fix(deps): update dependency get-it to ^8.4.26 (#6409) | 159f542
renovate[bot] | chore(deps): update dependency @sanity/pkg-utils to v6.7.1 (#6410) | e5252e1
Pedro Bonamin | fix(codeowners): update codeowners for tasks and comments (#6414) | d286050
Rico Kahler | test: add sanity-plugin-hotspot-array (#6401) | d591b18
Binoy Patel | fix: TS import paths importing index.ts twice incorrectly (#6415) | 6066e92
Pedro Bonamin | fix(tasks): update tasks upsell provider client version (#6413) | 61a887c
renovate[bot] | chore(deps): update dependency @sanity/pkg-utils to v6.8.0 (#6421) | 72e34f8
renovate[bot] | chore(lockfile): update dependency zod to v3.22.5 (#6420) | 5c7352c
Cody Olsen | refactor: use @sanity/prettier-config (#6423) | e75e390
renovate[bot] | chore(deps): update dependency recast to ^0.23.6 (#6422) | 2b30eb6
Bjørge Næss | chore: turn server actions on by default in test-studio (#6425) | dd61ead
RitaDias | fix(@sanity): issue where hidden unicode characters were bloating document in PTE (#6424) | ce46077
Per-Kristian Nordnes | Revert "fix(@sanity): issue where hidden unicode characters were bloating document in PTE (#6424)" | cac48bb
Per-Kristian Nordnes | fix(portable-text-editor): support collapsed range decorations (#6428) | 2d02d62
renovate[bot] | fix(deps): update dependency get-it to ^8.4.27 (#6434) | 5fb7ddf
renovate[bot] | chore(deps): update dependency @sanity/visual-editing to v1.8.13 (#6432) | f4e482d
renovate[bot] | fix(deps): update dependency @sanity/client to ^6.15.19 (#6433) | 4e32715
renovate[bot] | chore(deps): update dependency @sanity/pkg-utils to v6.8.1 (#6431) | 26b8c76
renovate[bot] | chore(lockfile): update dependency @sanity/react-loader to v1.9.13 (#6436) | 846cf68
renovate[bot] | chore(lockfile): update dependency @sanity/preview-url-secret to v1.6.10 (#6435) | 7b20162
renovate[bot] | fix(deps): update dependency @sanity/presentation to v1.12.6 (#6437) | 3eb44db
renovate[bot] | chore(deps): update dependency @sanity/visual-editing to v1.8.14 ([#6438](https://togithub.com/sanity-io/sanity/issues/
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 these updates again.
- [ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
⚠ Artifact update problem
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
- any of the package files in this branch needs updating, or
- the branch becomes conflicted, or
- you click the rebase/retry checkbox if found above, or
- you rename this PR's title to start with "rebase!" to trigger it manually
The artifact failure details are included below:
File name: studio/package-lock.json
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/styled-components
npm error styled-components@"^5.3.11" from the root project
npm error
npm error Could not resolve dependency:
npm error peer styled-components@"^6.1" from @sanity/[email protected]
npm error node_modules/@sanity/vision
npm error @sanity/vision@"^3.41.1" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /tmp/renovate/cache/others/npm/_logs/2024-05-08T21_52_24_491Z-eresolve-report.txt
npm error A complete log of this run can be found in: /tmp/renovate/cache/others/npm/_logs/2024-05-08T21_52_24_491Z-debug-0.log
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Updated (UTC) |
|---|---|---|---|
| dfweb-v3 | ✅ Ready (Inspect) | Visit Preview | Jun 8, 2024 9:32pm |
| Category | Score |
|---|---|
| 🟠 Performance | 79 |
| 🟢 Accessibility | 100 |
| 🟢 Best practices | 96 |
| 🟢 SEO | 100 |
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 98.26%. Comparing base (
d900d66) to head (8bebcfe).
:exclamation: Current head 8bebcfe differs from pull request most recent head 1a74413
Please upload reports for the commit 1a74413 to get more accurate results.
Additional details and impacted files
@@ Coverage Diff @@
## master #1741 +/- ##
=======================================
Coverage 98.26% 98.26%
=======================================
Files 23 23
Lines 173 173
Branches 31 30 -1
=======================================
Hits 170 170
Misses 3 3
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Deployment failed with the following error:
Resource is limited - try again in 3 hours (more than 100, code: "api-deployments-free-per-day").
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 98.18%. Comparing base (
5252d4a) to head (15add22).
Additional details and impacted files
@@ Coverage Diff @@
## master #1741 +/- ##
=======================================
Coverage 98.18% 98.18%
=======================================
Files 22 22
Lines 165 165
Branches 31 31
=======================================
Hits 162 162
Misses 3 3
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code