chore(deps): bump astro from 5.13.9 to 5.14.1 in the npm group
Type: Pull Request
State: Open
![dependabot[bot]](https://github.com/dependabot.png)
Association: Contributor
Comments: 0
(3 days ago)
(3 days ago)
dependencies javascript
Bumps the npm group with 1 update: astro.
Updates astro
from 5.13.9 to 5.14.1
Release notes
Sourced from astro's releases.
astro@5.14.1
Patch Changes
- #14440
a3e16ab
Thanks@florian-lefebvre
! - Fixes a case where the URLs generated by the experimental Fonts API would be incorrect in devastro@5.14.0
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
.// 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.
#13651
dcfbd8c
Thanks@ADTC
! - Adds a newSvgComponent
typeYou can now more easily enforce type safety for your
.svg
assets by directly importingSVGComponent
fromastro/types
:--- // src/components/Logo.astro import type { SvgComponent } from 'astro/types'; import HomeIcon from './Home.svg'; interface Link { url: string; text: string; icon: SvgComponent; } const links: Link[] = [ { url: '/', text: 'Home', icon: HomeIcon, }, ]; ---
... (truncated)
Changelog
Sourced from astro's changelog.
5.14.1
Patch Changes
- #14440
a3e16ab
Thanks@florian-lefebvre
! - Fixes a case where the URLs generated by the experimental Fonts API would be incorrect in dev5.14.0
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
.--- // 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.
#13651
dcfbd8c
Thanks@ADTC
! - Adds a newSvgComponent
typeYou can now more easily enforce type safety for your
.svg
assets by directly importingSVGComponent
fromastro/types
:--- // src/components/Logo.astro import type { SvgComponent } from 'astro/types'; import HomeIcon from './Home.svg'; interface Link { url: string; text: string; icon: SvgComponent;
... (truncated)
Commits
a759c1f
[ci] release (#14442)1f7ec7d
fix: changelog code snippet (#14443)a3e16ab
fix(astro): invalid font url (#14440)47df8f2
[ci] formatbdcd9e0
docs: Clarification in ResponseSentError cause (#14391)b0cffe7
Fix name of new flag in changelog (#14437)731c07d
[ci] release (#14434)dcfbd8c
feat(types): add SvgComponent type and update SVG module declaration (#13651)a98ce3c
[ci] formata31edb8
feat(core): addroutePattern
toGetStaticPathsOptions
(#13520)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditions
will show all of the ignore conditions of the specified dependency@dependabot ignore <dependency name> major version
will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)@dependabot ignore <dependency name> minor version
will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)@dependabot ignore <dependency name>
will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)@dependabot unignore <dependency name>
will remove all of the ignore conditions of the specified dependency@dependabot unignore <dependency name> <ignore condition>
will remove the ignore condition of the specified dependency and ignore conditions
Pull Request Statistics
1
2
+42
-7
Package Dependencies
astro
npm
5.13.9 → 5.14.1
Minor
the npm group
Technical Details
ID: | 8683448 |
UUID: | 2869567529 |
Node ID: | PR_kwDOEGmOXM6rCiAp |
Host: | GitHub |
Repository: | html2rss/html2rss.github.io |
Merge State: | Unknown |