Bump the npm group with 3 updates
Type: Pull Request
State: Merged
Association: Contributor
Comments: 0
(8 months ago)
(8 months ago)
(8 months ago)
by github-actions[bot]
dependencies javascript
poad
Bumps the npm group with 3 updates: astro, baseline-browser-mapping and electron-to-chromium.
Updates astro from 5.13.11 to 5.14.1
Release notes
Sourced from astro's releases.
astro@5.14.1
Patch Changes
- #14440
a3e16abThanks@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
a31edb8Thanks@openscript! - Adds a new propertyroutePatternavailable toGetStaticPathsOptionsThis 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 theparamsandpropsfor each page route.For example, you can now localize your route segments and return an array of static paths by passing
routePatternto a customgetLocalizedData()helper function. Theparamsobject 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].astroimport { 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
routePatternto 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
dcfbd8cThanks@ADTC! - Adds a newSvgComponenttypeYou can now more easily enforce type safety for your
.svgassets by directly importingSVGComponentfromastro/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
a3e16abThanks@florian-lefebvre! - Fixes a case where the URLs generated by the experimental Fonts API would be incorrect in dev5.14.0
Minor Changes
#13520
a31edb8Thanks@openscript! - Adds a new propertyroutePatternavailable toGetStaticPathsOptionsThis 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 theparamsandpropsfor each page route.For example, you can now localize your route segments and return an array of static paths by passing
routePatternto a customgetLocalizedData()helper function. Theparamsobject 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
routePatternto 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
dcfbd8cThanks@ADTC! - Adds a newSvgComponenttypeYou can now more easily enforce type safety for your
.svgassets by directly importingSVGComponentfromastro/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)1f7ec7dfix: changelog code snippet (#14443)a3e16abfix(astro): invalid font url (#14440)47df8f2[ci] formatbdcd9e0docs: Clarification in ResponseSentError cause (#14391)b0cffe7Fix name of new flag in changelog (#14437)731c07d[ci] release (#14434)dcfbd8cfeat(types): add SvgComponent type and update SVG module declaration (#13651)a98ce3c[ci] formata31edb8feat(core): addroutePatterntoGetStaticPathsOptions(#13520)- Additional commits viewable in compare view
Updates baseline-browser-mapping from 2.8.6 to 2.8.7
Commits
Updates electron-to-chromium from 1.5.223 to 1.5.224
Commits
31bd9491.5.224f22492fgenerate new version- See full diff 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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore <dependency name> major versionwill 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 versionwill 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
+14
-14
Package Dependencies
Technical Details
| ID: | 8493451 |
| UUID: | 2863911602 |
| Node ID: | PR_kwDOKSIIAM6qs9Ky |
| Host: | GitHub |
| Repository: | poad/astro-solid-example |
| Merge State: | Unknown |