github withastro/astro astro@2.9.3

latest releases: astro@4.15.8, @astrojs/mdx@3.1.7, astro@4.15.7...
14 months ago

Patch Changes

  • #7782 0f677c009 Thanks @bluwy! - Refactor Astro rendering to write results directly. This improves the rendering performance for all Astro files.

  • #7786 188eeddd4 Thanks @matthewp! - Execute scripts when navigating to a new page.

    When navigating to an new page with client-side navigation, scripts are executed (and re-executed) so that any new scripts on the incoming page are run and the DOM can be updated.

    However, type=module scripts never re-execute in Astro, and will not do so in client-side routing. To support cases where you want to modify the DOM, a new astro:load event listener been added:

    document.addEventListener('astro:load', () => {
      updateTheDOMSomehow();
    });

Don't miss a new astro release

NewReleases is sending notifications on new releases.