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

Update astro monorepo #18

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

Update astro monorepo #18

wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 24, 2024

This PR contains the following updates:

Package Type Update Change
@astrojs/markdoc (source) dependencies minor 0.9.0 -> 0.11.5
@astrojs/react (source) dependencies minor 3.3.0 -> 3.6.2
@astrojs/rss (source) dependencies patch 4.0.5 -> 4.0.9

Release Notes

withastro/astro (@​astrojs/markdoc)

v0.11.5

Compare Source

Patch Changes

v0.11.4

Compare Source

Patch Changes
  • #​11846 ed7bbd9 Thanks @​HiDeoo! - Fixes an issue preventing to use Astro components as Markdoc tags and nodes when configured using the extends property.

v0.11.3

Compare Source

Patch Changes

v0.11.2

Compare Source

Patch Changes

v0.11.1

Compare Source

Patch Changes

v0.11.0

Compare Source

Minor Changes
Patch Changes

v0.10.0

Compare Source

Minor Changes
Patch Changes

v0.9.5

Compare Source

Patch Changes
  • #​10649 90cfade88c2b9a34d8a5fe711ce329732d690409 Thanks @​bholmesdev! - Add automatic resolution for Markdoc partials. This allows you to render other Markdoc files inside of a given entry. Reference files using the partial tag with a file attribute for the relative file path:

    <!--src/content/blog/post.mdoc-->
    
    {% partial file="my-partials/_diagram.mdoc" /%}
    
    <!--src/content/blog/my-partials/_diagram.mdoc-->

v0.9.4

Compare Source

Patch Changes

v0.9.3

Compare Source

Patch Changes

v0.9.2

Compare Source

Patch Changes

v0.9.1

Compare Source

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

v3.6.2

Compare Source

Patch Changes
  • #​11624 7adb350 Thanks @​bluwy! - Prevents throwing errors when checking if a component is a React component in runtime

v3.6.1

Compare Source

Patch Changes
  • #​11571 1c3265a Thanks @​bholmesdev! - BREAKING CHANGE to the experimental Actions API only. Install the latest @astrojs/react integration as well if you're using React 19 features.

    Make .safe() the default return value for actions. This means { data, error } will be returned when calling an action directly. If you prefer to get the data while allowing errors to throw, chain the .orThrow() modifier.

    import { actions } from 'astro:actions';
    
    // Before
    const { data, error } = await actions.like.safe();
    // After
    const { data, error } = await actions.like();
    
    // Before
    const newLikes = await actions.like();
    // After
    const newLikes = await actions.like.orThrow();

v3.6.0

Compare Source

Minor Changes
  • #​11234 4385bf7 Thanks @​ematipico! - Adds a new function called addServerRenderer to the Container API. Use this function to manually store renderers inside the instance of your container.

    This new function should be preferred when using the Container API in environments like on-demand pages:

    import type { APIRoute } from 'astro';
    import { experimental_AstroContainer } from 'astro/container';
    import reactRenderer from '@&#8203;astrojs/react/server.js';
    import vueRenderer from '@&#8203;astrojs/vue/server.js';
    import ReactComponent from '../components/button.jsx';
    import VueComponent from '../components/button.vue';
    
    // MDX runtime is contained inside the Astro core
    import mdxRenderer from 'astro/jsx/server.js';
    
    // In case you need to import a custom renderer
    import customRenderer from '../renderers/customRenderer.js';
    
    export const GET: APIRoute = async (ctx) => {
      const container = await experimental_AstroContainer.create();
      container.addServerRenderer({ renderer: reactRenderer });
      container.addServerRenderer({ renderer: vueRenderer });
      container.addServerRenderer({ renderer: customRenderer });
      // You can pass a custom name too
      container.addServerRenderer({
        name: 'customRenderer',
        renderer: customRenderer,
      });
      const vueComponent = await container.renderToString(VueComponent);
      return await container.renderToResponse(Component);
    };

v3.5.0

Compare Source

Minor Changes
  • #​11144 803dd80 Thanks @​ematipico! - The integration now exposes a function called getContainerRenderer, that can be used inside the Container APIs to load the relative renderer.

    import { experimental_AstroContainer as AstroContainer } from 'astro/container';
    import ReactWrapper from '../src/components/ReactWrapper.astro';
    import { loadRenderers } from 'astro:container';
    import { getContainerRenderer } from '@&#8203;astrojs/react';
    
    test('ReactWrapper with react renderer', async () => {
      const renderers = await loadRenderers([getContainerRenderer()]);
      const container = await AstroContainer.create({
        renderers,
      });
      const result = await container.renderToString(ReactWrapper);
    
      expect(result).toContain('Counter');
      expect(result).toContain('Count: <!-- -->5');
    });

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 '@&#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;
        },
      }),
    };

v3.3.4

Compare Source

Patch Changes

v3.3.3

Compare Source

Patch Changes

v3.3.2

Compare Source

Patch Changes

v3.3.1

Compare Source

Patch Changes
withastro/astro (@​astrojs/rss)

v4.0.9

Compare Source

Patch Changes

v4.0.8

Compare Source

Patch Changes

v4.0.7

Compare Source

Patch Changes

v4.0.6

Compare Source

Patch Changes

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), 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 requested a review from alexanderniebuhr as a code owner May 24, 2024 17:20
@renovate renovate bot force-pushed the renovate/astro-monorepo branch 10 times, most recently from 38154b1 to 4dc272c Compare May 27, 2024 12:10
@renovate renovate bot force-pushed the renovate/astro-monorepo branch 4 times, most recently from 45cfa03 to 5f521cf Compare June 8, 2024 09:42
@renovate renovate bot force-pushed the renovate/astro-monorepo branch 4 times, most recently from 441784e to 0c959a4 Compare June 17, 2024 14:02
@renovate renovate bot force-pushed the renovate/astro-monorepo branch 4 times, most recently from d0dd58a to 065ad6a Compare June 26, 2024 13:17
@renovate renovate bot force-pushed the renovate/astro-monorepo branch 2 times, most recently from e9cb4d9 to 0dcb109 Compare July 4, 2024 00:26
@renovate renovate bot force-pushed the renovate/astro-monorepo branch 5 times, most recently from fb0638e to 502ae20 Compare July 19, 2024 16:03
@renovate renovate bot force-pushed the renovate/astro-monorepo branch 2 times, most recently from 8280f06 to 831ddae Compare August 8, 2024 16:11
@renovate renovate bot force-pushed the renovate/astro-monorepo branch 4 times, most recently from b5d67aa to ecce4cc Compare August 15, 2024 17:09
@renovate renovate bot force-pushed the renovate/astro-monorepo branch 3 times, most recently from 90a23e8 to 530beaa Compare August 23, 2024 01:37
@renovate renovate bot force-pushed the renovate/astro-monorepo branch 5 times, most recently from 6a158dc to 320b332 Compare September 2, 2024 13:43
@renovate renovate bot force-pushed the renovate/astro-monorepo branch 2 times, most recently from fa0f664 to d1da9bc Compare September 6, 2024 18:46
@renovate renovate bot force-pushed the renovate/astro-monorepo branch 4 times, most recently from 5f32630 to bbfa0fa Compare September 19, 2024 13:50
@renovate renovate bot force-pushed the renovate/astro-monorepo branch 3 times, most recently from 7a011f3 to 91d86e8 Compare October 7, 2024 17:06
@renovate renovate bot force-pushed the renovate/astro-monorepo branch 4 times, most recently from ae59f80 to 369f1b9 Compare October 14, 2024 09:35
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.

0 participants