open-payments
open-payments copied to clipboard
chore(deps): bump astro from 5.11.1 to 5.14.3 in /docs
Bumps astro from 5.11.1 to 5.14.3.
Release notes
Sourced from astro's releases.
[email protected]
Patch Changes
#14505
28b2a1dThanks@matthewp! - FixesCannot set property manifesterror in test utilities by adding a protected setter for the manifest property#14235
c4d84bbThanks@toxeeec! - Fixes a bug where the "tap" prefetch strategy worked only on the first clicked link with view transitions enabled[email protected]
Patch Changes
- #14440
a3e16abThanks@florian-lefebvre! - Fixes a case where the URLs generated by the experimental Fonts API would be incorrect in dev[email protected]
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: '/',
... (truncated)
Changelog
Sourced from astro's changelog.
5.14.3
Patch Changes
#14505
28b2a1dThanks@matthewp! - FixesCannot set property manifesterror in test utilities by adding a protected setter for the manifest property#14235
c4d84bbThanks@toxeeec! - Fixes a bug where the "tap" prefetch strategy worked only on the first clicked link with view transitions enabled5.14.2
Patch Changes
#14459
916f9c2Thanks@florian-lefebvre! - Improves font files URLs in development when using the experimental fonts API by showing the subset if present
b8ca69bThanks@ascorbic! - Aligns dev image server file base with Vite rules#14469
1c090b0Thanks@delucis! - Updatestinyexecdependency#14460
008dc75Thanks@florian-lefebvre! - Fixes a case whereastro:config/servervalues typed as URLs would be serialized as strings#13730
7260367Thanks@razonyang! - Fixes a bug in i18n, where Astro caused an infinite loop when a locale that doesn't have an index, and Astro falls back to the index of the default locale.
6ee63bfThanks@matthewp! - Addssecurity.allowedDomainsconfiguration to validateX-Forwarded-Hostheaders in SSRThe
X-Forwarded-Hostheader will now only be trusted if it matches one of the configured allowed host patterns. This prevents host header injection attacks that can lead to cache poisoning and other security vulnerabilities.Configure allowed host patterns to enable
X-Forwarded-Hostsupport:// astro.config.mjs export default defineConfig({ output: 'server', adapter: node(), security: { allowedDomains: [ { hostname: 'example.com' }, { hostname: '*.example.com' }, { hostname: 'cdn.example.com', port: '443' }, ], }, });The patterns support wildcards (
*and**) for flexible hostname matching and can optionally specify protocol and port.Breaking change
Previously,
Astro.urlwould reflect the value of theX-Forwarded-Hostheader. While this header is commonly used by reverse proxies like Nginx to communicate the original host, it can be sent by any client, potentially allowing malicious actors to poison caches with incorrect URLs.If you were relying on
X-Forwarded-Hostsupport, addsecurity.allowedDomainsto your configuration to restore this functionality securely. WhenallowedDomainsis not configured,X-Forwarded-Hostheaders are now ignored by default.
... (truncated)
Commits
fe1d35c[ci] release (#14507)7926882[ci] formatc4d84bbfix(prefetch): Fix "tap" prefetch strategy when view transitions are enabled ...3bb14b7[ci] release (#14466)7a5aaff[ci] format28b2a1dFix failing x-forwarded-host tests (#14505)ec307b0[ci] format6ee63bfMerge commit from fork7260367fix(i18n): ensure the redirect pathname is non-empty (#13730)d1b3409[ci] format- 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 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 this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the Security Alerts page.
Deploy Preview for openpayments-preview failed. Why did it fail? →
| Name | Link |
|---|---|
| Latest commit | 76cf607dc826fb0fbd9e802b36aafcc5ee7a9443 |
| Latest deploy log | https://app.netlify.com/projects/openpayments-preview/deploys/68ff32365818be0008d454ad |
Superseded by #718.