chore(deps): update dependency astro to v4.16.17 - autoclosed #41
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "renovate/astro-4.x-lockfile"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
4.11.5
->4.16.17
Release Notes
withastro/astro (astro)
v4.16.17
Compare Source
Patch Changes
e7d14c3
Thanks @ematipico! - Fixes an issue where thecheckOrigin
feature wasn't correctly checking thecontent-type
headerv4.16.16
Compare Source
Patch Changes
#12542
65e50eb
Thanks @kadykov! - Fix JPEG image size determination#12525
cf0d8b0
Thanks @ematipico! - Fixes an issue where withi18n
enabled, Astro couldn't render the404.astro
component for non-existent routes.v4.16.15
Compare Source
Patch Changes
b140a3f
Thanks @ematipico! - Fixes a regression where Astro was trying to accessRequest.headers
v4.16.14
Compare Source
Patch Changes
#12480
c3b7e7c
Thanks @matthewp! - Removes the default throw behavior inastro:env
#12444
28dd3ce
Thanks @ematipico! - Fixes an issue where a server island hydration script might fail case the island ID misses from the DOM.#12476
80a9a52
Thanks @florian-lefebvre! - Fixes a case where the Content Layerglob()
loader would not update when renaming or deleting an entry#12418
25baa4e
Thanks @oliverlynch! - Fix cached image redownloading if it is the first asset#12477
46f6b38
Thanks @ematipico! - Fixes an issue where the SSR build was emitting thedist/server/entry.mjs
file with an incorrect import at the top of the file/#12365
a23985b
Thanks @apatel369! - Fixes an issue whereAstro.currentLocale
was not correctly returning the locale for 404 and 500 pages.v4.16.13
Compare Source
Patch Changes
#12436
453ec6b
Thanks @martrapp! - Fixes a potential null access in the clientside router#12392
0462219
Thanks @apatel369! - Fixes an issue where scripts were not correctly injected during the build. The issue was triggered when there were injected routes with the sameentrypoint
and differentpattern
v4.16.12
Compare Source
Patch Changes
acac0af
Thanks @ematipico! - Fixes an issue where the dev server returns a 404 status code when a user middleware returns a validResponse
.v4.16.11
Compare Source
Patch Changes
#12305
f5f7109
Thanks @florian-lefebvre! - Fixes a case where the error overlay would not escape the message#12402
823e73b
Thanks @ematipico! - Fixes a case where Astro allowed to call an action without usingAstro.callAction
. This is now invalid, and Astro will show a proper error.v4.16.10
Compare Source
Patch Changes
#12311
bf2723e
Thanks @dinesh-58! - Addschecked
to the list of boolean attributes.#12363
222f718
Thanks @Fryuni! - Fixes code generated byastro add
command when adding a version of an integration other than the defaultlatest
.#12368
493fe43
Thanks @bluwy! - Improves error logs when executing commands#12355
c4726d7
Thanks @apatel369! - Improves error reporting for invalid frontmatter in MDX files during theastro build
command. The error message now includes the file path where the frontmatter parsing failed.v4.16.9
Compare Source
Patch Changes
#12333
836cd91
Thanks @imattacus! - Destroy the server response stream if async error is thrown#12358
7680349
Thanks @spacedawwwg! - HonorsinlineAstroConfig
parameter ingetViteConfig
when creating a logger#12353
35795a1
Thanks @hippotastic! - Fixes an issue in dev server watch file handling that could cause multiple restarts for a single file change.#12351
5751488
Thanks @florian-lefebvre! - Reverts a change made in4.16.6
that prevented usage ofastro:env
secrets inside middleware in SSR#12346
20e5a84
Thanks @bluwy! - Fixes sourcemap generation when prefetch is enabled#12349
1fc83d3
Thanks @norskeld! - Fixes thegetImage
options type so it properly extendsImageTransform
v4.16.8
Compare Source
Patch Changes
#12338
9ca89b3
Thanks @situ2001! - ResetsNODE_ENV
to ensure install command run in dev mode#12286
9d6bcdb
Thanks @florian-lefebvre! - Fixes a case where a warning for experimentalastro:env
support would be shown when using an adapter but not actually usingastro:env
#12342
ffc836b
Thanks @liruifengv! - Fixes a typo in the command name of the CLI#12301
0cfc69d
Thanks @apatel369! - Fixes an issue with action handler context by passing the correct context (ActionAPIContext
).#12312
5642ef9
Thanks @koyopro! - Fixes an issue where usinggetViteConfig()
returns incorrect and duplicate configuration#12245
1d4f6a4
Thanks @bmenant! - Addcomponents
property to MDXInstance type definition (RenderResult and module import)#12340
94eaeea
Thanks @ematipico! - Fixes an issue where Astro actions didn't work whenbase
was different from/
v4.16.7
Compare Source
Patch Changes
#12263
e9e8080
Thanks @Fryuni! - Fixes conflict between server islands and on-demand dynamic routes in the form of/[...rest]
or/[paramA]/[paramB]
.#12279
b781f88
Thanks @jsparkdev! - Update wrong error message#12273
c2ee963
Thanks @ascorbic! - Fixes an issue with some package managers where sites would not build if TypeScript was not installed.#12235
a75bc5e
Thanks @ematipico! - Fixes a bug where Astro Actions couldn't redirect to the correct pathname when there was a rewrite involved.#11839
ff522b9
Thanks @icaliman! - Fixes error when returning a top-levelnull
from an Astro file frontmatter#12272
388d237
Thanks @ascorbic! - Correctly handles local images when using a base path in SSRv4.16.6
Compare Source
Patch Changes
#11823
a3d30a6
Thanks @DerTimonius! - fix: improve error message when inferSize is used in local images with the Image component#12227
8b1a641
Thanks @florian-lefebvre! - Fixes a case where environment variables would not be refreshed when usingastro:env
#12239
2b6daa5
Thanks @ematipico! - BREAKING CHANGE to the experimental Container API onlyChanges the default page rendering behavior of Astro components in containers, and adds a new option
partial: false
to render full Astro pages as before.Previously, the Container API was rendering all Astro components as if they were full Astro pages containing
<!DOCTYPE html>
by default. This was not intended, and now by default, all components will render as page partials: only the contents of the components without a page shell.To render the component as a full-fledged Astro page, pass a new option called
partial: false
torenderToString()
andrenderToResponse()
:v4.16.5
Compare Source
Patch Changes
ff68ba5
Thanks @martrapp! - Fixes an issue with cssesc in dev mode when settingvite.ssr.noExternal: true
v4.16.4
Compare Source
Patch Changes
#12223
79ffa5d
Thanks @ArmandPhilippot! - Fixes a false positive reported by the dev toolbar Audit app where a label was considered missing when associated with a buttonThe
button
element can be used with a label (e.g. to create a switch) and should not be reported as an accessibility issue when used as a child of alabel
.#12199
c351352
Thanks @ematipico! - Fixes a regression in the computation ofAstro.currentLocale
#12222
fb55695
Thanks @ematipico! - Fixes an issue where the edge middleware couldn't correctly compute the client IP address when callingctx.clientAddress()
v4.16.3
Compare Source
Patch Changes
#12220
b049359
Thanks @bluwy! - Fixes accidental internalsetOnSetGetEnv
parameter rename that caused runtime errors#12197
2aa2dfd
Thanks @ematipico! - Fix a regression where a port was incorrectly added to theAstro.url
v4.16.2
Compare Source
Patch Changes
12b0022
Thanks @bluwy! - Reverts https://github.com/withastro/astro/pull/12173 which causedCan't modify immutable headers
warnings and 500 errors on Cloudflare Pagesv4.16.1
Compare Source
Patch Changes
#12542
65e50eb
Thanks @kadykov! - Fix JPEG image size determination#12525
cf0d8b0
Thanks @ematipico! - Fixes an issue where withi18n
enabled, Astro couldn't render the404.astro
component for non-existent routes.v4.16.0
Compare Source
Minor Changes
#12039
710a1a1
Thanks @ematipico! - Adds amarkdown.shikiConfig.langAlias
option that allows aliasing a non-supported code language to a known language. This is useful when the language of your code samples is not a built-in Shiki language, but you want your Markdown source to contain an accurate language while also displaying syntax highlighting.The following example configures Shiki to highlight
cjs
code blocks using thejavascript
syntax highlighter:Then in your Markdown, you can use the alias as the language for a code block for syntax highlighting:
#11984
3ac2263
Thanks @chaegumi! - Adds a newbuild.concurreny
configuration option to specify the number of pages to build in parallelIn most cases, you should not change the default value of
1
.Use this option only when other attempts to reduce the overall rendering time (e.g. batch or cache long running tasks like fetch calls or data access) are not possible or are insufficient.
Use this option only if the refactors are not possible. If the number is set too high, the page rendering may slow down due to insufficient memory resources and because JS is single-threaded.
Patch Changes
#12160
c6fd1df
Thanks @louisescher! - Fixes a bug whereastro.config.mts
andastro.config.cts
weren't reloading the dev server upon modifications.#12130
e96bcae
Thanks @thehansys! - Fixes a bug in the parsing ofx-forwarded-\*
Request
headers, where multiple values assigned to those headers were not correctly parsed.Now, headers like
x-forwarded-proto: https,http
are correctly parsed.#12147
9db755a
Thanks @ascorbic! - Skips setting statusMessage header for HTTP/2 responseHTTP/2 doesn't support status message, so setting this was logging a warning.
#12151
bb6d37f
Thanks @ematipico! - Fixes an issue whereAstro.currentLocale
wasn't incorrectly computed when thedefaultLocale
belonged to a custom locale path.Updated dependencies [
710a1a1
]:v4.15.12
Compare Source
Patch Changes
#12121
2490ceb
Thanks @ascorbic! - Support passing the valuesInfinity
and-Infinity
as island props.#12118
f47b347
Thanks @Namchee! - Removes thestrip-ansi
dependency in favor of the native Node API#12126
6e1dfeb
Thanks @ascorbic! - Clear content layer cache when astro version changes#12117
a46839a
Thanks @ArmandPhilippot! - Updates Vite links to use their new domain#12124
499fbc9
Thanks @ascorbic! - Allows special characters in Action names#12123
b8673df
Thanks @Princesseuh! - Fixes missingbody
property on CollectionEntry types for content layer entries#12132
de35daa
Thanks @jcayzac! - Updates thecookie
dependency to avoid the CVE 2024-47764 vulnerability.#12113
a54e520
Thanks @ascorbic! - Adds a helpful error when attempting to render an undefined collection entryv4.15.11
Compare Source
Patch Changes
#12097
11d447f
Thanks @ascorbic! - Fixes error where references in content layer schemas sometimes incorrectly report as missing#12108
918953b
Thanks @lameuler! - Fixes a bug where data URL images were not correctly handled. The bug resulted in anENAMETOOLONG
error.#12105
42037f3
Thanks @ascorbic! - Returns custom statusText that has been set in a Response#12109
ea22558
Thanks @ematipico! - Fixes a regression that was introduced by an internal refactor of how the middleware is loaded by the Astro application. The regression was introduced by #11550.When the edge middleware feature is opted in, Astro removes the middleware function from the SSR manifest, and this wasn't taken into account during the refactor.
#12106
d3a74da
Thanks @ascorbic! - Handles case where an immutable Response object is returned from an endpoint#12090
d49a537
Thanks @markjaquith! - Server islands: changes the server island HTML placeholder comment so that it is much less likely to get removed by HTML minifiers.v4.15.10
Compare Source
Patch Changes
#12084
12dae50
Thanks @Princesseuh! - Adds missing filePath property on content layer entries#12046
d7779df
Thanks @martrapp! - View transitions: Fixes Astro's fade animation to prevent flashing during morph transitions.#12043
1720c5b
Thanks @bluwy! - Fixes injected endpointprerender
option detection#12095
76c5fbd
Thanks @TheOtterlord! - Fix installing non-stable versions of integrations withastro add
v4.15.9
Compare Source
Patch Changes
#12034
5b3ddfa
Thanks @ematipico! - Fixes an issue where the middleware wasn't called when a project uses404.astro
.#12042
243ecb6
Thanks @ematipico! - Fixes a problem in the Container API, where a polyfill wasn't correctly applied. This caused an issue in some environments wherecrypto
isn't supported.#12038
26ea5e8
Thanks @ascorbic! - Resolves image paths in content layer with initial slash as project-relativeWhen using the
image()
schema helper, previously paths with an initial slash were treated as public URLs. This was to match the behavior of markdown images. However this is a change from before, where paths with an initial slash were treated as project-relative. This change restores the previous behavior, so that paths with an initial slash are treated as project-relative.v4.15.8
Compare Source
Patch Changes
#12014
53cb41e
Thanks @ascorbic! - Fixes an issue where component styles were not correctly included in rendered MDX#12031
8c0cae6
Thanks @ematipico! - Fixes a bug where the rewrite vianext(/*..*/)
inside a middleware didn't compute the newAPIContext.params
#12026
40e7a1b
Thanks @bluwy! - Initializes the Markdown processor only when there's.md
files#12028
d3bd673
Thanks @bluwy! - Handles route collision detection only if it matchesgetStaticPaths
#12027
dd3b753
Thanks @fviolette! - Addselected
to the list of boolean attributes#12001
9be3e1b
Thanks @uwej711! - Remove dependency on path-to-regexpv4.15.7
Compare Source
Patch Changes
#12000
a2f8c5d
Thanks @ArmandPhilippot! - Fixes an outdated link used to document Content Layer API#11915
0b59fe7
Thanks @azhirov! - Fix: prevent island from re-rendering when using transition:persist (#11854)v4.15.6
Compare Source
Patch Changes
#11993
ffba5d7
Thanks @matthewp! - Fix getStaticPaths regressionThis reverts a previous change meant to remove a dependency, to fix a regression with multiple nested spread routes.
#11964
06eff60
Thanks @TheOtterlord! - Add wayland (wl-copy) support toastro info
v4.15.5
Compare Source
Patch Changes
#11939
7b09c62
Thanks @bholmesdev! - Adds support for Zod discriminated unions on Action form inputs. This allows forms with different inputs to be submitted to the same action, using a given input to decide which object should be used for validation.This example accepts either a
create
orupdate
form submission, and uses thetype
field to determine which object to validate against.The corresponding
create
andupdate
forms may look like this:v4.15.4
Compare Source
Patch Changes
#11879
bd1d4aa
Thanks @matthewp! - Allow passing a cryptography key via ASTRO_KEYFor Server islands Astro creates a cryptography key in order to hash props for the islands, preventing accidental leakage of secrets.
If you deploy to an environment with rolling updates then there could be multiple instances of your app with different keys, causing potential key mismatches.
To fix this you can now pass the
ASTRO_KEY
environment variable to your build in order to reuse the same key.To generate a key use:
This will print out an environment variable to set like:
#11935
c58193a
Thanks @Princesseuh! - Fixesastro add
not using the proper export point when adding certain adaptersv4.15.3
Compare Source
Patch Changes
#11902
d63bc50
Thanks @ascorbic! - Fixes case where content layer did not update during clean dev builds on Linux and Windows#11886
7ff7134
Thanks @matthewp! - Fixes a missing error message when actions throws duringastro sync
#11904
ca54e3f
Thanks @wtchnm! - perf(assets): avoid downloading original image when using cachev4.15.2
Compare Source
Patch Changes
#11870
8e5257a
Thanks @ArmandPhilippot! - Fixes typo in documenting thefallbackType
property in i18n routing#11884
e450704
Thanks @ascorbic! - Correctly handles content layer data where the transformed value does not match the input schema#11900
80b4a18
Thanks @delucis! - Fixes the user-facing type of the newi18n.routing.fallbackType
option to be optionalv4.15.1
Compare Source
Patch Changes
#12121
2490ceb
Thanks @ascorbic! - Support passing the valuesInfinity
and-Infinity
as island props.#12118
f47b347
Thanks @Namchee! - Removes thestrip-ansi
dependency in favor of the native Node API#12126
6e1dfeb
Thanks @ascorbic! - Clear content layer cache when astro version changes#12117
a46839a
Thanks @ArmandPhilippot! - Updates Vite links to use their new domain#12124
499fbc9
Thanks @ascorbic! - Allows special characters in Action names#12123
b8673df
Thanks @Princesseuh! - Fixes missingbody
property on CollectionEntry types for content layer entries#12132
de35daa
Thanks @jcayzac! - Updates thecookie
dependency to avoid the CVE 2024-47764 vulnerability.#12113
a54e520
Thanks @ascorbic! - Adds a helpful error when attempting to render an undefined collection entryv4.15.0
Compare Source
Minor Changes
#11729
1c54e63
Thanks @ematipico! - Adds a new variantsync
for theastro:config:setup
hook'scommand
property. This value is set when calling the commandastro sync
.If your integration previously relied on knowing how many variants existed for the
command
property, you must update your logic to account for this new option.#11743
cce0894
Thanks @ph1p! - Adds a new, optional propertytimeout
for theclient:idle
directive.This value allows you to specify a maximum time to wait, in milliseconds, before hydrating a UI framework component, even if the page is not yet done with its initial load. This means you can delay hydration for lower-priority UI elements with more control to ensure your element is interactive within a specified time frame.
#11677
cb356a5
Thanks @ematipico! - Adds a new optionfallbackType
toi18n.routing
configuration that allows you to control how fallback pages are handled.When
i18n.fallback
is configured, this new routing option controls whether to redirect to the fallback page, or to rewrite the fallback page's content in place.The
"redirect"
option is the default value and matches the current behavior of the existing fallback system.The option
"rewrite"
uses the new rewriting system to create fallback pages that render content on the original, requested URL without a browser refresh.For example, the following configuration will generate a page
/fr/index.html
that will contain the same HTML rendered by the page/en/index.html
whensrc/pages/fr/index.astro
does not exist.#11708
62b0d20
Thanks @martrapp! - Adds a new objectswapFunctions
to expose the necessary utility functions onastro:transitions/client
that allow you to build custom swap functions to be used with view transitions.The example below uses these functions to replace Astro's built-in default
swap
function with one that only swaps the<main>
part of the page:See the view transitions guide for more information about hooking into the
astro:before-swap
lifecycle event and adding a custom swap implementation.#11843
5b4070e
Thanks @bholmesdev! - Exposesz
from the newastro:schema
module. This is the new recommended import source for all Zod utilities when using Astro Actions.v4.14.6
Compare Source
Patch Changes
#11847
45b599c
Thanks @ascorbic! - Fixes a case where Vite would be imported by the SSR runtime, causing bundling errors and bloat.#11822
6fcaab8
Thanks @bluwy! - Marks internalvite-plugin-fileurl
plugin withenforce: 'pre'
#11713
497324c
Thanks @voidfill! - Prevents prefetching of the same urls with different hashes.#11814
2bb72c6
Thanks @eduardocereto! - Updates the documentation for experimental Content Layer API with a corrected code example#11842
1ffaae0
Thanks @stephan281094! - Fixes a typo in theMissingImageDimension
error message#11828
20d47aa
Thanks @bholmesdev! - Improves error message when invalid data is returned by an Action.v4.14.5
Compare Source
Patch Changes
#11809
62e97a2
Thanks @bholmesdev! - Fixes usage of.transform()
,.refine()
,.passthrough()
, and other effects on Action form inputs.#11812
260c4be
Thanks @bholmesdev! - ExposesActionAPIContext
type from theastro:actions
module.#11813
3f7630a
Thanks @bholmesdev! - Fixes unexpectedundefined
value when calling an action from the client without a return value.v4.14.4
Compare Source
Patch Changes
#11794
3691a62
Thanks @bholmesdev! - Fixes unexpected warning log when using Actions on "hybrid" rendered projects.#11801
9f943c1
Thanks @delucis! - Fixes a bug where thefilePath
property was not available on content collection entries when using the content layerfile()
loader with a JSON file that contained an object instead of an array. This was breaking use of theimage()
schema utility among other things.v4.14.3
Compare Source
Patch Changes
#11780
c6622ad
Thanks @Princesseuh! - Deprecates the Squoosh image service, to be removed in Astro 5.0. We recommend migrating to the default Sharp service.#11790
41c3fcb
Thanks @sarah11918! - Updates the documentation for experimentalastro:env
with a corrected link to the RFC proposal#11773
86a3391
Thanks @ematipico! - Changes messages logged when using unsupported, deprecated, or experimental adapter features for clarity#11745
89bab1e
Thanks @bluwy! - Prints prerender dynamic value usage warning only if it's used#11774
c6400ab
Thanks @florian-lefebvre! - Fixes the path returned byinjectTypes
#11730
2df49a6
Thanks @florian-lefebvre! - Simplifies path operations ofastro sync
#11771
49650a4
Thanks @florian-lefebvre! - Fixes an error thrown byastro sync
when anastro:env
virtual module is imported inside the Content Collections config#11744
b677429
Thanks @bluwy! - Disables the WebSocket server when creating a Vite server for loading config filesv4.14.2
Compare Source
Patch Changes
391324d
Thanks @bluwy! - Reverts back toyargs-parser
package for CLI argument parsingv4.14.1
Compare Source
Patch Changes
#11725
6c1560f
Thanks @ascorbic! - Prevents content layer importing node builtins in runtime#11692
35af73a
Thanks @matthewp! - Prevent errant HTML from crashing server islandsWhen an HTML minifier strips away the server island comment, the script can't correctly know where the end of the fallback content is. This makes it so that it simply doesn't remove any DOM in that scenario. This means the fallback isn't removed, but it also doesn't crash the browser.
#11727
3c2f93b
Thanks @florian-lefebvre! - Fixes a type issue when using the Content Layer in devv4.14.0
Compare Source
Minor Changes
#11657
a23c69d
Thanks @bluwy! - Deprecates the option for route-generating files to export a dynamic value forprerender
. Only static values are now supported (e.g.export const prerender = true
or= false
). This allows for better treeshaking and bundling configuration in the future.Adds a new
"astro:route:setup"
hook to the Integrations API to allow you to dynamically set options for a route at build or request time through an integration, such as enabling on-demand server rendering.To migrate from a dynamic export to the new hook, update or remove any dynamic
prerender
exports from individual routing files:Instead, create an integration with the
"astro:route:setup"
hook and update the route'sprerender
option:#11360
a79a8b0
Thanks @ascorbic! - Adds a newinjectTypes()
utility to the Integration API and refactors how type generation worksUse
injectTypes()
in theastro:config:done
hook to inject types into your user's project by adding a new a*.d.ts
file.The
filename
property will be used to generate a file at/.astro/integrations/<normalized_integration_name>/<normalized_filename>.d.ts
and must end with".d.ts"
.The
content
property will create the body of the file, and must be valid TypeScript.Additionally,
injectTypes()
returns a URL to the normalized path so you can overwrite its content later on, or manipulate it in any way you want.Codegen has been refactored. Although
src/env.d.ts
will continue to work as is, we recommend you update it:#11605
d3d99fb
Thanks @jcayzac! - Adds a new propertymeta
to Astro's built-in<Code />
component.This allows you to provide a value for Shiki's
meta
attribute to pass options to transformers.The following example passes an option to highlight lines 1 and 3 to Shiki's
tranformerMetaHighlight
:v4.13.4
Compare Source
Patch Changes
#11678
34da907
Thanks @ematipico! - Fixes a case where omitting a semicolon and line ending with carriage return - CRLF - in theprerender
option could throw an error.#11535
932bd2e
Thanks @matthewp! - Encrypt server island propsServer island props are now encrypted with a key generated at build-time. This is intended to prevent accidentally leaking secrets caused by exposing secrets through prop-passing. This is not intended to allow a server island to be trusted to skip authentication, or to protect against any other vulnerabilities other than secret leakage.
See the RFC for an explanation: https://github.com/withastro/roadmap/blob/server-islands/proposals/server-islands.md#props-serialization
#11655
dc0a297
Thanks @billy-le! - Fixes Astro Actionsinput
validation when usingdefault
values with a form input.#11689
c7bda4c
Thanks @ematipico! - Fixes an issue in the Astro actions, where the size of the generated cookie was exceeding the size permitted by theSet-Cookie
header.v4.13.3
Compare Source
Patch Changes
#11653
32be549
Thanks @florian-lefebvre! - Updatesastro:env
docs to reflect current developments and usage guidance#11658
13b912a
Thanks @bholmesdev! - FixesorThrow()
type when calling an Action without aninput
validator.#11603
f31d466
Thanks @bholmesdev! - Improves user experience when render an Action result from a form POST request:?_astroAction=NAME
flag when a result is rendered.Also improves the DX of directing to a new route on success. Actions will now redirect to the route specified in your
action
string on success, and redirect back to the previous page on error. This follows the routing convention of established backend frameworks like Laravel.For example, say you want to redirect to a
/success
route whenactions.signup
succeeds. You can add/success
to youraction
string like so:/success
.You can retrieve the action result from either page using the
Astro.getActionResult()
function.Note on security
This uses a temporary cookie to forward the action result to the next page. The cookie will be deleted when that page is rendered.
⚠ The action result is not encrypted. In general, we recommend returning minimal data from an action handler to a) avoid leaking sensitive information, and b) avoid unexpected render issues once the temporary cookie is deleted. For example, a
login
function may return a user's session id to retrieve from your Astro frontmatter, rather than the entire user object.v4.13.2
Compare Source
Patch Changes
#11648
589d351
Thanks @bholmesdev! - Fixes unexpected error when refreshing a POST request from a form using Actions.#11600
09ec2ca
Thanks @ArmandPhilippot! - DeprecatesgetEntryBySlug
andgetDataEntryById
functions exported byastro:content
in favor ofgetEntry
.#11593
81d7150
Thanks @bholmesdev! - Adds support forDate()
,Map()
, andSet()
from action results. See devalue for a complete list of supported values.Also fixes serialization exceptions when deploying Actions with edge middleware on Netlify and Vercel.
#11617
196092a
Thanks @abubakriz! - Fix toolbar audit incorrectly flagging images as above the fold.#11634
2716f52
Thanks @bholmesdev! - Fixes internal server error when calling an Astro Action without arguments on Vercel.#11628
9aaf58c
Thanks @madbook! - Ensures consistent CSS chunk hashes across different environmentsv4.13.1
Compare Source
Patch Changes
#11584
a65ffe3
Thanks @bholmesdev! - Removes async local storage dependency from Astro Actions. This allows Actions to run in Cloudflare and Stackblitz without opt-in flags or other configuration.This also introduces a new convention for calling actions from server code. Instead of calling actions directly, you must wrap function calls with the new
Astro.callAction()
utility.v4.13.0
Compare Source
Minor Changes
#11507
a62345f
Thanks @ematipico! - Adds color-coding to the console output during the build to highlight slow pages.Pages that take more than 500 milliseconds to render will have their build time logged in red. This change can help you discover pages of your site that are not performant and may need attention.
#11379
e5e2d3e
Thanks @alexanderniebuhr! - Theexperimental.contentCollectionJsonSchema
feature introduced behind a flag in v4.5.0 is no longer experimental and is available for general use.If you are working with collections of type
data
, Astro will now auto-generate JSON schema files for your editor to get IntelliSense and type-checking. A separate file will be created for each data collection in your project based on your collections defined insrc/content/config.ts
using a library calledzod-to-json-schema
.This feature requires you to manually set your schema's file path as the value for
$schema
in each data entry file of the collection:Alternatively, you can set this value in your editor settings. For example, to set this value in VSCode's
json.schemas
setting, provide the path of files to match and the location of your JSON schema:If you were previously using this feature, please remove the experimental flag from your Astro config:
If you have been waiting for stabilization before using JSON Schema generation for content collections, you can now do so.
Please see the content collections guide for more about this feature.
#11542
45ad326
Thanks @ematipico! - Theexperimental.rewriting
feature introduced behind a flag in v4.8.0 is no longer experimental and is available for general use.Astro.rewrite()
andcontext.rewrite()
allow you to render a different page without changing the URL in the browser. Unlike using a redirect, your visitor is kept on the original page they visited.Rewrites can be useful for showing the same content at multiple paths (e.g. /products/shoes/men/ and /products/men/shoes/) without needing to maintain two identical source files.
Rewrites are supported in Astro pages, endpoints, and middleware.
Return
Astro.rewrite()
in the frontmatter of a.astro
page component to display a different page's content, such as fallback localized content:v4.12.3
Compare Source
Patch Changes
#11509
dfbca06
Thanks @bluwy! - Excludes hoisted scripts and styles from Astro components imported with?url
or?raw
#11561
904f1e5
Thanks @ArmandPhilippot! - Uses the correct pageSize default inpage.size
JSDoc comment#11571
1c3265a
Thanks @bholmesdev! - BREAKING CHANGE to the experimental Actions API only. Install the latest@astrojs/react
integration as well if you're using React 19 features.Make
.safe()
the default return value for actions. This means{ data, error }
will be returned when calling an action directly. If you prefer to get the data while allowing errors to throw, chain the.orThrow()
modifier.v4.12.2
Compare Source
Patch Changes
#11505
8ff7658
Thanks @ematipico! - Enhances the dev server logging when rewrites occur during the lifecycle or rendering.The dev server will log the status code before and after a rewrite:
#11506
026e8ba
Thanks @sarah11918! - Fixes typo in documenting theslot="fallback"
attribute for Server Islands experimental feature.#11508
ca335e1
Thanks @cramforce! - Escapes HTML in serialized props#11501
4db78ae
Thanks @martrapp! - Adds the missing export for accessing thegetFallback()
function of the client site router.v4.12.1
Compare Source
Patch Changes
#11486
9c0c849
Thanks @ematipico! - Adds a new function calledaddClientRenderer
to the Container API.This function should be used when rendering components using the
client:*
directives. TheaddClientRenderer
API must be usedafter the use of the
addServerRenderer
:#11500
4e142d3
Thanks @Princesseuh! - Fixes inferRemoteSize type not working#11496
53ccd20
Thanks @alfawal! - Hide the dev toolbar onwindow.print()
(CTRL + P)v4.12.0
Compare Source
Minor Changes
#11341
49b5145
Thanks @madcampos! - Adds support for Shiki'sdefaultColor
option.This option allows you to override the values of a theme's inline style, adding only CSS variables to give you more flexibility in applying multiple color themes.
Configure
defaultColor: false
in your Shiki config to apply throughout your site, or pass to Astro's built-in<Code>
component to style an individual code block.v4.11.6
Compare Source
Patch Changes
#11459
bc2e74d
Thanks @mingjunlu! - Fixes false positive audit warnings on elements with the role "tabpanel".#11472
cb4e6d0
Thanks @delucis! - Avoids targeting all files in thesrc/
directory for eager optimization by Vite. After this change, only JSX, Vue, Svelte, and Astro components get scanned for early optimization.#11387
b498461
Thanks @bluwy! - Fixes prerendering not removing unused dynamic imported chunks#11437
6ccb30e
Thanks @NuroDev! - Fixes a case where Astro's configexperimental.env.schema
keys did not allow numbers. Numbers are still not allowed as the first character to be able to generate valid JavaScript identifiers#11439
08baf56
Thanks @bholmesdev! - Expands theisInputError()
utility fromastro:actions
to accept errors of any type. This should now allow type narrowing from a try / catch block.#11452
0e66849
Thanks @FugiTech! - Fixes an issue where using .nullish() in a formdata Astro action would always parse as a string#11438
619f07d
Thanks @bholmesdev! - Exposes utility types fromastro:actions
for thedefineAction
handler (ActionHandler
) and theActionError
code (ActionErrorCode
).#11456
17e048d
Thanks @RickyC0626! - Fixesastro dev --open
unexpected behavior that spawns a new tab every time a config file is saved#11337
0a4b31f
Thanks @florian-lefebvre! - Adds a new propertyexperimental.env.validateSecrets
to allow validating private variables on the server.By default, this is set to
false
and only public variables are checked on start. If enabled, secrets will also be checked on start (dev/build modes). This is useful for example in some CIs to make sure all your secrets are correctly set before deploying.#11443
ea4bc04
Thanks @bholmesdev! - Expose newActionReturnType
utility fromastro:actions
. This infers the return type of an action by passingtypeof actions.name
as a type argument. This example defines alike
action that returnslikes
as an object:In your client code, you can infer this handler return value with
ActionReturnType
:#11436
7dca68f
Thanks @bholmesdev! - Fixesastro:actions
autocompletion for thedefineAction
accept
property#11455
645e128
Thanks @florian-lefebvre! - Improvesastro:env
invalid variables errorsConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.
d7aba82325
to5e1497b7f4
5e1497b7f4
to4095c30dd2
4095c30dd2
todb42745d58
chore(deps): update dependency astro to v4.11.6to chore(deps): update dependency astro to v4.12.0db42745d58
to418e579b98
chore(deps): update dependency astro to v4.12.0to chore(deps): update dependency astro to v4.12.1418e579b98
to6d41673f8a
6d41673f8a
tod5af6d9cd7
chore(deps): update dependency astro to v4.12.1to chore(deps): update dependency astro to v4.12.2d5af6d9cd7
tob2161c723e
b2161c723e
to622366e60d
622366e60d
to4f12b2cf10
4f12b2cf10
to3847fca282
3847fca282
toef0e579fac
ef0e579fac
tobc375b7fcf
bc375b7fcf
to75f1e63d95
75f1e63d95
to20fd9830b0
20fd9830b0
tobb890bb36a
bb890bb36a
tode42d94a71
de42d94a71
to3d49529f31
3d49529f31
to3129ba6b79
3129ba6b79
todd8d8e51f0
dd8d8e51f0
toc0ce374631
c0ce374631
to80e72c3321
80e72c3321
to3f856ea36d
3f856ea36d
to39f5f7b377
39f5f7b377
to4610e30cab
4610e30cab
tob40aecf10b
chore(deps): update dependency astro to v4.12.2to chore(deps): update dependency astro to v4.12.3b40aecf10b
tocd12d610c5
cd12d610c5
toafd11ff7c9
afd11ff7c9
tof97b8aec58
f97b8aec58
to5b851e3d91
5b851e3d91
toa7521f7104
a7521f7104
to213eae844f
chore(deps): update dependency astro to v4.12.3to chore(deps): update dependency astro to v4.13.0213eae844f
to50aa7a4811
50aa7a4811
tod9964d3e89
d9964d3e89
to41fcc14f9e
chore(deps): update dependency astro to v4.13.0to chore(deps): update dependency astro to v4.13.141fcc14f9e
to6d924c64e6
6d924c64e6
toe831700f2b
e831700f2b
to2f942554d9
2f942554d9
toc4456303eb
c4456303eb
to923a3373f5
923a3373f5
to686405167d
686405167d
to2d1291c4eb
2d1291c4eb
tod68dabb1ca
chore(deps): update dependency astro to v4.13.1to chore(deps): update dependency astro to v4.13.2d68dabb1ca
toae9d376dd1
chore(deps): update dependency astro to v4.13.2to chore(deps): update dependency astro to v4.13.3ae9d376dd1
to3937ac90b8
3937ac90b8
to584f65b4d4
chore(deps): update dependency astro to v4.13.3to chore(deps): update dependency astro to v4.13.4584f65b4d4
to7e31c3a523
7e31c3a523
to05a0e12db4
05a0e12db4
toffcad78c1c
chore(deps): update dependency astro to v4.13.4to chore(deps): update dependency astro to v4.14.0ffcad78c1c
tofec61e8938
fec61e8938
to8773c214da
chore(deps): update dependency astro to v4.14.0to chore(deps): update dependency astro to v4.14.18773c214da
to6dc7085a29
chore(deps): update dependency astro to v4.14.1to chore(deps): update dependency astro to v4.14.26dc7085a29
to4bf1af98b4
4bf1af98b4
to9597df4312
9597df4312
to7a9438282c
7a9438282c
to6d6b010d6d
6d6b010d6d
tof0932e4223
f0932e4223
to12f2974e9d
12f2974e9d
to685b0287b0
685b0287b0
to44c9c0424d
chore(deps): update dependency astro to v4.14.2to chore(deps): update dependency astro to v4.14.344c9c0424d
to20623c4c15
20623c4c15
to79218470b8
chore(deps): update dependency astro to v4.14.3to chore(deps): update dependency astro to v4.14.479218470b8
to7260f3fef1
7260f3fef1
to8ffdd7923a
chore(deps): update dependency astro to v4.14.4to chore(deps): update dependency astro to v4.14.58ffdd7923a
to20b5a90f29
20b5a90f29
tocaab2144ab
caab2144ab
tod0f5f640dd
d0f5f640dd
to8e6c3c75c6
8e6c3c75c6
to5599db0814
5599db0814
to39215512ed
39215512ed
to66f7913950
chore(deps): update dependency astro to v4.14.5to chore(deps): update dependency astro to v4.14.666f7913950
toec8fe9071a
ec8fe9071a
to1457e8b5d8
chore(deps): update dependency astro to v4.14.6to chore(deps): update dependency astro to v4.15.01457e8b5d8
toeec66bb422
chore(deps): update dependency astro to v4.15.0to chore(deps): update dependency astro to v4.15.1eec66bb422
to50d93f035b
50d93f035b
toa65d81402b
a65d81402b
to129d249c3a
129d249c3a
to14d6d7da30
14d6d7da30
tof79afe5744
f79afe5744
to14996993f1
14996993f1
to1ef992f56a
1ef992f56a
to25d78e2d09
25d78e2d09
todf3e65d747
df3e65d747
to8c26803775
8c26803775
toc523b5478f
c523b5478f
to964d83fc45
964d83fc45
toda5310145a
chore(deps): update dependency astro to v4.15.1to chore(deps): update dependency astro to v4.15.2da5310145a
to355ccf64bd
355ccf64bd
to05d7b7cd60
05d7b7cd60
to9022c0e8e0
9022c0e8e0
to76ca2b896b
chore(deps): update dependency astro to v4.15.2to chore(deps): update dependency astro to v4.15.376ca2b896b
toa9600c1f34
a9600c1f34
toe6673944c9
e6673944c9
toc98c7e0423
c98c7e0423
to0e166cba31
0e166cba31
toff4fdd81dc
ff4fdd81dc
to080610c6d3
080610c6d3
to167f8a5792
167f8a5792
to20e6a0eed8
chore(deps): update dependency astro to v4.15.3to chore(deps): update dependency astro to v4.15.420e6a0eed8
to6a966cc085
6a966cc085
to02b8fff273
02b8fff273
to67eecebee7
67eecebee7
to1c11f6e5a6
1c11f6e5a6
toed98092062
ed98092062
to2b5047d6e9
2b5047d6e9
toefc49bc3de
efc49bc3de
to193343923e
193343923e
to55d2cf26fe
55d2cf26fe
to22f902397e
22f902397e
to172189a992
172189a992
to28c255dfd5
28c255dfd5
to6c5e7e3054
6c5e7e3054
to3b9b9f6e70
3b9b9f6e70
toef4791e68d
ef4791e68d
toab495b7996
ab495b7996
toe412cc9b3e
e412cc9b3e
toc2116ee928
chore(deps): update dependency astro to v4.15.4to chore(deps): update dependency astro to v4.15.5c2116ee928
to09ff024443
09ff024443
tob3f79eafe9
chore(deps): update dependency astro to v4.15.5to chore(deps): update dependency astro to v4.15.6b3f79eafe9
to9433175447
9433175447
to802c20dc8d
802c20dc8d
to6eab03cc8a
6eab03cc8a
tof36bce08b3
f36bce08b3
to42a38e3fbc
42a38e3fbc
tof7d14d5a27
f7d14d5a27
tod7f773f787
d7f773f787
toc1324f4e77
chore(deps): update dependency astro to v4.15.6to chore(deps): update dependency astro to v4.15.7c1324f4e77
to5af2b50df3
5af2b50df3
toeb9288cbf0
eb9288cbf0
tob8570e9113
b8570e9113
tod2883ca7ee
chore(deps): update dependency astro to v4.15.7to chore(deps): update dependency astro to v4.15.8d2883ca7ee
to0ff47b46c1
0ff47b46c1
to9a223e8c6c
9a223e8c6c
to5b67bc5662
5b67bc5662
to4c84c84e46
4c84c84e46
to4fd12d4506
4fd12d4506
to6b7c44725d
6b7c44725d
to8a8af74c17
8a8af74c17
to90e8c1f559
90e8c1f559
to4697b3e039
4697b3e039
to28d61f42e0
chore(deps): update dependency astro to v4.15.8to chore(deps): update dependency astro to v4.15.928d61f42e0
to688b6179aa
688b6179aa
to174fda9858
174fda9858
to14a25375f7
14a25375f7
toe781459991
e781459991
tod6202d778a
d6202d778a
to29c1082751
29c1082751
tof7585ca577
f7585ca577
toebd410d876
ebd410d876
toe4959e27cf
e4959e27cf
tof2f5e82010
f2f5e82010
to46f7dd6067
46f7dd6067
tofc7d0f7464
fc7d0f7464
to2313ff3b05
2313ff3b05
to65ca514a83
65ca514a83
to840adf9149
chore(deps): update dependency astro to v4.15.9to chore(deps): update dependency astro to v4.15.10840adf9149
toe9701a14d6
e9701a14d6
to54d706a8e6
54d706a8e6
to0c9b19aa51
0c9b19aa51
to43f77e7f57
43f77e7f57
tocd4060fb1a
chore(deps): update dependency astro to v4.15.10to chore(deps): update dependency astro to v4.15.11cd4060fb1a
to5790f54a80
5790f54a80
tob7af94dce7
b7af94dce7
to2b930356c5
2b930356c5
to548741c09d
548741c09d
to4c9aa870df
chore(deps): update dependency astro to v4.15.11to chore(deps): update dependency astro to v4.15.124c9aa870df
tocd26d43c1b
cd26d43c1b
to30608d43cc
30608d43cc
to0a4569872d
0a4569872d
to5fc5ee4d00
5fc5ee4d00
tof905eba2a1
f905eba2a1
tob7dab243b8
b7dab243b8
toaeff6841c9
chore(deps): update dependency astro to v4.15.12to chore(deps): update dependency astro to v4.16.0aeff6841c9
to22cffd728e
22cffd728e
to70a9164073
70a9164073
to04a69b2f45
04a69b2f45
to74a0529b1c
chore(deps): update dependency astro to v4.16.0to chore(deps): update dependency astro to v4.16.174a0529b1c
tode393bdafe
chore(deps): update dependency astro to v4.16.1to chore(deps): update dependency astro to v4.16.2de393bdafe
to9baea7f2f0
chore(deps): update dependency astro to v4.16.2to chore(deps): update dependency astro to v4.16.39baea7f2f0
to7da5bc595f
7da5bc595f
to3396e8e359
3396e8e359
to8cad25eb91
8cad25eb91
toeaaa56f887
eaaa56f887
toe88f69b8dd
chore(deps): update dependency astro to v4.16.3to chore(deps): update dependency astro to v4.16.4e88f69b8dd
tobece419e3b
chore(deps): update dependency astro to v4.16.4to chore(deps): update dependency astro to v4.16.5bece419e3b
to44d9a39e96
44d9a39e96
tof5f871bc3d
f5f871bc3d
to5db7128818
5db7128818
to0024cb48f2
0024cb48f2
to3f1908eda6
3f1908eda6
to2f492e5f13
2f492e5f13
toe36239bdde
chore(deps): update dependency astro to v4.16.5to chore(deps): update dependency astro to v4.16.6e36239bdde
to385f7ee98f
385f7ee98f
to18a6ddb67b
18a6ddb67b
to4f9037c7ee
4f9037c7ee
to13ba7a48f4
13ba7a48f4
tobccb2e3311
chore(deps): update dependency astro to v4.16.6to chore(deps): update dependency astro to v4.16.7bccb2e3311
to519a1e0dd3
519a1e0dd3
to16b732852b
16b732852b
to2ecad20ef6
2ecad20ef6
tobcdd990c11
bcdd990c11
to5b6eb23720
5b6eb23720
to533cad9478
533cad9478
toaaea195c4b
aaea195c4b
to9986d83448
9986d83448
to87f2d12fcc
87f2d12fcc
to1184cdb970
1184cdb970
toecd25a02c6
ecd25a02c6
to5f198a8a9b
5f198a8a9b
to268ac6066a
268ac6066a
to86fa70e7b5
86fa70e7b5
to0de0bf6899
0de0bf6899
to5612196c71
5612196c71
tobd172ce23f
bd172ce23f
to0c13ed80c0
0c13ed80c0
to67a74b5166
67a74b5166
to9140e84b91
9140e84b91
to04d11b2d35
04d11b2d35
toe8f3bac8b4
e8f3bac8b4
to23fb2dd66c
23fb2dd66c
tob4bce826ab
b4bce826ab
to3c42f2c3e0
3c42f2c3e0
tobd475fbf89
bd475fbf89
to7775f087f1
7775f087f1
to606c9748a0
606c9748a0
to985947ec86
chore(deps): update dependency astro to v4.16.7to chore(deps): update dependency astro to v4.16.8985947ec86
toa8c958f5be
a8c958f5be
toe6656298aa
e6656298aa
toeed3d647e0
eed3d647e0
to4b975dc31f
chore(deps): update dependency astro to v4.16.8to chore(deps): update dependency astro to v4.16.94b975dc31f
to62ea39ebe8
62ea39ebe8
to4e086215cd
4e086215cd
to692d1730a7
692d1730a7
to581794a04b
chore(deps): update dependency astro to v4.16.9to chore(deps): update dependency astro to v4.16.10581794a04b
to51147882d8
51147882d8
toea6b0b6131
ea6b0b6131
to1eb59b3132
1eb59b3132
toa890232f16
a890232f16
to562eedb4a0
562eedb4a0
toc9f0ad5cc8
c9f0ad5cc8
to4c2273681c
4c2273681c
to6c389e89bc
6c389e89bc
to224dd740c7
224dd740c7
toc6576f5171
c6576f5171
tob876617e3a
b876617e3a
to46d17f5993
chore(deps): update dependency astro to v4.16.10to chore(deps): update dependency astro to v4.16.1146d17f5993
to85595152b7
85595152b7
tofa2bc01ef8
chore(deps): update dependency astro to v4.16.11to chore(deps): update dependency astro to v4.16.12fa2bc01ef8
to8f756c5b7d
8f756c5b7d
tobb8236ff50
bb8236ff50
to5a2e62b8eb
5a2e62b8eb
tob891a9f03a
b891a9f03a
to5d7fa4b508
5d7fa4b508
to376297decb
376297decb
toe04a1e3bd6
chore(deps): update dependency astro to v4.16.12to chore(deps): update dependency astro to v4.16.13e04a1e3bd6
to7940bf911a
7940bf911a
to568358aef4
568358aef4
to0de9c9a0e6
0de9c9a0e6
tofcac7f035f
fcac7f035f
to04f2279c0d
04f2279c0d
tod28877002e
d28877002e
toc178bb4325
c178bb4325
to7fd219f64c
7fd219f64c
to089fb8c78d
089fb8c78d
toabd1239496
abd1239496
tofadb749329
fadb749329
to7c6d56def7
7c6d56def7
to5d441fbbae
chore(deps): update dependency astro to v4.16.13to chore(deps): update dependency astro to v4.16.145d441fbbae
to3fea0e1331
3fea0e1331
to932f3590a6
932f3590a6
to17516b61c3
17516b61c3
to87025354b5
87025354b5
toc471747969
c471747969
toa6998e657d
a6998e657d
to15d0d7e4fb
15d0d7e4fb
tofa6c000792
fa6c000792
todc4dd0c74f
chore(deps): update dependency astro to v4.16.14to chore(deps): update dependency astro to v4.16.15dc4dd0c74f
toc2e01fa1c9
c2e01fa1c9
toe3f578e042
e3f578e042
to666eca8c72
666eca8c72
toc140679f1d
chore(deps): update dependency astro to v4.16.15to chore(deps): update dependency astro to v4.16.16c140679f1d
to95e8c22a82
95e8c22a82
tof81fd51142
f81fd51142
toc51dc1533f
c51dc1533f
toc7bcef30f5
c7bcef30f5
to4712aed3b9
4712aed3b9
to960e9e5fbf
960e9e5fbf
to4c2c49828e
4c2c49828e
todfa203493e
dfa203493e
to3ed3bdfcaf
3ed3bdfcaf
toac49b55932
ac49b55932
to4016b00c78
4016b00c78
to24267ee2e2
24267ee2e2
toe7745c25bc
chore(deps): update dependency astro to v4.16.16to chore(deps): update dependency astro to v4.16.17e7745c25bc
to329b58fe24
329b58fe24
toc39a3e2330
c39a3e2330
to7cc384fa12
7cc384fa12
toe4817034db
e4817034db
tob9a0f4b559
chore(deps): update dependency astro to v4.16.17to chore(deps): update dependency astro to v4.16.17 - autoclosedPull request closed