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 #3692

Merged
merged 1 commit into from
Jun 24, 2022
Merged

[ci] release #3692

merged 1 commit into from
Jun 24, 2022

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Jun 23, 2022

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

@astrojs/[email protected]

Minor Changes

  • #3652 7373d61c Thanks @natemoo-re! - Adds support for passing named slots from .astro => Lit components.

    All slots are treated as Light DOM content.

@astrojs/[email protected]

Minor Changes

  • #3652 7373d61c Thanks @natemoo-re! - Add support for passing named slots from .astro => framework components.

    Each slot is be passed as a top-level prop. For example:

    // From .astro
    <Component>
      <h2 slot="title">Hello world!</h2>
      <h2 slot="slot-with-dash">Dash</h2>
      <div>Default</div>
    </Component>;
    
    // For .jsx
    export default function Component({ title, slotWithDash, children }) {
      return (
        <>
          <div id="title">{title}</div>
          <div id="slot-with-dash">{slotWithDash}</div>
          <div id="main">{children}</div>
        </>
      );
    }

@astrojs/[email protected]

Minor Changes

  • #3652 7373d61c Thanks @natemoo-re! - Add support for passing named slots from .astro => framework components.

    Each slot is be passed as a top-level prop. For example:

    // From .astro
    <Component>
      <h2 slot="title">Hello world!</h2>
      <h2 slot="slot-with-dash">Dash</h2>
      <div>Default</div>
    </Component>;
    
    // For .jsx
    export default function Component({ title, slotWithDash, children }) {
      return (
        <>
          <div id="title">{title}</div>
          <div id="slot-with-dash">{slotWithDash}</div>
          <div id="main">{children}</div>
        </>
      );
    }

@astrojs/[email protected]

Minor Changes

  • #3652 7373d61c Thanks @natemoo-re! - Add support for passing named slots from .astro => framework components.

    Each slot is be passed as a top-level prop. For example:

    // From .astro
    <Component>
      <h2 slot="title">Hello world!</h2>
      <h2 slot="slot-with-dash">Dash</h2>
      <div>Default</div>
    </Component>;
    
    // For .jsx
    export default function Component({ title, slotWithDash, children }) {
      return (
        <>
          <div id="title">{title}</div>
          <div id="slot-with-dash">{slotWithDash}</div>
          <div id="main">{children}</div>
        </>
      );
    }

@astrojs/[email protected]

Minor Changes

  • #3652 7373d61c Thanks @natemoo-re! - Adds support for passing named slots from .astro => framework components.

    Inside your components, use the built-in slot API as you normally would.

@astrojs/[email protected]

Minor Changes

  • #3652 7373d61c Thanks @natemoo-re! - Adds support for passing named slots from .astro => framework components.

    Inside your components, use the built-in slot API as you normally would.

[email protected]

Patch Changes

  • #3652 7373d61c Thanks @natemoo-re! - Add renderer support for passing named slots to framework components.

    BREAKING: integrations using the addRenderer() API are now passed all named slots via Record<string, string> rather than string. Previously only the default slot was passed.

  • #3649 446f8c4f Thanks @dc7290! - Added test for dir parameter in astro:build:done

  • #3679 fa7ed3f3 Thanks @matthewp! - Moves head injection to happen during rendering

    This change makes it so that head injection; to insert component stylesheets, hoisted scripts, for example, to happen during rendering than as a post-rendering step.

    This is to enable streaming. This change will only be noticeable if you are rendering your <head> element inside of a framework component. If that is the case then the head items will be injected before the first non-head element in an Astro file instead.

    In the future we may offer a <Astro.Head> component as a way to control where these scripts/styles are inserted.

@astrojs/[email protected]

Patch Changes

  • #3689 3f8ee70e Thanks @bholmesdev! - Add warning log for sitemap + SSR adapter, with suggestion to use customPages configuration option

@github-actions github-actions bot force-pushed the changeset-release/main branch 4 times, most recently from e5cc1b5 to c505b77 Compare June 23, 2022 19:41
@github-actions github-actions bot force-pushed the changeset-release/main branch from c505b77 to 9b798c0 Compare June 24, 2022 01:28
@natemoo-re natemoo-re merged commit 6a60474 into main Jun 24, 2022
@natemoo-re natemoo-re deleted the changeset-release/main branch June 24, 2022 17:55
SiriousHunter pushed a commit to SiriousHunter/astro that referenced this pull request Feb 3, 2023
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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.

1 participant