Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jul 18, 2025

Bumps astro from 5.11.2 to 5.12.0.

Release notes

Sourced from astro's releases.

[email protected]

Minor Changes

  • #13971 fe35ee2 Thanks @​adamhl8! - Adds an experimental flag rawEnvValues to disable coercion of import.meta.env values (e.g. converting strings to other data types) that are populated from process.env

    Astro allows you to configure a type-safe schema for your environment variables, and converts variables imported via astro:env into the expected type.

    However, Astro also converts your environment variables used through import.meta.env in some cases, and this can prevent access to some values such as the strings "true" (which is converted to a boolean value), and "1" (which is converted to a number).

    The experimental.rawEnvValues flag disables coercion of import.meta.env values that are populated from process.env, allowing you to use the raw value.

    To enable this feature, add the experimental flag in your Astro config:

    import { defineConfig } from "astro/config"
    export default defineConfig({
    
    experimental: {
    rawEnvValues: true,
    }
    })

If you were relying on this coercion, you may need to update your project code to apply it manually:

- const enabled: boolean = import.meta.env.ENABLED
+ const enabled: boolean = import.meta.env.ENABLED === "true"

See the experimental raw environment variables reference docs for more information.

  • #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: /* ... */
    })
  • ... (truncated)

    Changelog

    Sourced from astro's changelog.

    5.12.0

    Minor Changes

    • #13971 fe35ee2 Thanks @​adamhl8! - Adds an experimental flag rawEnvValues to disable coercion of import.meta.env values (e.g. converting strings to other data types) that are populated from process.env

      Astro allows you to configure a type-safe schema for your environment variables, and converts variables imported via astro:env into the expected type.

      However, Astro also converts your environment variables used through import.meta.env in some cases, and this can prevent access to some values such as the strings "true" (which is converted to a boolean value), and "1" (which is converted to a number).

      The experimental.rawEnvValues flag disables coercion of import.meta.env values that are populated from process.env, allowing you to use the raw value.

      To enable this feature, add the experimental flag in your Astro config:

      import { defineConfig } from "astro/config"
      export default defineConfig({
      
      experimental: {
      rawEnvValues: true,
      }
      })

    If you were relying on this coercion, you may need to update your project code to apply it manually:

    - const enabled: boolean = import.meta.env.ENABLED
    + const enabled: boolean = import.meta.env.ENABLED === "true"

    See the experimental raw environment variables reference docs for more information.

  • #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: /* ... */
  • ... (truncated)

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

    @dependabot dependabot bot requested a review from KianNH July 18, 2025 20:43
    @dependabot dependabot bot requested a review from a team as a code owner July 18, 2025 20:43
    @dependabot @github
    Copy link
    Contributor Author

    dependabot bot commented on behalf of github Jul 18, 2025

    The reviewers field in the dependabot.yml file will be removed soon. Please use the code owners file to specify reviewers for Dependabot PRs. For more information, see this blog post.

    @dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Jul 18, 2025
    @github-actions
    Copy link
    Contributor

    github-actions bot commented Jul 18, 2025

    Bumps [astro](https://github.com/withastro/astro/tree/HEAD/packages/astro) from 5.11.2 to 5.12.0.
    - [Release notes](https://github.com/withastro/astro/releases)
    - [Changelog](https://github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md)
    - [Commits](https://github.com/withastro/astro/commits/[email protected]/packages/astro)
    
    ---
    updated-dependencies:
    - dependency-name: astro
      dependency-version: 5.12.0
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    @dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/astro-5.12.0 branch from e7ea7f1 to f4b5a25 Compare July 20, 2025 08:13
    @KianNH KianNH enabled auto-merge (squash) July 20, 2025 10:06
    @KianNH KianNH merged commit 9bf5ae5 into production Jul 20, 2025
    4 checks passed
    @KianNH KianNH deleted the dependabot/npm_and_yarn/astro-5.12.0 branch July 20, 2025 10:07
    @workers-devprod workers-devprod added the contribution [Holopin] Recognizes a docs contribution, big or small label Jul 20, 2025
    @holopin-bot
    Copy link

    holopin-bot bot commented Jul 20, 2025

    Congratulations @dependabot[bot], the maintainer of this repository has issued you a holobyte! Here it is: https://holopin.io/holobyte/cmdbij8z9362807jxs6b7lfdd

    This badge can only be claimed by you, so make sure that your GitHub account is linked to your Holopin account. You can manage those preferences here: https://holopin.io/account.
    Or if you're new to Holopin, you can simply sign up with GitHub, which will do the trick!

    sdnts pushed a commit to sdnts/cloudflare-docs that referenced this pull request Jul 24, 2025
    Bumps [astro](https://github.com/withastro/astro/tree/HEAD/packages/astro) from 5.11.2 to 5.12.0.
    - [Release notes](https://github.com/withastro/astro/releases)
    - [Changelog](https://github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md)
    - [Commits](https://github.com/withastro/astro/commits/[email protected]/packages/astro)
    
    ---
    updated-dependencies:
    - dependency-name: astro
      dependency-version: 5.12.0
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    thomasgauvin pushed a commit that referenced this pull request Aug 15, 2025
    Bumps [astro](https://github.com/withastro/astro/tree/HEAD/packages/astro) from 5.11.2 to 5.12.0.
    - [Release notes](https://github.com/withastro/astro/releases)
    - [Changelog](https://github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md)
    - [Commits](https://github.com/withastro/astro/commits/[email protected]/packages/astro)
    
    ---
    updated-dependencies:
    - dependency-name: astro
      dependency-version: 5.12.0
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Labels

    contribution [Holopin] Recognizes a docs contribution, big or small dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code size/s

    Projects

    None yet

    Development

    Successfully merging this pull request may close these issues.

    6 participants