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

chore(deps): update apps dependencies #112

Merged
merged 1 commit into from
May 30, 2024
Merged

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Nov 6, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@astro-community/astro-embed-youtube (source) ^0.4.1 -> ^0.5.2 age adoption passing confidence
@astrojs/prism (source) ^3.0.0 -> ^3.1.0 age adoption passing confidence
@astrojs/react (source) ^3.0.4 -> ^3.4.0 age adoption passing confidence
@astrojs/vercel (source) ^7.3.4 -> ^7.6.0 age adoption passing confidence
@sanity/client (source) ^6.18.3 -> ^6.19.1 age adoption passing confidence
@sanity/vision (source) ^3.19.0 -> ^3.44.0 age adoption passing confidence
astro (source) ^4.0.9 -> ^4.9.2 age adoption passing confidence
astro-portabletext (source) ^0.9.6 -> ^0.10.0 age adoption passing confidence
react (source) ^18.2.0 -> ^18.3.1 age adoption passing confidence
react-dom (source) ^18.2.0 -> ^18.3.1 age adoption passing confidence
sanity (source) ^3.43.0 -> ^3.44.0 age adoption passing confidence
styled-components (source) ^6.1.0 -> ^6.1.11 age adoption passing confidence

Release Notes

delucis/astro-embed (@​astro-community/astro-embed-youtube)

v0.5.2

Compare Source

Patch Changes

v0.5.1

Compare Source

Patch Changes

v0.5.0

Compare Source

Minor Changes
Patch Changes
withastro/astro (@​astrojs/react)

v3.4.0

Compare Source

Minor Changes
  • #​11071 8ca7c73 Thanks @​bholmesdev! - Adds two new functions experimental_getActionState() and experimental_withState() to support the React 19 useActionState() hook when using Astro Actions. This introduces progressive enhancement when calling an Action with the withState() utility.

    This example calls a like action that accepts a postId and returns the number of likes. Pass this action to the experimental_withState() function to apply progressive enhancement info, and apply to useActionState() to track the result:

    import { actions } from 'astro:actions';
    import { experimental_withState } from '@​astrojs/react/actions';
    
    export function Like({ postId }: { postId: string }) {
      const [state, action, pending] = useActionState(
        experimental_withState(actions.like),
        0 // initial likes
      );
    
      return (
        <form action={action}>
          <input type="hidden" name="postId" value={postId} />
          <button disabled={pending}>{state} ❤️</button>
        </form>
      );
    }

    You can also access the state stored by useActionState() from your action handler. Call experimental_getActionState() with the API context, and optionally apply a type to the result:

    import { defineAction, z } from 'astro:actions';
    import { experimental_getActionState } from '@&#8203;astrojs/react/actions';
    
    export const server = {
      like: defineAction({
        input: z.object({
          postId: z.string(),
        }),
        handler: async ({ postId }, ctx) => {
          const currentLikes = experimental_getActionState<number>(ctx);
          // write to database
          return currentLikes + 1;
        },
      }),
    };
sanity-io/sanity (@​sanity/vision)

v3.44.0

Compare Source

v3.43.0

Compare Source

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 sanity init command for Next.js-embedded Studios is updated to install next-sanity v9 and next v14 as per best practices.
  • Adds support for // @&#8203;sanity-typegen-ignore comments that will ignore certain queries from type generation (thanks @​largis21!).
🐛 Notable Bugfixes
  • Fixes an issue where the scheduled publishing tool is displayed as the only available plugin when no other plugins are added.
  • Adds memoization to minimize unnecessary calls to initial value functions, improving performance.
  • Removes a circular reference to usePaneRouter that caused build warnings and potential execution order issues.
  • Fixes bugs related to the Portable Text Input when using a Reference input directly as the annotation type. This change prohibits focus and unset on the root input, preventing abrupt modal closures and ensuring proper cleanup and function execution.
📓 Full changelog

