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

[ci] release #7090

Merged
merged 1 commit into from May 18, 2023
Merged

[ci] release #7090

merged 1 commit into from May 18, 2023

Conversation

astrobot-houston
Copy link
Contributor

@astrobot-houston astrobot-houston commented May 15, 2023

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

astro@2.5.0

Minor Changes

  • #7071 e186ecc5e Thanks @johannesspohr! - Render sibling components in parallel

  • #6850 c6d7ebefd Thanks @bholmesdev! - Content collections now support data formats including JSON and YAML. You can also create relationships, or references, between collections to pull information from one collection entry into another. Learn more on our updated Content Collections docs.

  • #6991 719002ca5 Thanks @MoustaphaDev! - Enable experimental support for hybrid SSR with pre-rendering enabled by default

    astro.config.mjs

    import { defineConfig } from 'astro/config';
    export defaultdefineConfig({
       output: 'hybrid',
           experimental: {
           hybridOutput: true,
       },
    })

    Then add export const prerender = false to any page or endpoint you want to opt-out of pre-rendering.

    src/pages/contact.astro

    ---
    export const prerender = false;
    
    if (Astro.request.method === 'POST') {
      // handle form submission
    }
    ---
    
    <form method="POST">
      <input type="text" name="name" />
      <input type="email" name="email" />
      <button type="submit">Submit</button>
    </form>
  • #7074 73ec6f6c1 Thanks @bluwy! - Integrations can add new client: directives through the astro:config:setup hook's addClientDirective() API. To enable this API, the user needs to set experimental.customClientDirectives to true in their config.

    import { defineConfig } from 'astro/config';
    import onClickDirective from 'astro-click-directive';
    
    export default defineConfig({
      integrations: [onClickDirective()],
      experimental: {
        customClientDirectives: true,
      },
    });
    export default function onClickDirective() {
      return {
        hooks: {
          'astro:config:setup': ({ addClientDirective }) => {
            addClientDirective({
              name: 'click',
              entrypoint: 'astro-click-directive/click.js',
            });
          },
        },
      };
    }
    <Counter client:click />

    The client directive file (e.g. astro-click-directive/click.js) should export a function of type ClientDirective:

    import type { ClientDirective } from 'astro';
    
    const clickDirective: ClientDirective = (load, opts, el) => {
      window.addEventListener(
        'click',
        async () => {
          const hydrate = await load();
          await hydrate();
        },
        { once: true }
      );
    };
    
    export default clickDirective;
  • #6706 763ff2d1e Thanks @wulinsheng123! - Adds an opt-in way to minify the HTML output.

    Using the compressHTML option Astro will remove whitespace from Astro components. This only applies to components written in .astro format and happens in the compiler to maximize performance. You can enable with:

    import { defineConfig } from 'astro/config';
    
    export default defineConfig({
      compressHTML: true,
    });

    Compression occurs both in development mode and in the final build.

  • #7069 c1669c001 Thanks @Princesseuh! - Added Polymorphic type helper to astro/types to easily create polymorphic components:

    ---
    import { HTMLTag, Polymorphic } from 'astro/types';
    
    type Props<Tag extends HTMLTag> = Polymorphic<{ as: Tag }>;
    
    const { as: Tag, ...props } = Astro.props;
    ---
    
    <Tag {...props} />
  • #7093 3d525efc9 Thanks @matthewp! - Prevent removal of nested slots within islands

    This change introduces a new flag that renderers can add called supportsAstroStaticSlot. What this does is let Astro know that the render is sending <astro-static-slot> as placeholder values for static (non-hydrated) slots which Astro will then remove.

    This change is completely backwards compatible, but fixes bugs caused by combining ssr-only and client-side framework components like so:

    <Component>
      <div>
        <Component client:load>
          <span>Nested</span>
        </Component>
      </div>
    </Component>

Patch Changes

@astrojs/cloudflare@6.3.0

Minor Changes

Patch Changes

@astrojs/markdoc@0.2.0

Minor Changes

Patch Changes

@astrojs/preact@2.2.0

Minor Changes

  • #7093 3d525efc9 Thanks @matthewp! - Prevent removal of nested slots within islands

    This change introduces a new flag that renderers can add called supportsAstroStaticSlot. What this does is let Astro know that the render is sending <astro-static-slot> as placeholder values for static (non-hydrated) slots which Astro will then remove.

    This change is completely backwards compatible, but fixes bugs caused by combining ssr-only and client-side framework components like so:

    <Component>
      <div>
        <Component client:load>
          <span>Nested</span>
        </Component>
      </div>
    </Component>

Patch Changes

@astrojs/react@2.2.0

Minor Changes

  • #7093 3d525efc9 Thanks @matthewp! - Prevent removal of nested slots within islands

    This change introduces a new flag that renderers can add called supportsAstroStaticSlot. What this does is let Astro know that the render is sending <astro-static-slot> as placeholder values for static (non-hydrated) slots which Astro will then remove.

    This change is completely backwards compatible, but fixes bugs caused by combining ssr-only and client-side framework components like so:

    <Component>
      <div>
        <Component client:load>
          <span>Nested</span>
        </Component>
      </div>
    </Component>

