Skip to content

Releases: withastro/astro

astro@6.0.4

12 Mar 15:15
b16ee32

Choose a tag to compare

Patch Changes

  • #15870 920f10b Thanks @matthewp! - Prebundle astro/toolbar in dev when custom dev toolbar apps are registered, preventing re-optimization reloads that can hide or break the toolbar.

  • #15876 f47ac53 Thanks @ematipico! - Fixes redirectToDefaultLocale producing a protocol-relative URL (//locale) instead of an absolute path (/locale) when base is '/'.

  • #15767 e0042f7 Thanks @matthewp! - Fixes server islands (server:defer) not working when only used in prerendered pages with output: 'server'.

  • #15873 35841ed Thanks @matthewp! - Fix a dev server bug where newly created pages could miss layout-imported CSS until restart.

  • #15874 ce0669d Thanks @ematipico! - Fixes a warning when using prefetchAll

  • #15754 58f1d63 Thanks @rururux! - Fixes a bug where a directory at the project root sharing the same name as a page route would cause the dev server to return a 404 instead of serving the page.

  • #15869 76b3a5e Thanks @matthewp! - Update the unknown file extension error hint to recommend vite.resolve.noExternal, which is the correct Vite 7 config key.

@astrojs/node@10.0.1

12 Mar 15:15
b16ee32

Choose a tag to compare

Patch Changes

  • #15868 bb2b8f5 Thanks @ematipico! - Fixes an issue where the adapter would cause a series of warnings during the build.

@astrojs/netlify@7.0.2

12 Mar 15:15
b16ee32

Choose a tag to compare

Patch Changes

  • #15868 bb2b8f5 Thanks @ematipico! - Fixes an issue where the adapter would cause a series of warnings during the build.

  • Updated dependencies []:

    • @astrojs/underscore-redirects@1.0.1

@astrojs/cloudflare@13.1.1

12 Mar 15:15
b16ee32

Choose a tag to compare

Patch Changes

  • #15815 d1872ee Thanks @matthewp! - Prebundle additional Astro runtime dependencies for Cloudflare development server, speeding up initial start time and preventing required restarts.

  • #15872 3b47b89 Thanks @Princesseuh! - Fixes images not working in dev mode when using the cloudflare option

  • Updated dependencies []:

    • @astrojs/underscore-redirects@1.0.1

astro@6.0.3

11 Mar 17:20
5a77dbc

Choose a tag to compare

Patch Changes

  • #15711 b2bd27b Thanks @OliverSpeir! - Improves Astro core's dev environment handling for prerendered routes by ensuring route/CSS updates and prerender middleware behavior work correctly across both SSR and prerender environments.

    This enables integrations that use Astro's prerender dev environment (such as Cloudflare with prerenderEnvironment: 'node') to get consistent route matching and HMR behavior during development.

  • #15852 1cdaf9f Thanks @ematipico! - Fixes a regression where the the routes emitted by the astro:build:done hook didn't have the distURL array correctly populated.

  • #15765 ca76ff1 Thanks @matthewp! - Hardens server island POST endpoint validation to use own-property checks for improved consistency

@astrojs/cloudflare@13.1.0

11 Mar 17:20
5a77dbc

Choose a tag to compare

Minor Changes

  • #15711 b2bd27b Thanks @OliverSpeir! - Adds a prerenderEnvironment option to the Cloudflare adapter.

    By default, Cloudflare uses its workerd runtime for prerendering static pages. Set prerenderEnvironment to 'node' to use Astro's built-in Node.js prerender environment instead, giving prerendered pages access to the full Node.js ecosystem during both build and dev. This is useful when your prerendered pages depend on Node.js-specific APIs or NPM packages that aren't compatible with workerd.

    // astro.config.mjs
    import cloudflare from '@astrojs/cloudflare';
    import { defineConfig } from 'astro/config';
    
    export default defineConfig({
      adapter: cloudflare({
        prerenderEnvironment: 'node',
      }),
    });

Patch Changes

  • #15845 50fcc8b Thanks @aqiray! - fix: show actionable error when running astro preview without prior build

  • #15794 d1ac58e Thanks @OliverSpeir! - Fixes image serving in passthrough mode by using the Cloudflare ASSETS binding instead of generic fetch, which does not work in Workers for local assets

  • #15850 660da74 Thanks @tristanbes! - fix(cloudflare): forward configPath and other PluginConfig options to the Cloudflare Vite Plugin

    Options like configPath, inspectorPort, persistState, remoteBindings, and auxiliaryWorkers were accepted by the type system but never forwarded to cfVitePlugin(), making them silently ignored.

    Also fixes addWatchFile for configPath which resolved the path relative to the adapter's node_modules directory instead of the project root.

  • #15843 fcd237d Thanks @Calvin-LL! - fix cloudflare image transform ignoring quality parameter

  • Updated dependencies []:

    • @astrojs/underscore-redirects@1.0.1

create-astro@5.0.0

10 Mar 09:49
48e5c4d

Choose a tag to compare

Major Changes

Patch Changes

  • #15187 bbb5811 Thanks @matthewp! - Update to Astro 6 beta

  • #15344 9d87f77 Thanks @matthewp! - Fixes a hang that could occur when the npm registry is slow or unresponsive by adding a 10 second timeout to the version check

  • #15350 d758b68 Thanks @matthewp! - Errors when --add and --no-install flags are used together, as --add requires dependencies to be installed

  • #15264 11efb05 Thanks @florian-lefebvre! - Lower the Node version requirement to allow running on Stackblitz until it supports v22

  • #15419 a18d727 Thanks @ematipico! - Fixes an issue where --add could accept any kind of string, leading to different errors. Now --add accepts only values of valid integrations and adapters.

  • #15419 a18d727 Thanks @ematipico! - Fixes an issue where the add command could accept any arbitrary value, leading the possible command injections. Now add and --add accepts
    values that are only acceptable npmjs.org names.

astro@6.0.2

10 Mar 19:36
a7cc437

Choose a tag to compare

Patch Changes

astro@6.0.1

10 Mar 15:31
a2fff74

Choose a tag to compare

Patch Changes

  • #15827 a4c0d0b Thanks @matthewp! - Fixes astro add so the tsconfig preview shows the actual pending changes before confirmation

astro@6.0.0

10 Mar 09:49
48e5c4d

Choose a tag to compare

Major Changes

Read more