Releases: withastro/astro
@astrojs/[email protected]
@astrojs/[email protected]
[email protected]
Patch Changes
-
#7341
491c2db42
Thanks @bholmesdev! - Improve error message for unsupported Zod transforms from the content config. -
#7352
0a8d178c9
Thanks @bholmesdev! - Raise error when multiple content collection entries have the same slug
@astrojs/[email protected]
Patch Changes
-
#7351
a30f2f3de
Thanks @bholmesdev! - Fix cloudflare build errors for a bad "./config" entrypoint and "node:crypto" getting included unexpectedly. -
#7341
491c2db42
Thanks @bholmesdev! - Improve error message for unsupported Zod transforms from the content config.
[email protected]
Patch Changes
- #7326
1430ffb47
Thanks @calebdwilliams! - Ensure create-astro respects package manager registry configuration
[email protected]
Patch Changes
-
#7310
52f0480d1
Thanks @Edo-San! - Fixed a bug that threw an Exception when spreading potentially undefined values as HTML attributes -
#7339
e3271f8c1
Thanks @bholmesdev! - Add readable error message for invalid dynamic routes. -
#7316
e6bff651f
Thanks @bholmesdev! - Fix Zod errors getting flagged as configuration errors -
#7342
bbcf69e7b
Thanks @matthewp! - Fix for experimental redirects in dev mode -
#7326
1430ffb47
Thanks @calebdwilliams! - Fixes issue where Astro doesn't respect custom npm registry settings during project creation
@astrojs/[email protected]
@astrojs/[email protected]
[email protected]
Patch Changes
- #7307
8034edd9e
Thanks @bholmesdev! - Fix [Object AsyncGenerator] appearing in markup for Markdoc documents
[email protected]
Minor Changes
-
#7067
57f8d14c0
Thanks @matthewp! - Experimental redirects supportThis change adds support for the redirects RFC, currently in stage 3: withastro/roadmap#587
Now you can specify redirects in your Astro config:
import { defineConfig } from 'astro/config'; export defineConfig({ redirects: { '/blog/old-post': '/blog/new-post' } });
You can also specify spread routes using the same syntax as in file-based routing:
import { defineConfig } from 'astro/config'; export defineConfig({ redirects: { '/blog/[...slug]': '/articles/[...slug]' } });
By default Astro will build HTML files that contain the
<meta http-equiv="refresh">
tag. Adapters can also support redirect routes and create configuration for real HTTP-level redirects in production. -
#7237
414eb19d2
Thanks @bluwy! - Remove experimental flag for custom client directives -
#7274
b5213654b
Thanks @Princesseuh! - Update basetsconfig.json
template withallowJs: true
to provide a better relaxed experience for users unfamilliar with TypeScript.allowJs
is still set tofalse
(its default value) when using thestrictest
preset. -
#7180
e3b8c6296
Thanks @lilnasy! - The Inline Stylesheets RFC is now stable!You can now control how Astro bundles your css with a configuration change:
export default defineConfig({ ... build: { inlineStylesheets: "auto" } ... })
The options:
inlineStylesheets: "never"
: This is the behavior you are familiar with. Every stylesheet is external, and added to the page via a<link>
tag. Default.inlineStylesheets: "auto"
: Small stylesheets are inlined into<style>
tags and inserted into<head>
, while larger ones remain external.inlineStylesheets: "always"
: Every style required by the page is inlined.
As always, css files in the
public
folder are not affected. -
#7260
39403c32f
Thanks @natemoo-re! - Unflags support foroutput: 'hybrid'
mode, which enables pre-rendering by default. The additionalexperimental.hybridOutput
flag can be safely removed from your configuration. -
#7109
101f03209
Thanks @ematipico! - Remove experimental flag for the middleware
Patch Changes
-
#7296
a7e2b37ff
Thanks @Princesseuh! - Fix HTML component type causing an error when imported in the editor -
#7294
dd1a6b6c9
Thanks @matthewp! - Fix cookies not being set by middleware -
#7197
d72cfa7ca
Thanks @bluwy! - Fix nested astro-island hydration race condition -
#7262
144813f73
Thanks @andremralves! - Fix injected scripts not injected to injected routes -
#7242
890a2bc98
Thanks @JerryWu1234! - remove the white space after the doctype according to the property compressHTML