github withastro/astro astro@2.5.6

latest releases: astro@4.11.3, astro@4.11.2, @astrojs/studio@0.1.1...
13 months ago

Patch Changes

  • #7193 8b041bf57 Thanks @ematipico! - Refactor how pages are emitted during the internal bundling. Now each
    page is emitted as a separate entry point.

  • #7218 6c7df28ab Thanks @bluwy! - Fix CSS deduping and missing chunks

  • #7235 ee2aca80a Thanks @MoustaphaDev! - Prioritize dynamic prerendered routes over dynamic server routes

  • #7192 7851f9258 Thanks @ematipico! - Detect mdx files using their full extension

  • #7244 bef3a75db Thanks @bholmesdev! - Remove the auto-generated $entry variable for Markdoc entries. To access frontmatter as a variable, you can pass entry.data as a prop where you render your content:

    ---
    import { getEntry } from 'astro:content';
    
    const entry = await getEntry('docs', 'why-markdoc');
    const { Content } = await entry.render();
    ---
    
    <Content frontmatter={entry.data} />
  • #7204 52af9ad18 Thanks @bluwy! - Add error message if Astro.glob is called outside of an Astro file

  • #7246 f5063d0a0 Thanks @bholmesdev! - Fix content collection build errors for empty collections or underscore files of type .json.

  • #7062 cf621340b Thanks @wulinsheng123! - fix miss a head when the templaterender has a promise

  • #7189 2bda7fb0b Thanks @elevatebart! - fix: add astro-static-slot to the list of inert tags in astro css

  • #7219 af3c5a2e2 Thanks @bluwy! - Use AstroError for Astro.glob errors

  • #7139 f2f18b440 Thanks @Princesseuh! - The src property returned by ESM importing images with astro:assets is now an absolute path, unlocking support for importing images outside the project.

  • Updated dependencies [bf63f615f]:

    • @astrojs/webapi@2.2.0

Don't miss a new astro release

NewReleases is sending notifications on new releases.