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 from 3.36.3 to 3.41.1 #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vivek-a666
Copy link
Owner

This PR was automatically created by Snyk using the credentials of a real user.


![snyk-top-banner](https://github.com/andygongea/OWASP-Benchmark/assets/818805/c518c423-16fe-447e-b67f-ad5a49b5d123)

Snyk has created this PR to upgrade sanity from 3.36.3 to 3.41.1.

ℹ️ 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 58 versions ahead of your current version.

  • The recommended version was released on 23 days ago.

Release notes
Package name: sanity
  • 3.41.1 - 2024-05-08

    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
  • 3.41.1-create-unstable.17 - 2024-05-07
  • 3.41.1-create-unstable.16 - 2024-05-07
  • 3.41.0 - 2024-05-07

    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 Image and File blocks.

    🐛 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 error related to using swr in 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
  • 3.40.1-create-unstable.32 - 2024-05-03
  • 3.40.1-create-unstable.13 - 2024-05-02
  • 3.40.1-create-unstable.12 - 2024-05-01
  • 3.40.0 - 2024-04-30

    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.

    Presence cursors in the Portable Text Editor

    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_):

    - 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_):

    - 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 count in 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, and sanity folders by default
    • Various bug fixes for type generation
    • Fixes an issue where typegen command would fail on relative imports
    • Fixes a bug where we could not extract or validate schema when the sanity-plugin-mux-input plugin 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 (

Snyk has created this PR to upgrade sanity from 3.36.3 to 3.41.1.

See this package in npm:
sanity

See this project in Snyk:
https://app.snyk.io/org/vivek-a666/project/00489d63-d4ed-4d05-ac0c-30cca40bcae5?utm_source=github&utm_medium=referral&page=upgrade-pr
Copy link

vercel bot commented May 31, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
x-2-0-vdx4 ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 31, 2024 0:34am

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