Patch Changes

@astrojs/solid-js@2.2.0

Minor Changes

  • #7093 3d525efc9 Thanks @matthewp! - Prevent removal of nested slots within islands

    This change introduces a new flag that renderers can add called supportsAstroStaticSlot. What this does is let Astro know that the render is sending <astro-static-slot> as placeholder values for static (non-hydrated) slots which Astro will then remove.

    This change is completely backwards compatible, but fixes bugs caused by combining ssr-only and client-side framework components like so:

    <Component>
      <div>
        <Component client:load>
          <span>Nested</span>
        </Component>
      </div>
    </Component>

Patch Changes

@astrojs/svelte@2.2.0

Minor Changes

  • #7093 3d525efc9 Thanks @matthewp! - Prevent removal of nested slots within islands

    This change introduces a new flag that renderers can add called supportsAstroStaticSlot. What this does is let Astro know that the render is sending <astro-static-slot> as placeholder values for static (non-hydrated) slots which Astro will then remove.

    This change is completely backwards compatible, but fixes bugs caused by combining ssr-only and client-side framework components like so:

    <Component>
      <div>
        <Component client:load>
          <span>Nested</span>
        </Component>
      </div>
    </Component>

Patch Changes

@astrojs/vercel@3.4.0

Minor Changes

Patch Changes

@astrojs/vue@2.2.0

Minor Changes

  • #7093 3d525efc9 Thanks @matthewp! - Prevent removal of nested slots within islands

    This change introduces a new flag that renderers can add called supportsAstroStaticSlot. What this does is let Astro know that the render is sending <astro-static-slot> as placeholder values for static (non-hydrated) slots which Astro will then remove.

    This change is completely backwards compatible, but fixes bugs caused by combining ssr-only and client-side framework components like so:

    <Component>
      <div>
        <Component client:load>
          <span>Nested</span>
        </Component>
      </div>
    </Component>

Patch Changes

@astrojs/prism@2.1.2

Patch Changes

@astrojs/rss@2.4.2

Patch Changes

@astrojs/alpinejs@0.2.2

Patch Changes

@astrojs/deno@4.1.1

Patch Changes

@astrojs/image@0.16.9

Patch Changes

@astrojs/lit@2.0.2

Patch Changes

@astrojs/mdx@0.19.2

Patch Changes

  • #7104 826e02890 Thanks @bluwy! - Specify "files" field to only publish necessary files

  • Updated dependencies [826e02890]:

    • @astrojs/markdown-remark@2.2.1
    • @astrojs/prism@2.1.2

@astrojs/netlify@2.2.3

Patch Changes

@astrojs/node@5.1.4

Patch Changes

@astrojs/partytown@1.2.2

Patch Changes

@astrojs/prefetch@0.2.2

Patch Changes

@astrojs/tailwind@3.1.3

Patch Changes

@astrojs/turbolinks@0.2.2

Patch Changes

@astrojs/markdown-component@1.0.4

Patch Changes

@astrojs/markdown-remark@2.2.1

Patch Changes

@github-actions github-actions bot force-pushed the changeset-release/main branch 17 times, most recently from 1b7e1c6 to d38ae51 Compare May 17, 2023 12:54
@github-actions github-actions bot added pkg: astro Related to the core `astro` package (scope) pkg: lit Related to Lit (scope) pkg: preact Related to Preact (scope) pkg: react Related to React (scope) pkg: solid Related to Solid (scope) pkg: svelte Related to Svelte (scope) pkg: vue Related to Vue (scope) pkg: integration Related to any renderer integration (scope) feat: markdown Related to Markdown (scope) labels May 17, 2023
@github-actions github-actions bot force-pushed the changeset-release/main branch 4 times, most recently from f98bb79 to 0dc7026 Compare May 17, 2023 13:18
@github-actions github-actions bot force-pushed the changeset-release/main branch 4 times, most recently from 9900ddc to 78fe595 Compare May 17, 2023 13:30
@github-actions github-actions bot requested a review from a team as a code owner May 17, 2023 13:30
@github-actions github-actions bot force-pushed the changeset-release/main branch 15 times, most recently from 1c73bab to b587220 Compare May 18, 2023 13:57
@matthewp matthewp merged commit 31cbf43 into main May 18, 2023
@matthewp matthewp deleted the changeset-release/main branch May 18, 2023 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat: markdown Related to Markdown (scope) pkg: astro Related to the core `astro` package (scope) pkg: integration Related to any renderer integration (scope) pkg: lit Related to Lit (scope) pkg: preact Related to Preact (scope) pkg: react Related to React (scope) pkg: solid Related to Solid (scope) pkg: svelte Related to Svelte (scope) pkg: vue Related to Vue (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants