Astro: @astrojs/[email protected] Release

Release date:
July 17, 2025
Previous version:
@astrojs/[email protected] (released May 22, 2025)
Magnitude:
10,847 Diff Delta
Contributors:
7 total committers
Data confidence:
Commits:

92 Commits in this Release

Ordered by the degree to which they evolved the repo in this version.

Authored June 4, 2025
Authored June 19, 2025
Authored June 27, 2025
Authored June 9, 2025
Authored June 17, 2025
Authored July 3, 2025
Authored May 29, 2025
Authored July 17, 2025
Authored June 23, 2025
Authored June 4, 2025
Authored July 16, 2025
Authored June 7, 2025
Authored July 1, 2025
Authored June 19, 2025
Authored June 13, 2025
Authored June 19, 2025
Authored June 9, 2025

Top Contributors in @astrojs/[email protected]

ematipico
florian-lefebvre
apatel369
alexanderniebuhr
nanarino
feelixe
sarah11918

Directory Browser for @astrojs/[email protected]

All files are compared to previous version, @astrojs/[email protected]. Click here to browse diffs between other versions.

Loading File Browser...

Release Notes Published

Patch Changes

  • #13941 6bd5f75 Thanks @aditsachde! - Adds support for TOML files to Astro's built-in glob() and file() content loaders.

    In Astro 5.2, Astro added support for using TOML frontmatter in Markdown files instead of YAML. However, if you wanted to use TOML files as local content collection entries themselves, you needed to write your own loader.

    Astro 5.12 now directly supports loading data from TOML files in content collections in both the glob() and the file() loaders.

    If you had added your own TOML content parser for the file() loader, you can now remove it as this functionality is now included:

    // src/content.config.ts
    import { defineCollection } from "astro:content";
    import { file } from "astro/loaders";
    - import { parse as parseToml } from "toml";
    const dogs = defineCollection({
    -  loader: file("src/data/dogs.toml", { parser: (text) => parseToml(text) }),
    + loader: file("src/data/dogs.toml")
      schema: /* ... */
    })
    

    Note that TOML does not support top-level arrays. Instead, the file() loader considers each top-level table to be an independent entry. The table header is populated in the id field of the entry object.

    See Astro's content collections guide for more information on using the built-in content loaders.