Major Changes
-
#5782
1f92d64ea
Thanks @Princesseuh! - Remove support for Node 14. Minimum supported Node version is now >=16.12.0 -
#5753
302e0ef8f
Thanks @bluwy! - Default preview host tolocalhost
instead of127.0.0.1
. This allows the static server and integration preview servers to serve under ipv6. -
#5842
c4b0cb8bf
Thanks @natemoo-re! - Breaking Change: client assets are built to an_astro
directory in the build output directory. Previously these were built to various locations, includingassets/
,chunks/
and the root of build output.You can control this location with the new
build
configuration option namedassets
. -
#5825
52209ca2a
Thanks @bholmesdev! - Baseline the experimentalcontentCollections
flag. You're free to remove this from your astro config!import { defineConfig } from 'astro/config'; export default defineConfig({ - experimental: { contentCollections: true } })
Minor Changes
-
#5786
c2180746b
Thanks @bholmesdev! - Move generated content collection types to a.astro
directory. This replaces the previously generatedsrc/content/types.generated.d.ts
file.If you're using Git for version control, we recommend ignoring this generated directory by adding
.astro
to your .gitignore.Astro will also generate the TypeScript reference path to include
.astro
types in your project. This will update your project'ssrc/env.d.ts
file, or write one if none exists. -
#5826
840412128
Thanks @bholmesdev! - Allow Zod objects, unions, discriminated unions, intersections, and transform results as content collection schemas.Migration
Astro requires a
z.object(...)
wrapper on all content collection schemas. Update your content collections config like so:// src/content/config.ts import { z, defineCollection } from 'astro:content'; const blog = defineCollection({ - schema: { + schema: z.object({ ... })
-
#5823
1f49cddf9
Thanks @delucis! - Generate content types when runningastro check
-
#5832
2303f9514
Thanks @HiDeoo! - Add support for serving well-known URIs with the @astrojs/node SSR adapter
Patch Changes
-
#5822
01f3f463b
Thanks @natemoo-re! - Fix edge case with bundle generation by emitting a single chunk for pages -
#5803
ae8a012a7
Thanks @bluwy! - Upgrade compiler and handle breaking changes -
#5840
cf2de5422
Thanks @chenxsan! - Persist CLI flags when restarting the dev server -
#5824
665a2c222
Thanks @bholmesdev! - Better handle content type generation failures:- Generate types when content directory is empty
- Log helpful error when running
astro sync
without a content directory - Avoid swallowing
config.ts
syntax errors from Vite
-
#5829
23dc9ea96
Thanks @giuseppelt! - FixCode.astro
shiki css class replace logic -
#5836
63a6ceb38
Thanks @natemoo-re! - Fix route matching when path includes special characters -
Updated dependencies [
1f92d64ea
,12f65a4d5
,16107b6a1
,c55fbcb8e
,1f92d64ea
,52209ca2a
,7572f7402
]:- @astrojs/[email protected]
- @astrojs/[email protected]
- @astrojs/[email protected]