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

Merged
merged 1 commit into from
Jun 24, 2022
Merged

[ci] release #3701

merged 1 commit into from
Jun 24, 2022

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Jun 24, 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

[email protected]

Patch Changes

  • #3696 3daaf510 Thanks @matthewp! - Support for streaming responses

    Astro supports streaming in its templates. Any time Astro encounters an async boundary it will stream out HTML that occurs before it. For example:

    ---
    import LoadTodos from '../components/LoadTodos.astro';
    ---
    <html>
    <head>
    <title>App</title>
    </head>
    <body>
      <LoadTodos />
    </body>
    </html>

    In this arbtrary example Astro will streaming out the <head> section and everything else until it encounters <LoadTodos /> and then stop. LoadTodos, which is also an Astro component will stream its contents as well; stopping and waiting at any other asynchronous components.

    As part of this Astro also now supports async iterables within its templates. This means you can do this:

    <ul>
      {(async function * () {
        for(const number of numbers) {
          await wait(1000);
    
          yield <li>Number: {number}</li>
          yield '\n'
        }
      })()}
    </ul>

    Which will stream out <li>s one at a time, waiting a second between each.

  • #3700 47c81eff Thanks @matthewp! - Make Astro.redirect use a 302 status code

@astrojs/[email protected]

Patch Changes

@github-actions github-actions bot force-pushed the changeset-release/main branch from dedabf0 to 3fefc2e Compare June 24, 2022 19:39
@github-actions github-actions bot force-pushed the changeset-release/main branch from 3fefc2e to bed34c0 Compare June 24, 2022 19:59
@matthewp matthewp merged commit 67b5aa4 into main Jun 24, 2022
@matthewp matthewp deleted the changeset-release/main branch June 24, 2022 20:05
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>
ematipico pushed a commit that referenced this pull request Feb 7, 2025
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