fix(website): update astro 5.13.11 → 5.14.0 (#40020)
This PR contains the following updates: | Package | Change | Age | Confidence | |---|---|---|---| | [astro](https://astro.build) ([source](https://redirect.github.com/withastro/astro/tree/HEAD/packages/astro)) | [`5.13.11` -> `5.14.0`](https://renovatebot.com/diffs/npm/astro/5.13.11/5.14.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. Add the preset `:preserveSemverRanges` to your config if you don't want to pin your dependencies. --- ### Release Notes <details> <summary>withastro/astro (astro)</summary> ### [`v5.14.0`](https://redirect.github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#5140) [Compare Source](https://redirect.github.com/withastro/astro/compare/astro@5.13.11...astro@5.14.0) ##### Minor Changes - [#​13520](https://redirect.github.com/withastro/astro/pull/13520) [`a31edb8`](https://redirect.github.com/withastro/astro/commit/a31edb8daad8632bacd1861adf6ac720695f7173) Thanks [@​openscript](https://redirect.github.com/openscript)! - Adds a new property `routePattern` available to `GetStaticPathsOptions` 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 of `getStaticPaths()`. This can be useful to calculate the `params` and `props` 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 custom `getLocalizedData()` helper function. The `params` object will be set with explicit values for each route segment (e.g. `locale`, `files`, and `slug)`. Then, these values will be used to generate the routes and can be used in your page template via `Astro.params`. ```astro // src/pages/[...locale]/[files]/[slug].astro import { getLocalizedData } from "../../../utils/i18n"; export async function getStaticPaths({ routePattern }) { const response = await fetch('...'); const data = await response.json(); console.log(routePattern); // [...locale]/[files]/[slug] // Call your custom helper with `routePattern` to generate the static paths return data.flatMap((file) => getLocalizedData(file, routePattern)); } const { locale, files, slug } = Astro.params; ``` For more information about this advanced routing pattern, see Astro's [routing reference](https://docs.astro.build/en/reference/routing-reference/#routepattern). - [#​13651](https://redirect.github.com/withastro/astro/pull/13651) [`dcfbd8c`](https://redirect.github.com/withastro/astro/commit/dcfbd8c9d5dc798d1bcb9b36531c2eded301050d) Thanks [@​ADTC](https://redirect.github.com/ADTC)! - Adds a new `SvgComponent` type You can now more easily enforce type safety for your `.svg` assets by directly importing `SVGComponent` from `astro/types`: </details> --- ### Configuration 📅 **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. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://redirect.github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS44Mi4xMCIsInVwZGF0ZWRJblZlciI6IjQxLjgyLjEwIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbImF1dG9tZXJnZSIsInJlbm92YXRlL2NvbnRhaW5lciIsInR5cGUvbWlub3IiXX0=-->
This commit is contained in:
Generated
+4
-4
@@ -14,7 +14,7 @@
|
||||
"@astrojs/starlight-tailwind": "3.0.1",
|
||||
"@astrojs/tailwind": "6.0.2",
|
||||
"@playform/compress": "0.2.0",
|
||||
"astro": "5.13.11",
|
||||
"astro": "5.14.0",
|
||||
"astro-better-image-service": "2.1.9",
|
||||
"astro-integration-lottie": "0.3.2",
|
||||
"astro-robots-txt": "1.0.0",
|
||||
@@ -2976,9 +2976,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/astro": {
|
||||
"version": "5.13.11",
|
||||
"resolved": "https://registry.npmjs.org/astro/-/astro-5.13.11.tgz",
|
||||
"integrity": "sha512-qKB+95GtyJSwVn5TDi31FTIcsohzA/nLhyATWn5VWqok1VLzZvm/1KHCk4tNElSrAQ5BisxUIMZWTh+B4X2JvQ==",
|
||||
"version": "5.14.0",
|
||||
"resolved": "https://registry.npmjs.org/astro/-/astro-5.14.0.tgz",
|
||||
"integrity": "sha512-p41jPzs9XhcVBPzp8ZwjU4SgxSyjgkzMq3NToRIn4CPbE/f9rb1cba5+N6TRk4A8yBudEU6MFzCMFWer7kjW3Q==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@astrojs/compiler": "^2.12.2",
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
"@astrojs/starlight-tailwind": "3.0.1",
|
||||
"@astrojs/tailwind": "6.0.2",
|
||||
"@playform/compress": "0.2.0",
|
||||
"astro": "5.13.11",
|
||||
"astro": "5.14.0",
|
||||
"astro-better-image-service": "2.1.9",
|
||||
"astro-integration-lottie": "0.3.2",
|
||||
"astro-robots-txt": "1.0.0",
|
||||
|
||||
Reference in New Issue
Block a user