
đż Minor Changes
-
#11197
4b46bd9
Thanks @braebo! - AddsShikiTransformer
support to the<Code />
component with a newtransformers
prop.Note that
transformers
only applies classes and you must provide your own CSS rules to target the elements of your code block.---import { transformerNotationFocus } from '@shikijs/transformers';import { Code } from 'astro:components';const code = `const foo = 'hello'const bar = ' world'console.log(foo + bar) // [!code focus]`;---<Code {code} lang="js" transformers={[transformerNotationFocus()]} /><style is:global>pre.has-focused .line:not(.focused) {filter: blur(1px);}</style> -
#11134
9042be0
Thanks @florian-lefebvre! - Improves the developer experience of the500.astro
file by passing it a newerror
prop.When an error is thrown, the special
src/pages/500.astro
page now automatically receives the error as a prop. This allows you to display more specific information about the error on a custom 500 page.src/pages/500.astro ---interface Props {error: unknown;}const { error } = Astro.props;---<div>{error instanceof Error ? error.message : 'Unknown error'}</div>If an error occurs rendering this page, your hostâs default 500 error page will be shown to your visitor in production, and Astroâs default error overlay will be shown in development.
đ Patch Changes
-
#11280
fd3645f
Thanks @ascorbic! - Fixes a bug that prevented cookies from being set when using experimental rewrites -
#11275
bab700d
Thanks @syhily! - Drop duplicated brackets in data collections schema generation. -
#11272
ea987d7
Thanks @ematipico! - Fixes a case where rewriting/
would cause an issue, whentrailingSlash
was set to"never"
. -
#11272
ea987d7
Thanks @ematipico! - Reverts a logic where it wasnât possible to rewrite/404
in static mode. Itâs now possible again -
#11264
5a9c9a6
Thanks @Fryuni! - Fixes type generation for empty content collections -
#11279
9a08d74
Thanks @ascorbic! - Improves type-checking and error handling to catch case where an image import is passed directly togetImage()
-
#11292
7f8f347
Thanks @jdtjenkins! - Fixes a case wheredefineAction
autocomplete for theaccept
prop would not show"form"
as a possible value -
#11273
cb4d078
Thanks @ascorbic! - Corrects an inconsistency in dev where middleware would run for prerendered 404 routes. Middleware is not run for prerendered 404 routes in production, so this was incorrect. -
#11284
f4b029b
Thanks @ascorbic! - Fixes an issue that would breakAstro.request.url
andAstro.request.headers
inastro dev
if HTTP/2 was enabled.HTTP/2 is now enabled by default in
astro dev
ifhttps
is configured in the Vite config.