Astro: [email protected] Release

Release date:
March 4, 2022
Previous version:
[email protected] (released March 4, 2022)
Magnitude:
0 Diff Delta
Contributors:
0 total committers
Data confidence:
Commits:

Top Contributors in [email protected]

Could not determine top contributors for this release.

Directory Browser for [email protected]

We haven't yet finished calculating and confirming the files and directories changed in this release. Please check back soon.

Release Notes Published

Minor Changes

  • #2705 8ce63ee6 Thanks @natemoo-re! - New default build strategy

    This change marks the "static build" as the new default build strategy. If you are unfamiliar with this build strategy check out the migration guide on how to change your code to be compatible with this new bulid strategy.

    If you'd like to keep using the old build strategy, use the flag --legacy-build both in your astro dev and astro build scripts, for ex:

    {
        "scripts": {
            "build": "astro build --legacy-build"
        }
    }
    

    Note that the legacy build is deprecated and will be removed in a future version. You should only use this flag until you have the time to migration your code.

    • Updated <head> and <body> behavior

    Since [email protected], Astro placed certain restrictions on what files could use <head> or <body> tags. In [email protected], the restrictions have been lifted. Astro will be able to correctly handle <head> and <body> tags in any component, not just those in src/pages/ or src/layouts/.

Patch Changes