Author | Message | Commit
------------ | ------------- | -------------
renovate[bot] | fix(deps): Update dev-non-major (#​6659) | ab0f97d
Pedro Bonamin | fix(scheduled-publishing): don't include it if it's the only plugin available (#​6530) | b2fa80b
renovate[bot] | chore(deps): update dependency @​sanity/pkg-utils to v6.8.15 (#​6666) | 30c1f4c
renovate[bot] | fix(deps): update dependency groq-js to ^1.9.0 (#​6655) | 71a0758
renovate[bot] | chore(lockfile): update dependency @​sanity/export to v3.38.0 (#​6654) | 1f6b8a8
Ash | feat(sanity): use actions API when discarding drafts | c1755d1
Ash | feat(sanity): add test ids to confirm dialog buttons | 73d51cb
Ash | test(e2e): add tests for discardChanges document action | 33564a2
renovate[bot] | chore(deps): update dependency framer-motion to v11.2.0 (#​6668) | 673ba0c
renovate[bot] | fix(deps): update dependency @​sanity/presentation to v1.15.3 (#​6667) | 71e6319
renovate[bot] | chore(deps): update dependency esbuild to ^0.21.2 (#​6656) | fc79956
renovate[bot] | chore(deps): update dependency lerna to ^8.1.3 (#​6657) | 7960627
renovate[bot] | fix(deps): Update dev-non-major (#​6673) | 409d7df
Carolina Gonzalez | feat: fetch feature toggle to enable serverside document actions (#​6418) | 8610fc6
renovate[bot] | fix(deps): update dependency @​sanity/client to ^6.18.2 (#​6674) | 4da4ae5
renovate[bot] | fix(deps): update dependency @​sanity/ui to ^2.1.8 (#​6675) | e8a40e2
renovate[bot] | chore(deps): update dependency @​sanity/tsdoc to v1.0.55 (#​6672) | 7b5bbe7
renovate[bot] | fix(deps): update dependency get-it to ^8.4.30 (#​6676) | 0715793
renovate[bot] | fix(deps): update dependency @​sanity/presentation to v1.15.4 (#​6681) | f97c348
renovate[bot] | fix(deps): Update dev-non-major (#​6680) | ab4a9e8
renovate[bot] | fix(deps): update dependency @​sanity/presentation to v1.15.5 (#​6687) | a61a679
renovate[bot] | chore(deps): update dependency framer-motion to v11.2.2 (#​6689) | e27e063
renovate[bot] | fix(deps): update dependency @​sanity/ui to ^2.1.9 (#​6691) | 3aa444f
renovate[bot] | chore(deps): update dependency recast to ^0.23.7 (#​6658) | 3912e82
renovate[bot] | fix(deps): Update dev-non-major (#​6690) | ec179d0
renovate[bot] | chore(deps): update dependency @​sanity/pkg-utils to v6.8.16 (#​6692) | 80d4620
renovate[bot] | chore(deps): update dependency @​sanity/tsdoc to v1.0.59 (#​6693) | 1164a6b
Robin Pyon | feat(pte): add initialActive prop to PortableTextInput (#​6638) | 5add977
Pedro Bonamin | fix(schedule-publishing): avoid polling in upsell mode (#​6670) | 87889d1
Cody Olsen | chore: setup dev:next-studio to use react v19 (#​6685) | 61d1bc3
renovate[bot] | chore(deps): update dependency framer-motion to v11.2.3 (#​6696) | e6b4fdc
renovate[bot] | fix(deps): update dependency @​sanity/ui to ^2.1.10 (#​6701) | af0eee4
renovate[bot] | fix(deps): Update dev-non-major (#​6700) | 77785ff
Pedro Bonamin | feat(structure): add sheet list table view. (#​6647) | c5916d4
Ash | feat(sanity): memoize initial value resolver (#​6614) | 39bab8a
Cody Olsen | fix: update @sanity/presentation and remove deprecated internal exports no longer in use (#​6694) | 69246c1
Cody Olsen | fix: remove circular reference to usePaneRouter (#​6664) | d66def2
jordanl17 | feat(structure): Sheet View columns (#​6661) | d8a37a8
Christian Grøngaard | fix: pin framer-motion to an earlier version (#​6717) | 6c2aea2
renovate[bot] | fix(deps): update dependency @​sanity/ui to ^2.1.11 (#​6720) | 61cc315
Pedro Bonamin | fix(tasks): reduce tasks sidebar zoffset (#​6718) | 5ab0819
renovate[bot] | chore(deps): update dependency @​sanity/pkg-utils to v6.8.17 (#​6722) | babfd2d
Pedro Bonamin | fix(tasks): hide footer button until the active document is set (#​6695) | 93c7d66
jordanl17 | fix(structure): fixing incorrect way of setting col visibility (#​6716) | 06f7902
renovate[bot] | fix(deps): update dependency @​sanity/presentation to v1.15.8 (#​6724) | 17ca815
renovate[bot] | chore(deps): update dependency @​sanity/tsdoc to v1.0.62 (#​6723) | c6c1724
Cody Olsen | feat: upgrade sanity init for Next.js to next-sanity v9 (#​6644) | f48e38b
largis21 | Add support for @​sanity-typegen-ignore to ignore queries (#​6578) | efe8bca
Sindre Gulseth | chore(cli): symlink in local packages for the installed sanity cli (#​6728) | c4b8558
Bjørge Næss | fix(i18n): remove extraneous curly brace (#​6726) | 74f2fd5
Sindre Gulseth | feat(typegen): add optout for prettier formatting (#​6702) | ac5103a

v3.42.1

Compare Source

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 regression introduced in v3.42.0 that crashes the document list pane in Presentation Tool
📓 Full changelog

Author | Message | Commit
------------ | ------------- | -------------
Cody Olsen | fix: regression crashing the document list pane in presentation (#​6684) | 7ae3afd

withastro/astro (astro)

v4.9.2

Compare Source

Patch Changes
  • #​11138 98e0372 Thanks @​ematipico! - You can now pass props when rendering a component using the Container APIs:

    import { experimental_AstroContainer as AstroContainer } from 'astro/container';
    import Card from '../src/components/Card.astro';
    
    const container = await AstroContainer.create();
    const result = await container.renderToString(Card, {
      props: {
        someState: true,
      },
    });

v4.9.1

Compare Source

Patch Changes

v4.9.0

Compare Source

Minor Changes
  • #​11051 12a1bcc Thanks @​ematipico! - Introduces an experimental Container API to render .astro components in isolation.

    This API introduces three new functions to allow you to create a new container and render an Astro component returning either a string or a Response:

    • create(): creates a new instance of the container.
    • renderToString(): renders a component and return a string.
    • renderToResponse(): renders a component and returns the Response emitted by the rendering phase.

    The first supported use of this new API is to enable unit testing. For example, with vitest, you can create a container to render your component with test data and check the result:

    import { experimental_AstroContainer as AstroContainer } from 'astro/container';
    import { expect, test } from 'vitest';
    import Card from '../src/components/Card.astro';
    
    test('Card with slots', async () => {
      const container = await AstroContainer.create();
      const result = await container.renderToString(Card, {
        slots: {
          default: 'Card content',
        },
      });
    
      expect(result).toContain('This is a card');
      expect(result).toContain('Card content');
    });

    For a complete reference, see the Container API docs.

    For a feature overview, and to give feedback on this experimental API, see the Container API roadmap discussion.

  • #​11021 2d4c8fa Thanks @​ematipico! - The CSRF protection feature that was introduced behind a flag in v4.6.0 is no longer experimental and is available for general use.

    To enable the stable version, add the new top-level security option in astro.config.mjs. If you were previously using the experimental version of this feature, also delete the experimental flag:

    export default defineConfig({
    -  experimental: {
    -    security: {
    -      csrfProtection: {
    -        origin: true
    -      }
    -    }
    -  },
    +  security: {
    +    checkOrigin: true
    +  }
    })

    Enabling this setting performs a check that the "origin" header, automatically passed by all modern browsers, matches the URL sent by each Request.

    This check is executed only for pages rendered on demand, and only for the requests POST, PATCH, DELETE and PUT with one of the following "content-type" headers: 'application/x-www-form-urlencoded', 'multipart/form-data', 'text/plain'.

    If the "origin" header doesn't match the pathname of the request, Astro will return a 403 status code and won't render the page.

    For more information, see the security configuration docs.

  • #​11022 be68ab4 Thanks @​ematipico! - The i18nDomains routing feature introduced behind a flag in v3.4.0 is no longer experimental and is available for general use.

    This routing option allows you to configure different domains for individual locales in entirely server-rendered projects using the @​astrojs/node or @​astrojs/vercel adapter with a site configured.

    If you were using this feature, please remove the experimental flag from your Astro config:

    import { defineConfig } from 'astro'
    
    export default defineConfig({
    -  experimental: {
    -    i18nDomains: true,
    -  }
    })

    If you have been waiting for stabilization before using this routing option, you can now do so.

    Please see the internationalization docs for more about this feature.

  • #​11071 8ca7c73 Thanks @​bholmesdev! - Adds two new functions experimental_getActionState() and experimental_withState() to support the React 19 useActionState() hook when using Astro Actions. This introduces progressive enhancement when calling an Action with the withState() utility.

    This example calls a like action that accepts a postId and returns the number of likes. Pass this action to the experimental_withState() function to apply progressive enhancement info, and apply to useActionState() to track the result:

    import { actions } from 'astro:actions';
    import { experimental_withState } from '@&#8203;astrojs/react/actions';
    
    export function Like({ postId }: { postId: string }) {
      const [state, action, pending] = useActionState(
        experimental_withState(actions.like),
        0 // initial likes
      );
    
      return (
        <form action={action}>
          <input type="hidden" name="postId" value={postId} />
          <button disabled={pending}>{state} ❤️</button>
        </form>
      );
    }

    You can also access the state stored by useActionState() from your action handler. Call experimental_getActionState() with the API context, and optionally apply a type to the result:

    import { defineAction, z } from 'astro:actions';
    import { experimental_getActionState } from '@&#8203;astrojs/react/actions';
    
    export const server = {
      like: defineAction({
        input: z.object({
          postId: z.string(),
        }),
        handler: async ({ postId }, ctx) => {
          const currentLikes = experimental_getActionState<number>(ctx);
          // write to database
          return currentLikes + 1;
        },
      }),
    };
  • #​11101 a6916e4 Thanks @​linguofeng! - Updates Astro's code for adapters to use the header x-forwarded-for to initialize the clientAddress.

    To take advantage of the new change, integration authors must upgrade the version of Astro in their adapter peerDependencies to 4.9.0.

  • #​11071 8ca7c73 Thanks @​bholmesdev! - Adds compatibility for Astro Actions in the React 19 beta. Actions can be passed to a form action prop directly, and Astro will automatically add metadata for progressive enhancement.

    import { actions } from 'astro:actions';
    
    function Like() {
      return (
        <form action={actions.like}>
          {/* auto-inserts hidden input for progressive enhancement */}
          <button type="submit">Like</button>
        </form>
      );
    }
Patch Changes
  • #​11088 9566fa0 Thanks @​bholmesdev! - Allow actions to be called on the server. This allows you to call actions as utility functions in your Astro frontmatter, endpoints, and server-side UI components.

    Import and call directly from astro:actions as you would for client actions:

v4.8.7

Compare Source

Patch Changes
  • #​11073 f5c8fee Thanks @​matthewp! - Prevent cache content from being left in dist folder

    When contentCollectionsCache is enabled temporary cached content is copied into the outDir for processing. This fixes it so that this content is cleaned out, along with the rest of the temporary build JS.

  • #​11054 f6b171e Thanks @​bholmesdev! - Respect error status when handling Actions with a progressive fallback.

  • #​11092 bfe9c73 Thanks @​duckycoding-dev! - Change slot attribute of IntrinsicAttributes to match the definition of HTMLAttributes's own slot attribute of type string | undefined | null

  • #​10875 b5f95b2 Thanks @​W1M0R! - Fixes a typo in a JSDoc annotation

  • #​11111 a5d79dd Thanks @​bholmesdev! - Fix unexpected headers warning on prerendered routes when using Astro Actions.

  • #​11081 af42e05 Thanks @​V3RON! - Correctly position inspection tooltip in RTL mode

    When RTL mode is turned on, the inspection tooltip tend to overflow the window on the left side.
    Additional check has been added to prevent that.

v4.8.6

Compare Source

Patch Changes

v4.8.5

Compare Source

Patch Changes

v4.8.4

Compare Source

Patch Changes
  • #​11026 8dfb1a2 Thanks @​bluwy! - Skips rendering script tags if it's inlined and empty when experimental.directRenderScript is enabled

  • #​11043 d0d1710 Thanks @​bholmesdev! - Fixes minor type issues in actions component example

  • #​10999 5f353e3 Thanks @​bluwy! - The prefetch feature is updated to better support different browsers and different cache headers setup, including:

    1. All prefetch strategies will now always try to use <link rel="prefetch"> if supported, or will fall back to fetch().
    2. The prefetch() programmatic API's with option is deprecated in favour of an automatic approach that will also try to use <link rel="prefetch> if supported, or will fall back to fetch().

    This change shouldn't affect most sites and should instead make prefetching more effective.

  • #​11041 6cc3fb9 Thanks @​bholmesdev! - Fixes 500 errors when sending empty params or returning an empty response from an action.

  • #​11028 771d1f7 Thanks @​bholmesdev! - Throw on missing server output when using Astro Actions.

  • #​11029 bd34452 Thanks @​bholmesdev! - Actions: include validation error in thrown error message for debugging.

  • #​11046 086694a Thanks @​HiDeoo! - Fixes getViteConfig() type definition to allow passing an inline Astro configuration as second argument

  • #​11026 8dfb1a2 Thanks @​bluwy! - Fixes CSS handling if imported in a script tag in an Astro file when experimental.directRenderScript is enabled

  • #​11020 2e2d6b7 Thanks @​xsynaptic! - Add type declarations for import.meta.env.ASSETS_PREFIX when defined as an object for handling different file types.

  • #​11030 18e7f33 Thanks @​bholmesdev! - Actions: Fix missing message for custom Action errors.

  • #​10981 ad9227c Thanks @​mo! - Adds deprecated HTML attribute "name" to the list of valid attributes. This attribute has been replaced by the global id attribute in recent versions of HTML.

  • #​11013 4ea38e7 Thanks @​QingXia-Ela! - Prevents unhandledrejection error when checking for latest Astro version

  • #​11034 5f2dd45 Thanks @​arganaphang! - Add popovertargetaction to the attribute that can be passed to the button and input element

theisel/astro-portabletext (astro-portabletext)

v0.10.0

Compare Source

⚠ BREAKING CHANGES
  • component: drop class prop from PortableText (#​143)
Documentation
Bug Fixes
Code Refactoring

Configuration

📅 Schedule: Branch creation - "before 3am on Monday" (UTC), 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 has been generated by Mend Renovate using a curated preset maintained by Sanity. View repository job log here

@renovate renovate bot requested a review from a team as a code owner November 6, 2023 00:53
Copy link

vercel bot commented Nov 6, 2023

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

Name Status Preview Comments Updated (UTC)
sanity-astro-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 30, 2024 8:24am
sanity-astro-example-ssr ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 30, 2024 8:24am
sanity-astro-shoes ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 30, 2024 8:24am

@renovate renovate bot force-pushed the renovate/apps-dependencies branch from 717c093 to 6d10cf9 Compare November 8, 2023 10:59
@renovate renovate bot force-pushed the renovate/apps-dependencies branch from 6d10cf9 to fb32fd8 Compare November 8, 2023 22:52
@renovate renovate bot force-pushed the renovate/apps-dependencies branch from fb32fd8 to 646fab1 Compare November 9, 2023 18:54
@renovate renovate bot force-pushed the renovate/apps-dependencies branch from 646fab1 to 3609034 Compare November 10, 2023 17:10
@renovate renovate bot force-pushed the renovate/apps-dependencies branch from 3609034 to 2453252 Compare November 12, 2023 04:49
@renovate renovate bot force-pushed the renovate/apps-dependencies branch from 2453252 to cb50272 Compare November 14, 2023 15:24
@renovate renovate bot force-pushed the renovate/apps-dependencies branch from cb50272 to 5dfff93 Compare November 16, 2023 15:16
@renovate renovate bot force-pushed the renovate/apps-dependencies branch from 5dfff93 to 5414688 Compare November 16, 2023 18:11
@renovate renovate bot force-pushed the renovate/apps-dependencies branch from 172f94b to 819efb7 Compare May 29, 2024 10:16
@renovate renovate bot force-pushed the renovate/apps-dependencies branch from 819efb7 to 9d1bebd Compare May 29, 2024 11:03
@renovate renovate bot force-pushed the renovate/apps-dependencies branch from 9d1bebd to d0a4bc6 Compare May 29, 2024 11:18
@renovate renovate bot force-pushed the renovate/apps-dependencies branch from d0a4bc6 to b01487a Compare May 29, 2024 13:57
@renovate renovate bot force-pushed the renovate/apps-dependencies branch from b01487a to db79342 Compare May 29, 2024 15:16
@renovate renovate bot force-pushed the renovate/apps-dependencies branch from db79342 to 36b9f99 Compare May 30, 2024 07:23
@stipsan stipsan added this pull request to the merge queue May 30, 2024
Merged via the queue into main with commit d5c31d7 May 30, 2024
13 checks passed
@stipsan stipsan deleted the renovate/apps-dependencies branch May 30, 2024 09:41
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants