Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Snyk] Upgrade @sanity/vision from 3.50.0 to 3.52.0 #104

Closed
wants to merge 1 commit into from

Conversation

mattobee
Copy link
Member

snyk-top-banner

Snyk has created this PR to upgrade @sanity/vision from 3.50.0 to 3.52.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 6 versions ahead of your current version.

  • The recommended version was released on 22 days ago.

Release notes
Package name: @sanity/vision
  • 3.52.0 - 2024-07-19

    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

    • Fixes a package bundle configuration issue in auto-updating Studios that caused Presentation to crash.
    • Adds aliases to internal Vite configuration used when running sanity build and sanity deploy to prevent missing React context issues.
    • Improves error messages when duplicate instances of Sanity are found in node_modules.

    📓 Full changelog

    Author Message Commit
    Cody Olsen fix(deps): update dependency @ sanity/ui to ^2.7.0 (#7168) b60195b
    Espen Hovlandsdal chore: clean up e2e studio tasks, headless env var (#7158) 9dbb9f6
    Ash fix(sanity): ensure Actions API client uses adequate API version (#7166) 25a983b
    renovate[bot] chore(deps): update dependency styled-components to ^6.1.12 (#7178) 8805315
    renovate[bot] chore(deps): update dependency turbo to ^2.0.7 (#7182) 9b79104
    renovate[bot] chore(deps): update pnpm to v8.15.9 (#7183) f73fb0f
    renovate[bot] fix(deps): Update dev-non-major (#7184) 706a86b
    renovate[bot] fix(deps): update dependency @ sanity/ui to ^2.8.2 (#7188) ef0d937
    renovate[bot] fix(deps): update dependency @ sanity/ui to ^2.8.2 (#7185) 6535562
    renovate[bot] fix(deps): update dependency @ sanity/ui to ^2.8.5 (#7192) 1515df1
    renovate[bot] fix(deps): update dependency @ sanity/ui to ^2.8.5 (#7191) 8a9730c
    Rico Kahler fix: unify externals in auto-updating builds (#7187) a6def04
    Cody Olsen refactor: replace useOnClickOutside with useClickOutsideEvent (#7189) d68bb94
    renovate[bot] fix(deps): update dependency @ sanity/ui to ^2.8.6 (#7196) 7771ee0
    renovate[bot] fix(deps): update dependency @ sanity/ui to ^2.8.7 (#7197) fe8efa0
    renovate[bot] fix(deps): update dependency @ sanity/icons to ^3.3.1 (#7204) bf9ca0b
    renovate[bot] fix(deps): Update dev-non-major (#7203) f0d5f82
    Cody Olsen fix: detect duplicate context errors (#7160) 7f3a881
    renovate[bot] fix(deps): update dependency @ sanity/ui to ^2.8.8 (#7210) 944d392
    renovate[bot] chore(lockfile): update dependency @ sanity/logos to v2.1.13 (#7211) 208a2d1
    renovate[bot] fix(deps): Update dev-non-major (#7212) a20e9b1
    Rico Kahler feat(core): add aliases to mitigate context issues (#7172) 776f16b
  • 3.51.0 - 2024-07-16

    ✨ Highlights

    Clickable links in comments

    clickable link

    URLs included in comments are now rendered as clickable links, which is infinitely more useful than unclickable links.

    Other features

    • Updates to configuration and blog template files when initializing a project inside a Next.js app: using an src folder in your directory if it exists, some changes to schemas and how they're imported.

    🐛 Notable bugfixes

    • Fixes a regression causing platform-aware hotkeys (for example, Ctrl + Option + D for duplicating a document) not to be displayed in tooltips.

    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
    Espen Hovlandsdal fix: force arborist ^7.5.4 49f278a
    ecospark[bot] chore(prettier): fix unformatted files 🤖 ✨ (#7146) 213f4b1
    ecospark[bot] chore(deps): dedupe pnpm-lock.yaml (#7145) 75a409a
    Espen Hovlandsdal fix(core): restore platform-aware keyboard shortcuts (#6819) 512965c
    renovate[bot] fix(deps): update dependency @ sanity/ui to ^2.6.8 (#7144) 3fca2ef
    renovate[bot] fix(deps): Update dev-non-major (#7149) 3ae92a5
    Herman Wikner feat(core): clickable links in comment message (#7093) 6fad0c5
    Simeon Griggs feat: update schema types formatting and init to include src (#7094) d42da14
    Cody Olsen chore: remove 3d demos from test studio (#7157) 97fed17
    Cody Olsen chore: setup workflow for E2E tests that @ sanity/ui can run on its PRs (#7156) 88bd6c4
    Rupert Dunk fix(sanity): open correct groups and fieldsets on setOpenPath (#7154) b278800
    renovate[bot] fix(deps): Update dev-non-major (#7164) 41a3039
  • 3.50.1-detect-context-errors.12 - 2024-07-15
  • 3.50.1-detect-context-errors.10 - 2024-07-15
  • 3.50.1-detect-context-errors.9 - 2024-07-15
  • 3.50.1-canary.9 - 2024-07-15
  • 3.50.0 - 2024-07-11

    ✨ Highlights

    New: Copy-and-paste fields and documents

    This version of Sanity Studio introduces a powerful new way to work with structured content within Sanity Studio: Copy-paste support for fields and documents. You can now use the familiar copy-and-paste hotkeys (cmd/ctrl+c and cmd/ctrl+v) and the field and document actions menus to copy content across different fields and document types seamlessly.

    • Copy between different document types: You can seamlessly copy fields from one document and paste them into a different document type while maintaining the content structure.
    • Copy deeply bested structures: Easily copy entire blocks of Portable Text and arrays with complex nested structures between documents.
    • Copy full documents: Effortlessly copy full documents and integrate them into existing documents of the same or similar types.
    CleanShot.2024-07-10.at.14.27.46.mp4
    CleanShot.2024-07-10.at.14.27.46.mp4

    Beta: Array Tree Editing

    Sanity offers powerful content models that let you define lists of object types and even nest these, if necessary. This enables developers to work with intuitive and convenient data structures in the API, but it has sometimes led to a cumbersome editorial experience with a lot of navigation between layers of modals.

    That's why we're thrilled to introduce an improved experience for editing arrays of objects. With the array tree editing, you can browse and edit array items in one place, making working with nested content much simpler and faster.

    Screenshot of new Array Tree Editor

    To enable the new array tree editor, add the following to your Sanity Studio configuration:

    // sanity.config.ts
    export default defineConfig({
      // ...
      beta: {
        treeArrayEditing: {
          enabled: true,
        },
      },
    });

    Note: While in beta, the array tree editor has limited support for references. References to other documents do not appear in the array tree editor and will open in a new modal. Additionally, Portable Text fields are not fully supported.

    Beta: Auto-updating Sanity Studio deployments

    We're shipping improvents and fixes to Sanity Studio on a weekly basis. To make it easier to get these improvements to Sanity Studio users without requiring developer involvement, we have shipped a way to build the studio for auto-updates.

    You can try this out with the new --auto-updates flag to the sanity build and sanity deploy CLI commands. This enables your Sanity Studio to automatically update to the latest minor and patch versions (3.x.x) of Sanity Studio without having to rebuild and redeploy new bundles.

    Learn more about the new auto-update flag in docs.

    image

    Improved support for large datasets exports

    To improve the export experience for users with large datasets, we have introduced a new cursor export mode in the Sanity CLI:

    sanity dataset export --mode cursor
    

    In this mode, the CLI will use cursors under the hood when exporting, which can significantly speed up the export process for larger datasets.

    Note: Unlike the traditional export mode, the cursor mode does not create a snapshot of the dataset. Instead, it pulls data as it exports, which may result in inconsistencies if documents in the dataset is modified during the export process.

    🐛 Notable bugfixes

    • Fixes an issue when trying to extract schemas/deploy GraphQL APIs when a sub-dependency tries to call document.execCommand at import time.
    • Fixes a warning being printed about using useClient() without specifying an API version.
    • Fixes an issue where having styled-components listed in devDependencies instead of dependencies would cause the CLI to try to install it as a dependency in a loop.

    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
    Binoy Patel fix(core): fixes url for checking studio version (#7060) a44fd5b
    Sindre Gulseth refactor(typegen): use typenode to lookup referencing type names (#7038) e622011
    renovate[bot] chore(deps): update dependency @ sanity/tsdoc to v1.0.75 (#7005) 48a7266
    Herman Wikner feat(core): focus root array item when closing tree editing dialog (#7049) 8e80b14
    renovate[bot] chore(deps): update dependency turbo to ^2.0.6 (#7067) d04d061
    renovate[bot] chore(deps): update dependency ts-node to ^10.9.2 (#7066) 630f558
    renovate[bot] chore(deps): update dependency lerna to ^8.1.5 (#7065) 0d2f0d9
    Sindre Gulseth feat(cli): Add support for exporting dataset with cursor (#7068) d019845
    Jordan Lawrence chore(config): comment to clarify logo deprecation (#7075) 6d1f496
    Jordan Lawrence docs(migrate): updating insert examples to showing always 3 args (#7070) 60ad7e7
    Espen Hovlandsdal fix(cli): mock document.execCommand when emulating browser env (#7062) e54ae8a
    Herman Wikner fix(core): handle array fields within nested objects in array items (#7069) 3c057a8
    renovate[bot] fix(deps): update dependency @ sanity/presentation to v1.16.2 (#7078) 7aa5732
    renovate[bot] chore(deps): update dependency @ sanity/insert-menu to v1.0.7 (#7064) c3079c1
    renovate[bot] chore(deps): update dependency lerna to ^8.1.6 (#7083) 5d94ce7
    renovate[bot] fix(deps): update dependency @ sanity/client to ^6.20.1 (#7088) baa20cb
    renovate[bot] fix(deps): Update dev-non-major (#7086) 554d579
    Ash feat(sanity): allow Actions API enablement based on Studio version semver constraint 47a160b
    Ash test(e2e): add helper to mock Actions API feature toggle response f31671b
    Ash test(e2e): re-enable tests for Actions API feature toggle and expand test cases daca8e9
    Cody Olsen chore(renovate): add preset that allows internal PRs to open right away (#7087) 43616e4
    ecospark[bot] chore(deps): dedupe pnpm-lock.yaml (#7096) e4a237b
    Cody Olsen chore(renovate): add fixtures to ignorePaths (#7081) e948e68
    renovate[bot] fix(deps): update dependency @ portabletext/editor to ^1.0.8 (#7101) 07771ed
    renovate[bot] fix(deps): update dependency @ sanity/icons to ^3.3.0 (#7098) 451e841
    renovate[bot] fix(deps): Update dev-non-major (#7100) b9d98bf
    renovate[bot] fix(deps): update dependency get-it to ^8.6.3 (#7108) 32024fe
    renovate[bot] fix(deps): update dependency @ sanity/client to ^6.20.2 (#7111) 8ec952e
    RitaDias refactor(sanity): remove "features" (#7097) a5e6212
    renovate[bot] fix(deps): update dependency @ sanity/client to ^6.20.2 (#7110) 2e1c86a
    renovate[bot] fix(deps): update dependency @ sanity/bifur-client to ^0.4.1 (#7102) 048b4fb
    renovate[bot] fix(deps): update dependency @ sanity/ui to ^2.6.3 (#7104) 8cba533
    renovate[bot] fix(deps): update dependency react-rx to ^3.1.1 (#7113) 0d4c8e6
    renovate[bot] chore(deps): update dependency @ sanity/tsdoc to v1.0.83 (#7080) 5b8de2d
    renovate[bot] chore(deps): update dependency esbuild to ^0.23.0 (

Snyk has created this PR to upgrade @sanity/vision from 3.50.0 to 3.52.0.

See this package in npm:
@sanity/vision

See this project in Snyk:
https://app.snyk.io/org/mattobee/project/608ac08e-10ac-4a55-8b70-fa1fe88aafef?utm_source=github&utm_medium=referral&page=upgrade-pr
Copy link

netlify bot commented Aug 10, 2024

Deploy Preview for eventua11y-sanity ready!

Name Link
🔨 Latest commit 407046a
🔍 Latest deploy log https://app.netlify.com/sites/eventua11y-sanity/deploys/66b71524c25ea40008d93351
😎 Deploy Preview https://deploy-preview-104--eventua11y-sanity.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@mattobee mattobee closed this Aug 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants