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

Merged
merged 1 commit into from
Jul 20, 2023
Merged

[ci] release #7714

merged 1 commit into from
Jul 20, 2023

Conversation

astrobot-houston
Copy link
Contributor

@astrobot-houston astrobot-houston commented Jul 19, 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

[email protected]

Minor Changes

  • #7686 ec745d689 Thanks @matthewp! - Redirects configuration

    This change moves the redirects configuration out of experimental. If you were previously using experimental redirects, remove the following experimental flag:

    experimental: {
      redirects: true,
    }

    If you have been waiting for stabilization before using redirects, now you can do so. Check out the docs on redirects to learn how to use this built-in feature.

  • #7707 3a6e42e19 Thanks @ottomated! - Improved hoisted script bundling

    Astro's static analysis to determine which <script> tags to bundle together just got a little smarter!

    Astro create bundles that optimize script usage between pages and place them in the head of the document so that they are downloaded as early as possible. One limitation to Astro's existing approach has been that you could not dynamically use hoisted scripts. Each page received the same, all-inclusive bundle whether or not every script was needed on that page.

    Now, Astro has improved the static analysis to take into account the actual imports used.

    For example, Astro would previously bundle the <script>s from both the <Tab> and <Accordian> component for the following library that re-exports multiple components:

    @matthewp/my-astro-lib

    export { default as Tabs } from './Tabs.astro';
    export { default as Accordion } from './Accordion.astro';

    Now, when an Astro page only uses a single component, Astro will send only the necessary script to the page. A page that only imports the <Accordian> component will not receive any <Tab> component's scripts:

    ---
    import { Accordion } from '@matthewp/my-astro-lib';
    ---

    You should now see more efficient performance with Astro now supporting this common library re-export pattern.

  • #7511 6a12fcecb Thanks @matthewp! - Built-in View Transitions Support (experimental)

    Astro now supports view transitions through the new <ViewTransitions /> component and the transition:animate (and associated) directives. View transitions are a great fit for content-oriented sites, and we see it as the best path to get the benefits of client-side routing (smoother transitions) without sacrificing the more simple mental model of MPAs.

    Enable support for view transitions in Astro 2.9 by adding the experimental flag to your config:

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

    This enables you to use the new APIs added.

    This is a component which acts as the router for transitions between pages. Add it to the <head> section of each individual page where transitions should occur in the client as you navigate away to another page, instead of causing a full page browser refresh. To enable support throughout your entire app, add the component in some common layout or component that targets the <head> of every page.

    CommonHead.astro

    ---
    import { ViewTransitions } from 'astro:transitions';
    ---
    
    <meta charset="utf-8" />
    <title>{Astro.props.title}</title>
    <ViewTransitions />

    With only this change, your app will now route completely in-client. You can then add transitions to individual elements using the transition:animate directive.

    Animations

    Add transition:animate to any element to use Astro's built-in animations.

    <header transition:animate="slide"></header>

    In the above, Astro's slide animation will cause the <header> element to slide out to the left, and then slide in from the right when you navigate away from the page.

    You can also customize these animations using any CSS animation properties, for example, by specifying a duration:

    ---
    import { slide } from 'astro:transition';
    ---
    
    <header transition:animate={slide({ duration: 200 })}></header>

    Continue learning

    Check out the client-side routing docs to learn more.

Patch Changes

  • #7701 019b797bf Thanks @bluwy! - Fix redirects map object-form value validation

  • #7704 d78db48ac Thanks @bluwy! - Fix absolute path handling when passing root, srcDir, publicDir, outDir, cacheDir, build.client, and build.server configs in Windows

  • #7713 d088351f5 Thanks @natemoo-re! - Update warning when getStaticPaths is detected but a route is not prerendered.

@astrojs/[email protected]

Patch Changes

@github-actions github-actions bot added pkg: svelte Related to Svelte (scope) pkg: vue Related to Vue (scope) pkg: example Related to an example package (scope) pkg: integration Related to any renderer integration (scope) pkg: astro Related to the core `astro` package (scope) labels Jul 19, 2023
@github-actions github-actions bot force-pushed the changeset-release/main branch 7 times, most recently from 058e043 to f334e85 Compare July 19, 2023 19:21
@github-actions github-actions bot requested a review from a team as a code owner July 19, 2023 19:21
@github-actions github-actions bot force-pushed the changeset-release/main branch 10 times, most recently from ad813d7 to 29d6647 Compare July 20, 2023 16:06
@github-actions github-actions bot force-pushed the changeset-release/main branch from 29d6647 to a8de735 Compare July 20, 2023 16:09
@matthewp matthewp merged commit 92382ea into main Jul 20, 2023
@matthewp matthewp deleted the changeset-release/main branch July 20, 2023 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope) pkg: example Related to an example package (scope) pkg: integration Related to any renderer integration (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.

2 participants