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.33.0 to 3.49.0 #10

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

Conversation

justmogen
Copy link
Owner

snyk-top-banner

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

  • The recommended version was released on 25 days ago.

Release notes
Package name: @sanity/vision
  • 3.49.0 - 2024-07-02

    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

    New TypeGen Features

    Better GROQ Function Coverage

    We have added the following improvements to type generation for GROQ query results:

    Improved Union Handling in TypeGen

    TypeGen now correctly expands all unions inside an object, addressing this reported issue on GitHub. Previously, only a part of a union might be returned. TypeGen now ensures that all object types in a union are expanded and included in the generated types.

    // Example query
    export const HomePageQuery = groq`*[_type == "page" && slug.current == "homepage"]{
      title,
      components[] {
        _type == "hero" => { title, "image": image.asset->url },
        _type == "cta" => { title, link }
      }
    }`;

    TyeGen will now generate the following type for the query above:

    export type HomePageQueryResult = Array<{
      title: string;
      components: Array<
        | { _type: 'hero'; title: string; image: string }
        | { _type: 'cta'; title: string; link: string }
      >;
    }>;

    New import path for the Portable Text Editor

    We’ve started work on a standalone Portable Text Editor package, and thus transitioned to using the @ portabletext/editor package instead of the now deprecated @ sanity/portable-text-editor package. This change includes several internal improvements and fixes. You can follow this work in this repository on GitHub — more documentation to come.

    Advanced users who have used the @ sanity/portable-text-editor dependecy should update to @ portabletext/editor to ensure continued support and improvements.

    🐛 Notable bugfixes

    • Fixes an issue where FormInput would not render fields inside a fieldset.
    • Various TypeGen bug fixes.

    📓 Full changelog

    Author Message Commit
    Cody Olsen chore(deps): upgrade turbo to v2 (#6985) 2fb8f9b
    Nina Andal Aarvik fix(core): change padding to fix tab box (#7000) 7ed682e
    Herman Wikner fix(core): handle fieldset members in FormInput (#7045) b932de6
    ecospark[bot] chore(deps): dedupe pnpm-lock.yaml (#7034) 8820979
    Herman Wikner fix(core): open PTE dialogs in tree editing dialog with openPath (#7046) d0b9ab0
    renovate[bot] fix(deps): update dependency groq-js to ^1.10.0 (#7053) 628cb76
    Rico Kahler refactor: use @ portabletext/editor instead of @ sanity/portable-text-editor (#7035) 9864985
    renovate[bot] fix(deps): update dependency get-it to ^8.6.2 (#7052) b73b68c
    renovate[bot] fix(deps): update dependency @ sanity/export to ^3.40.0 (#7056) c44c405
  • 3.48.1 - 2024-06-27

    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 regression that caused the Select button to not appear for single-asset sources.
    • Fixes a bug to allow the --no-dry-run and --no-confirm CLI options to be used together. Big thanks to @ pawelngei!

    📓 Full changelog

    Author Message Commit
    Binoy Patel fix(core): update url for notify endpoint (#7022) 6e2ad73
    Christian Grøngaard chore(page-building): clean up schema types (#6973) af414d5
    Rostislav Melkumyan Fix(CLI): Set integration value for createProject directly in the createProject function (#7021) 2d11505
    ecospark[bot] chore(deps): dedupe pnpm-lock.yaml (#7028) 8c66d24
    Jason Rose Fixes NO_CHANGES localization key (#7008) 666c420
    Carolina Gonzalez fix: check for telemetry consent before error reporting (#7019) 83e1111
    Rico Kahler fix(core): put back select button for single-asset source (#7030) 4af12eb
    Rico Kahler fix(cli): allow no-confirm no-dry-run migrations (#7031) b06d143
    Rico Kahler build: remove Version step from release workflow (#7032) 5006d7f
  • 3.48.0 - 2024-06-25

    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 an issue that caused trailing commas to appear when sanitizing schemas.
    • Adds periodic debug logging and improves error handling in the dataset export workflow.

    📓 Full changelog

    Author Message Commit
    ecospark[bot] chore(deps): dedupe pnpm-lock.yaml (#6994) 1d3b68d
    Fred Carlsen chore(ci): upgrade pnpm setup to use node20 (#6968) e39e7f6
    RitaDias test(e2e): rewrite e2e toolbar tests to component tests & update e2e expectations on others (#6967) 5aa2ee8
    renovate[bot] chore(deps): update dependency recast to ^0.23.9 (#7006) b29a444
    Rostislav Melkumyan fix: remove trailing commas when sanitizing (#7007) 6b9f910
    Christian Grøngaard feat(core): support insert menu options in array item context menus (#6921) 784cfd3
    RitaDias feat(core): array editing improvements (#6682) 6fbfcdc
    Herman Wikner fix(core): tree editing dialog open issue (#7013) fcb09f9
    Sindre Gulseth chore(deps): always bump @ sanity/export package (#7010) fd6f56c
    renovate[bot] fix(deps): update dependency @ sanity/export to ^3.38.2 (#7015) d09cc9b
    Rico Kahler chore: update release note template (#7017) 7e633bb
    Christian Grøngaard fix: deprecate @ sanity/portable-text-editor (#7020) f2ddfa7
    Rico Kahler feat: utilize timestamps in build and renderDocument for AUS (#6964) a1da8cc
    Rico Kahler feat: include hashes in vendor builds (#7018) 4bbe337
  • 3.47.1 - 2024-06-19

    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 potential crash in certain javascript environments when trying to access process.env
    • Errors occuring during a migration now provides more details

    📓 Full changelog

    Author Message Commit
    ecospark[bot] chore(deps): dedupe pnpm-lock.yaml (#6975) 355e1b9
    Binoy Patel fix(migrate): fixes error message to be more helpful (#6986) df89f88
    Espen Hovlandsdal fix(cli): correct noop return value on esbuild-register in dev (#6990) 51ecce0
    Espen Hovlandsdal fix(core): make version check not depend on process.env (#6991) 7c00b8f
  • 3.47.0 - 2024-06-18

    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
    

    ✨ Highlights

    Array insert menu

    This release includes a much requested upgrade of the array insert menu with various new options available. Including a new and more informative grid view, the ability to organize available schema types in groups, and filter them with a search term, and more. Check out the array article in the docs for examples.

    array insert menu

    Other features

    Adds a type export of all the discovered Sanity schema variants resulting from running sanity typegen in the CLI. This can be useful in mocks/testing environments and used by third party tools to get a list of potential types. This union type is accessible as AllSanitySchemaTypes in the generated type definitions.

    🐛 Notable bugfixes

    • Fixes an issue where a text preview image would be included into the Portable Text Editor (PTE) when pasting text from Word.
    • Fixes an issue where navigation options were not being passed as expected when calling a scoped router's navigate function.
    • Fixes an issue where the PTE wouldn't activate when you start dragging files into it.
    • Images in the Hotspot & Crop tool now render faster, and use far less memory.
    • Reduces layout shift when uploading images that replace existing image assets.
    • Fixes an issue that could cause a 409 error when restoring a document from history.
    • Fixes an issue where image and file types might be listed in their lowercase variant in array insert menus

    📓 Full changelog

    Author Message Commit
    ecospark[bot] chore(deps): dedupe pnpm-lock.yaml (#6916) 7f20f24
    renovate[bot] chore(deps): update dependency @ sanity/tsdoc to v1.0.72 (#6911) 7d312e4
    Cody Olsen feat(deps): upgrade react-rx to v3 (#6883) c0fe9f6
    renovate[bot] fix(deps): Update dev-non-major (#6915) f00ca7e
    Per-Kristian Nordnes fix(core): fix issue with pasting mixed content (files and text) for pt-input (#6924) fda9387
    Rupert Dunk fix(router): pass options on scoped router navigation (#6923) 2fabc2e
    Fred Carlsen chore: clean playwright-ct cache on each run (#6928) 286aaed
    Fred Carlsen fix(form): activate PTE input when dragging files (#6929) a2be16c
    Ash chore: update lockfile (#6932) d935a3a
    Cody Olsen fix: improve perf of by creating the canvas in a side effect (#6874) 5d8031b
    Cody Olsen fix: layout shift when uploading images (#6930) ae142d4
    renovate[bot] fix(deps): Update dev-non-major (#6941) 3300904
    renovate[bot] fix(deps): update dependency @ sanity/presentation to v1.16.0 (#6942) abe562b
    renovate[bot] fix(deps): update dependency @ sanity/ui to ^2.3.6 (#6943) c1869b9
    renovate[bot] chore(lockfile): update dependency @ sanity/import to v3.37.5 (#6940) 6cfe40e
    Cody Olsen fix: change useListFormat to no longer violate the rule of hooks (#6876) cae047f
    Bjørge Næss fix(sanity): only include create action when restoring a deleted document (#6937) 2736835
    Cody Olsen refactor: change memoization of margins to support the rule of hooks (#6875) fbf90ec
    Espen Hovlandsdal fix(schema): use base type for title if no subtype title or name is given (#6947) bbe7ac0
    Binoy Patel fix(cli): account for base path in the importmap (#6919) 8f28054
    renovate[bot] chore(lockfile): update dependency @ sanity/bifur-client to v0.4.1 (#6939) e161e0b
    Nina Andal Aarvik fix(vision): center loading spinner (#6900) 5943d4f
    Christian Grøngaard chore: allow clean:deps to remove test studio node_modules (#6951) 339128d
    Christian Grøngaard feat(core): new insert menu for arrays with filtering, type preview support (#6853) 203f135
    ecospark[bot] chore(deps): dedupe pnpm-lock.yaml (#6957) 4b89dd5
    renovate[bot] fix(deps): Update dev-non-major (#6958) d89acea
    renovate[bot] fix(deps): update dependency @ sanity/ui to ^2.4.0 (#6959) 5a38691
    Sindre Gulseth feat(typegen): add all schema types exported union 5d97a0e
    Sindre Gulseth Revert "feat(typegen): add all schema types exported union" e65adee
    RitaDias test(e2e): update e2e flaky tests (#6927) 6b20e5f
    Sindre Gulseth feat(typegen): add all schema types exported union (#6962) fa459a4
    Ash test(e2e): ensure custom publish action can patch document before publication 17d0bbf
    Ash fix(sanity): remove ifDraftRevisionId optimistic lock usage when publishing documents 3064705
    Christian Grøngaard fix(core): make array insert menu full width if grid view is configured (#6969) 47d204c
    Christian Grøngaard deps(core): update @ sanity/insert-menu (#6971) de01b7c
    Bjørge Næss fix(struct...

Snyk has created this PR to upgrade @sanity/vision from 3.33.0 to 3.49.0.

See this package in npm:
@sanity/vision

See this project in Snyk:
https://app.snyk.io/org/justmogen/project/b332fcc7-be50-4bc9-833f-f79a920fd6a5?utm_source=github&utm_medium=referral&page=upgrade-pr
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.

None yet

2 participants