fix(deps): update astro monorepo - autoclosed #379
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
3.3.1
->3.6.0
5.4.0
->5.6.0
4.3.5
->4.10.3
Release Notes
withastro/astro (@astrojs/react)
v3.6.0
Compare Source
Minor Changes
#11234
4385bf7
Thanks @ematipico! - Adds a new function calledaddServerRenderer
to the Container API. Use this function to manually store renderers inside the instance of your container.This new function should be preferred when using the Container API in environments like on-demand pages:
v3.5.0
Compare Source
Minor Changes
#11144
803dd80
Thanks @ematipico! - The integration now exposes a function calledgetContainerRenderer
, that can be used inside the Container APIs to load the relative renderer.v3.4.0
Compare Source
Minor Changes
#11071
8ca7c73
Thanks @bholmesdev! - Adds two new functionsexperimental_getActionState()
andexperimental_withState()
to support the React 19useActionState()
hook when using Astro Actions. This introduces progressive enhancement when calling an Action with thewithState()
utility.This example calls a
like
action that accepts apostId
and returns the number of likes. Pass this action to theexperimental_withState()
function to apply progressive enhancement info, and apply touseActionState()
to track the result:You can also access the state stored by
useActionState()
from your actionhandler
. Callexperimental_getActionState()
with the API context, and optionally apply a type to the result:v3.3.4
Compare Source
Patch Changes
4d16381
Thanks @emish89! - Fixes incorrectpeerDependencies
for@types/react
and@types/react-dom
v3.3.3
Compare Source
Patch Changes
d47baa4
Thanks @matthewp! - Updates package to support React 19 betav3.3.2
Compare Source
Patch Changes
fd7a9ed
Thanks @Angrigo! - Removes using deprecatedReactDOMServer.renderToStaticNodeStream
APIwithastro/astro (@astrojs/svelte)
v5.6.0
Compare Source
Minor Changes
#11234
4385bf7
Thanks @ematipico! - Adds a new function calledaddServerRenderer
to the Container API. Use this function to manually store renderers inside the instance of your container.This new function should be preferred when using the Container API in environments like on-demand pages:
v5.5.0
Compare Source
Minor Changes
#11144
803dd80
Thanks @ematipico! - The integration now exposes a function calledgetContainerRenderer
, that can be used inside the Container APIs to load the relative renderer.withastro/astro (astro)
v4.10.3
Compare Source
Patch Changes
#11213
94ac7ef
Thanks @florian-lefebvre! - Removes thePUBLIC_
prefix constraint forastro:env
public variables#11213
94ac7ef
Thanks @florian-lefebvre! - BREAKING CHANGE to the experimentalastro:env
feature onlyServer secrets specified in the schema must now be imported from
astro:env/server
. UsinggetSecret()
is no longer required to use these environment variables in your schema:Note that using
getSecret()
with these keys is still possible, but no longer involves any special handling and the raw value will be returned, just like retrieving secrets not specified in your schema.#11234
4385bf7
Thanks @ematipico! - Adds a new function calledaddServerRenderer
to the Container API. Use this function to manually store renderers inside the instance of your container.This new function should be preferred when using the Container API in environments like on-demand pages:
#11249
de60c69
Thanks @markgaze! - Fixes a performance issue with JSON schema generation#11242
e4fc2a0
Thanks @ematipico! - Fixes a case where the virtual moduleastro:container
wasn't resolved#11236
39bc3a5
Thanks @ascorbic! - Fixes a case where symlinked content collection directories were not correctly resolved#11258
d996db6
Thanks @ascorbic! - Adds a new errorRewriteWithBodyUsed
that throws whenAstro.rewrite
is used after the request body has already been read.#11243
ba2b14c
Thanks @V3RON! - Fixes a prerendering issue for libraries innode_modules
when a folder with an underscore is in the path.#11244
d07d2f7
Thanks @ematipico! - Improves the developer experience of the custom500.astro
page in development mode.Before, in development, an error thrown during the rendering phase would display the default error overlay, even when users had the
500.astro
page.Now, the development server will display the
500.astro
and the original error is logged in the console.#11240
2851b0a
Thanks @ascorbic! - Ignores query strings in module identifiers when matching ".astro" file extensions in Vite plugin#11245
e22be22
Thanks @bluwy! - Refactors prerendering chunk handling to correctly remove unused code during the SSR runtimev4.10.2
Compare Source
Patch Changes
#11231
58d7dbb
Thanks @ematipico! - Fixes a regression forgetViteConfig
, where the inline config wasn't merged in the final config.#11228
1e293a1
Thanks @ascorbic! - UpdatesgetCollection()
to always return a cloned array#11207
7d9aac3
Thanks @ematipico! - Fixes an issue in the rewriting logic where old data was not purged during the rewrite flow. This caused some false positives when checking the validity of URL path names during the rendering phase.#11189
75a8fe7
Thanks @ematipico! - Improve error message when usinggetLocaleByPath
on path that doesn't contain any locales.#11195
0a6ab6f
Thanks @florian-lefebvre! - Adds support for enums toastro:env
You can now call
envField.enum
:#11210
66fc028
Thanks @matthewp! - Close the iterator only after rendering is complete#11195
0a6ab6f
Thanks @florian-lefebvre! - Adds additional validation options toastro:env
astro:env
schema datatypesstring
andnumber
now have new optional validation rules:#11211
97724da
Thanks @matthewp! - Let middleware handle the original request URL#10607
7327c6a
Thanks @frankbits! - Fixes an issue where a leading slash created incorrect conflict resolution between pages generated from static routes and catch-all dynamic routesv4.10.1
Compare Source
Patch Changes
#11198
8b9a499
Thanks @florian-lefebvre! - Fixes a case whereastro:env
getSecret
would not retrieve environment variables properly in dev and build modes#11206
734b98f
Thanks @florian-lefebvre! - BREAKING CHANGE to the experimentalastro:env
feature onlyUpdates the adapter
astro:env
entrypoint fromastro:env/setup
toastro/env/setup
#11205
8c45391
Thanks @Nin3lee! - Fixes a typo in the config referencev4.10.0
Compare Source
Minor Changes
#10974
2668ef9
Thanks @florian-lefebvre! - Adds experimental support for theastro:env
API.The
astro:env
API lets you configure a type-safe schema for your environment variables, and indicate whether they should be available on the server or the client. Import and use your defined variables from the appropriate/client
or/server
module:v4.9.3
Compare Source
Patch Changes
#11171
ff8004f
Thanks @Princesseuh! - Guard globalThis.astroAsset usage in proxy code to avoid errors in wonky situations#11178
1734c49
Thanks @theoephraim! - ImprovesisPromise
utility to check the presence ofthen
on an object before trying to access it - which can cause undesired side-effects on Proxy objects#11183
3cfa2ac
Thanks @66Leo66! - Suggestpnpm dlx
instead ofpnpx
in update check.#11147
2d93902
Thanks @kitschpatrol! - Fixes invalid MIME types in Picture source elements for jpg and svg extensions, which was preventing otherwise valid source variations from being shown by the browser#11141
19df89f
Thanks @ematipico! - Fixes an internal error that prevented theAstroContainer
to render theContent
component.You can now write code similar to the following to render content collections:
#11170
ba20c71
Thanks @matthewp! - Retain client scripts in content cachev4.9.2
Compare Source
Patch Changes
#11138
98e0372
Thanks @ematipico! - You can now passprops
when rendering a component using the Container APIs:v4.9.1
Compare Source
Patch Changes
4bb9269
Thanks @matthewp! - Prevent errors from adapters when i18n domains is not usedv4.9.0
Compare Source
Minor Changes
#11051
12a1bcc
Thanks @ematipico! - Introduces an experimental Container API to render.astro
components in isolation.This API introduces three new functions to allow you to create a new container and render an Astro component returning either a string or a Response:
create()
: creates a new instance of the container.renderToString()
: renders a component and return a string.renderToResponse()
: renders a component and returns theResponse
emitted by the rendering phase.The first supported use of this new API is to enable unit testing. For example, with
vitest
, you can create a container to render your component with test data and check the result:For a complete reference, see the Container API docs.
For a feature overview, and to give feedback on this experimental API, see the Container API roadmap discussion.
#11021
2d4c8fa
Thanks @ematipico! - The CSRF protection feature that was introduced behind a flag in v4.6.0 is no longer experimental and is available for general use.To enable the stable version, add the new top-level
security
option inastro.config.mjs
. If you were previously using the experimental version of this feature, also delete the experimental flag:Enabling this setting performs a check that the
"origin"
header, automatically passed by all modern browsers, matches the URL sent by each Request.This check is executed only for pages rendered on demand, and only for the requests
POST
,PATCH
,DELETE
andPUT
with one of the following"content-type"
headers:'application/x-www-form-urlencoded'
,'multipart/form-data'
,'text/plain'
.If the
"origin"
header doesn't match the pathname of the request, Astro will return a 403 status code and won't render the page.For more information, see the
security
configuration docs.#11022
be68ab4
Thanks @ematipico! - Thei18nDomains
routing feature introduced behind a flag in v3.4.0 is no longer experimental and is available for general use.This routing option allows you to configure different domains for individual locales in entirely server-rendered projects using the @astrojs/node or @astrojs/vercel adapter with a
site
configured.If you were using this feature, please remove the experimental flag from your Astro config:
If you have been waiting for stabilization before using this routing option, you can now do so.
Please see the internationalization docs for more about this feature.
#11071
8ca7c73
Thanks @bholmesdev! - Adds two new functionsexperimental_getActionState()
andexperimental_withState()
to support the React 19useActionState()
hook when using Astro Actions. This introduces progressive enhancement when calling an Action with thewithState()
utility.This example calls a
like
action that accepts apostId
and returns the number of likes. Pass this action to theexperimental_withState()
function to apply progressive enhancement info, and apply touseActionState()
to track the result:You can also access the state stored by
useActionState()
from your actionhandler
. Callexperimental_getActionState()
with the API context, and optionally apply a type to the result:#11101
a6916e4
Thanks @linguofeng! - Updates Astro's code for adapters to use the headerx-forwarded-for
to initialize theclientAddress
.To take advantage of the new change, integration authors must upgrade the version of Astro in their adapter
peerDependencies
to4.9.0
.#11071
8ca7c73
Thanks @bholmesdev! - Adds compatibility for Astro Actions in the React 19 beta. Actions can be passed to aform action
prop directly, and Astro will automatically add metadata for progressive enhancement.Patch Changes
#11088
9566fa0
Thanks @bholmesdev! - Allow actions to be called on the server. This allows you to call actions as utility functions in your Astro frontmatter, endpoints, and server-side UI components.Import and call directly from
astro:actions
as you would for client actions:v4.8.7
Compare Source
Patch Changes
#11073
f5c8fee
Thanks @matthewp! - Prevent cache content from being left in dist folderWhen
contentCollectionsCache
is enabled temporary cached content is copied into theoutDir
for processing. This fixes it so that this content is cleaned out, along with the rest of the temporary build JS.#11054
f6b171e
Thanks @bholmesdev! - Respect error status when handling Actions with a progressive fallback.#11092
bfe9c73
Thanks @duckycoding-dev! - Changeslot
attribute ofIntrinsicAttributes
to match the definition ofHTMLAttributes
's ownslot
attribute of typestring | undefined | null
#10875
b5f95b2
Thanks @W1M0R! - Fixes a typo in a JSDoc annotation#11111
a5d79dd
Thanks @bholmesdev! - Fix unexpectedheaders
warning on prerendered routes when using Astro Actions.#11081
af42e05
Thanks @V3RON! - Correctly position inspection tooltip in RTL modeWhen RTL mode is turned on, the inspection tooltip tend to overflow the window on the left side.
Additional check has been added to prevent that.
v4.8.6
Compare Source
Patch Changes
9637014
Thanks @bluwy! - Fixes regression when handling hoisted scripts from content collectionsv4.8.5
Compare Source
Patch Changes
#11065
1f988ed
Thanks @ematipico! - Fixes a bug in the Astro rewrite logic, where rewriting the index with parameters -next("/?foo=bar")
- didn't work as expected.#10924
3a0c02a
Thanks @Its-Just-Nans! - Handle image-size errors by displaying a clearer message#11058
749a7ac
Thanks @matthewp! - Fix streaming in Node.js fast path#11052
a05ca38
Thanks @florian-lefebvre! - Fixes a case where rewriting would conflict with the actions internal middleware#11062
16f12e4
Thanks @ematipico! - Fixes a bug whereastro build
didn't create custom404.html
and500.html
when a certain combination of i18n options was applied#10965
a8f0372
Thanks @Elias-Chairi! - Update generator.ts to allow %23 (#) in dynamic urls#11069
240a70a
Thanks @ematipico! - Improves debug logging for on-demand pagesv4.8.4
Compare Source
Patch Changes
#11026
8dfb1a2
Thanks @bluwy! - Skips rendering script tags if it's inlined and empty whenexperimental.directRenderScript
is enabled#11043
d0d1710
Thanks @bholmesdev! - Fixes minor type issues in actions component example#10999
5f353e3
Thanks @bluwy! - The prefetch feature is updated to better support different browsers and different cache headers setup, including:<link rel="prefetch">
if supported, or will fall back tofetch()
.prefetch()
programmatic API'swith
option is deprecated in favour of an automatic approach that will also try to use<link rel="prefetch>
if supported, or will fall back tofetch()
.This change shouldn't affect most sites and should instead make prefetching more effective.
#11041
6cc3fb9
Thanks @bholmesdev! - Fixes 500 errors when sending empty params or returning an empty response from an action.#11028
771d1f7
Thanks @bholmesdev! - Throw on missing server output when using Astro Actions.#11029
bd34452
Thanks @bholmesdev! - Actions: include validation error in thrown error message for debugging.#11046
086694a
Thanks @HiDeoo! - FixesgetViteConfig()
type definition to allow passing an inline Astro configuration as second argument#11026
8dfb1a2
Thanks @bluwy! - Fixes CSS handling if imported in a script tag in an Astro file whenexperimental.directRenderScript
is enabled#11020
2e2d6b7
Thanks @xsynaptic! - Add type declarations forimport.meta.env.ASSETS_PREFIX
when defined as an object for handling different file types.#11030
18e7f33
Thanks @bholmesdev! - Actions: Fix missing message for custom Action errors.#10981
ad9227c
Thanks @mo! - Adds deprecated HTML attribute "name" to the list of valid attributes. This attribute has been replaced by the globalid
attribute in recent versions of HTML.#11013
4ea38e7
Thanks @QingXia-Ela! - Prevents unhandledrejection error when checking for latest Astro version#11034
5f2dd45
Thanks @arganaphang! - Addpopovertargetaction
to the attribute that can be passed to thebutton
andinput
elementv4.8.3
Compare Source
Patch Changes
7418bb0
Thanks @bholmesdev! - Fixlocals
access from action handlersv4.8.2
Compare Source
Patch Changes
#10990
4161a2a
Thanks @liruifengv! - fix incorrect actions path on windows#10979
6fa89e8
Thanks @BryceRussell! - Fix loading of non-index routes that end withindex.html
v4.8.1
Compare Source
Patch Changes
#10987
05db5f7
Thanks @ematipico! - Fix a regression where the flagexperimental.rewriting
was marked mandatory. Is is now optional.#10975
6b640b3
Thanks @bluwy! - Passes the scoped style attribute or class to the<picture>
element in the<Picture />
component so scoped styling can be applied to the<picture>
elementv4.8.0
Compare Source
Minor Changes
#10935
ddd8e49
Thanks @bluwy! - Exportsastro/jsx/rehype.js
with utilities to generate an Astro metadata object#10625
698c2d9
Thanks @goulvenclech! - Adds the ability for multiple pages to use the same component as anentrypoint
when building an Astro integration. This change is purely internal, and aligns the build process with the behaviour in the development server.#10906
7bbd664
Thanks @Princesseuh! - Adds a new radio checkbox component to the dev toolbar UI library (astro-dev-toolbar-radio-checkbox
)#10963
61f47a6
Thanks @delucis! - Adds support for passing an inline Astro configuration object togetViteConfig()
If you are using
getViteConfig()
to configure the Vitest test runner, you can now pass a second argument to control how Astro is configured. This makes it possible to configure unit tests with different Astro options when using Vitest’s workspaces feature.#10867
47877a7
Thanks @ematipico! - Adds experimental rewriting in Astro with a newrewrite()
function and the middlewarenext()
function.The feature is available via an experimental flag in
astro.config.mjs
:When enabled, you can use
rewrite()
to render another page without changing the URL of the browser in Astro pages and endpoints.v4.7.1
Compare Source
Patch Changes
#10911
a86dc9d
Thanks @bluwy! - Skips adding CSS dependencies of CSS Vite modules as style tags in the HTML#10900
36bb3b6
Thanks @martrapp! - Detects overlapping navigation and view transitions and automatically aborts all but the most recent one.#10933
007d17f
Thanks @Princesseuh! - Fixesapp.toggleState
not working correctly#10931
4ce5ced
Thanks @ktym4a! - FixestoggleNotification()
's parameter type for the notification level not using the proper levelsv4.7.0
Compare Source
Minor Changes
#10665
7b4f284
Thanks @Princesseuh! - Adds new utilities to ease the creation of toolbar apps includingdefineToolbarApp
to make it easier to define your toolbar app andapp
andserver
helpers for easier communication between the toolbar and the server. These new utilities abstract away some of the boilerplate code that is common in toolbar apps, and lower the barrier of entry for app authors.For example, instead of creating an event listener for the
app-toggled
event and manually typing the value in the callback, you can now use theonAppToggled
method. Additionally, communicating with the server does not require knowing any of the Vite APIs anymore, as a newserver
object is passed to theinit
function that contains easy to use methods for communicating with the server.Server helpers are also available on the server side, for use in your integrations, through the new
toolbar
object:This is a backwards compatible change and your your existing dev toolbar apps will continue to function. However, we encourage you to build your apps with the new helpers, following the updated Dev Toolbar API documentation.
#10734
6fc4c0e
Thanks @Princesseuh! - Astro will now automatically check for updates when you run the dev server. If a new version is available, a message will appear in the terminal with instructions on how to update. Updates will be checked once per 10 days, and the message will only appear if the project is multiple versions behind the latest release.This behavior can be disabled by running
astro preferences disable checkUpdates
or setting theASTRO_DISABLE_UPDATE_CHECK
environment variable tofalse
.#10762
43ead8f
Thanks @bholmesdev! - Enables type checking for JavaScript files when using thestrictest
TS config. This ensures consistency with Astro's other TS configs, and fixes type checking for integrations like Astro DB when using anastro.config.mjs
.If you are currently using the
strictest
preset and would like to still disable.js
files, setallowJS: false
in yourtsconfig.json
.Patch Changes
#10861
b673bc8
Thanks @mingjunlu! - Fixes an issue whereastro build
writes type declaration files tooutDir
when it's outside of root directory.#10684
8b59d5d
Thanks @PeterDraex! - Update sharp to 0.33 to fix issue with Alpine Linux[
v4.6.4
](https://github.com/withastroConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate. View repository job log here.