Skip to content

Releases: withastro/astro

@astrojs/[email protected]

09 Aug 20:34
9cb32e2
Compare
Choose a tag to compare

Patch Changes

[email protected]

07 Aug 21:23
2e36d96
Compare
Choose a tag to compare

Patch Changes

[email protected]

07 Aug 18:53
9509a66
Compare
Choose a tag to compare

Patch Changes

@astrojs/[email protected]

07 Aug 18:53
9509a66
Compare
Choose a tag to compare

Patch Changes

@astrojs/[email protected]

07 Aug 18:53
9509a66
Compare
Choose a tag to compare

Patch Changes

[email protected]

03 Aug 21:48
8226002
Compare
Choose a tag to compare

Patch Changes

[email protected]

03 Aug 19:18
49b3cf4
Compare
Choose a tag to compare

Patch Changes

[email protected]

03 Aug 14:57
39b044e
Compare
Choose a tag to compare

Minor Changes

  • #7861 41afb8405 Thanks @matthewp! - Persistent DOM and Islands in Experimental View Transitions

    With viewTransitions: true enabled in your Astro config's experimental section, pages using the <ViewTransition /> routing component can now access a new transition:persist directive.

    With this directive, you can keep the state of DOM elements and islands on the old page when transitioning to the new page.

    For example, to keep a video playing across page navigation, add transition:persist to the element:

    <video controls="" autoplay="" transition:persist>
      <source
        src="https://ia804502.us.archive.org/33/items/GoldenGa1939_3/GoldenGa1939_3_512kb.mp4"
        type="video/mp4"
      />
    </video>

    This <video> element, with its current state, will be moved over to the next page (if the video also exists on that page).

    Likewise, this feature works with any client-side framework component island. In this example, a counter's state is preserved and moved to the new page:

    <Counter count={5} client:load transition:persist />

    See our View Transitions Guide to learn more on usage.

Patch Changes

@astrojs/[email protected]

03 Aug 14:57
39b044e
Compare
Choose a tag to compare

Minor Changes

Patch Changes

@astrojs/[email protected]

03 Aug 14:57
39b044e
Compare
Choose a tag to compare

Patch Changes