Update astro monorepo #131
Reference in New Issue
Block a user
No description provided.
Delete Branch "renovate/astro-monorepo"
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.3.1
->4.4.0
5.13.11
->5.14.0
Release Notes
withastro/astro (@astrojs/react)
v4.4.0
Compare Source
Minor Changes
#14386
f75f446
Thanks @yanthomasdev! - Stabilizes the formerly experimentalgetActionState()
andwithState()
functions introduced in@astrojs/react
v3.4.0 used to integrate Astro Actions with React 19'suseActionState()
hook.This example calls a
like
action that accepts apostId
and returns the number of likes. Pass this action to thewithState()
function to apply progressive enhancement info, and apply touseActionState()
to track the result:You can also access the state stored by
useActionState()
from your action handler. CallgetActionState()
with the API context, and optionally apply a type to the result:If you were previously using this experimental feature, you will need to update your code to use the new stable exports:
withastro/astro (astro)
v5.14.0
Compare Source
Minor Changes
#13520
a31edb8
Thanks @openscript! - Adds a new propertyroutePattern
available toGetStaticPathsOptions
This provides the original, dynamic segment definition in a routing file path (e.g.
/[...locale]/[files]/[slug]
) from the Astro render context that would not otherwise be available within the scope ofgetStaticPaths()
. This can be useful to calculate theparams
andprops
for each page route.For example, you can now localize your route segments and return an array of static paths by passing
routePattern
to a customgetLocalizedData()
helper function. Theparams
object will be set with explicit values for each route segment (e.g.locale
,files
, andslug)
. Then, these values will be used to generate the routes and can be used in your page template viaAstro.params
.Configuration
📅 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 is behind base branch, 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 Renovate Bot.