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

fix(deps): update astro monorepo #627

Closed
wants to merge 1 commit into from
Closed

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Sep 7, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@astrojs/mdx (source) 3.1.5 -> 3.1.6 age adoption passing confidence
astro (source) 4.15.4 -> 4.15.5 age adoption passing confidence

Release Notes

withastro/astro (@​astrojs/mdx)

v3.1.6

Compare Source

Patch Changes
withastro/astro (astro)

v4.15.5

Compare Source

Patch Changes
  • #​11939 7b09c62 Thanks @​bholmesdev! - Adds support for Zod discriminated unions on Action form inputs. This allows forms with different inputs to be submitted to the same action, using a given input to decide which object should be used for validation.

    This example accepts either a create or update form submission, and uses the type field to determine which object to validate against.

    import { defineAction } from 'astro:actions';
    import { z } from 'astro:schema';
    
    export const server = {
      changeUser: defineAction({
        accept: 'form',
        input: z.discriminatedUnion('type', [
          z.object({
            type: z.literal('create'),
            name: z.string(),
            email: z.string().email(),
          }),
          z.object({
            type: z.literal('update'),
            id: z.number(),
            name: z.string(),
            email: z.string().email(),
          }),
        ]),
        async handler(input) {
          if (input.type === 'create') {
            // input is { type: 'create', name: string, email: string }
          } else {
            // input is { type: 'update', id: number, name: string, email: string }
          }
        },
      }),
    };

    The corresponding create and update forms may look like this:


Configuration

📅 Schedule: Branch creation - "every weekend" (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 was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added bot Automated tag added by a bot dependencies Dependency-wise renovate Automated tag added by Renovate labels Sep 7, 2024
Copy link

socket-security bot commented Sep 7, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@astrojs/[email protected] None 0 38 kB fredkschott
npm/[email protected] None 0 14.8 MB fredkschott, matthewp, natemoo-re
npm/[email protected] None 0 3.26 MB antfu, patak, soda, ...2 more

🚮 Removed packages: npm/@astrojs/[email protected], npm/[email protected], npm/[email protected]

View full report↗︎

@renovate renovate bot changed the title fix(deps): update dependency astro to v4.15.4 fix(deps): update dependency astro to v4.15.4 - autoclosed Sep 7, 2024
@renovate renovate bot closed this Sep 7, 2024
@renovate renovate bot deleted the renovate/astro-monorepo branch September 7, 2024 05:50
@renovate renovate bot changed the title fix(deps): update dependency astro to v4.15.4 - autoclosed fix(deps): update dependency astro to v4.15.4 Sep 13, 2024
@renovate renovate bot reopened this Sep 13, 2024
@renovate renovate bot restored the renovate/astro-monorepo branch September 13, 2024 13:22
@renovate renovate bot requested a review from fbuireu as a code owner September 13, 2024 13:22
@renovate renovate bot changed the title fix(deps): update dependency astro to v4.15.4 fix(deps): update astro monorepo Sep 13, 2024
@fbuireu fbuireu closed this Sep 13, 2024
@renovate renovate bot deleted the renovate/astro-monorepo branch September 13, 2024 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot Automated tag added by a bot dependencies Dependency-wise renovate Automated tag added by Renovate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant