Bumps [astro](https://github.com/withastro/astro/tree/HEAD/packages/astro) from 5.13.10 to 5.14.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/withastro/astro/releases">astro's releases</a>.</em></p>
<blockquote>
<h2>astro@5.14.1</h2>
<h3>Patch Changes</h3>
<ul>
<li><a href="https://redirect.github.com/withastro/astro/pull/14440">#14440</a> <a href="https://github.com/withastro/astro/commit/a3e16ab6dd0bef9ab6259f23bfeebed747e27497"><code>a3e16ab</code></a> Thanks <a href="https://github.com/florian-lefebvre"><code>@florian-lefebvre</code></a>! - Fixes a case where the URLs generated by the experimental Fonts API would be incorrect in dev</li>
</ul>
<h2>astro@5.14.0</h2>
<h3>Minor Changes</h3>
<ul>
<li>
<p><a href="https://redirect.github.com/withastro/astro/pull/13520">#13520</a> <a href="https://github.com/withastro/astro/commit/a31edb8daad8632bacd1861adf6ac720695f7173"><code>a31edb8</code></a> Thanks <a href="https://github.com/openscript"><code>@openscript</code></a>! - Adds a new property <code>routePattern</code> available to <code>GetStaticPathsOptions</code></p>
<p>This provides the original, dynamic segment definition in a routing file path (e.g. <code>/[...locale]/[files]/[slug]</code>) from the Astro render context that would not otherwise be available within the scope of <code>getStaticPaths()</code>. This can be useful to calculate the <code>params</code> and <code>props</code> for each page route.</p>
<p>For example, you can now localize your route segments and return an array of static paths by passing <code>routePattern</code> to a custom <code>getLocalizedData()</code> helper function. The <code>params</code> object will be set with explicit values for each route segment (e.g. <code>locale</code>, <code>files</code>, and <code>slug)</code>. Then, these values will be used to generate the routes and can be used in your page template via <code>Astro.params</code>.</p>
<pre lang="astro"><code>// src/pages/[...locale]/[files]/[slug].astro
<p>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 <code>routePattern</code> to generate the static
paths return data.flatMap((file) => getLocalizedData(file, routePattern)); } const { locale, files,
slug } = Astro.params;
</code></pre></p>
<p>For more information about this advanced routing pattern, see Astro's <a href="https://docs.astro.build/en/reference/routing-reference/#routepattern">routing reference</a>.</p>
</li>
<li>
<p><a href="https://redirect.github.com/withastro/astro/pull/13651">#13651</a> <a href="https://github.com/withastro/astro/commit/dcfbd8c9d5dc798d1bcb9b36531c2eded301050d"><code>dcfbd8c</code></a> Thanks <a href="https://github.com/ADTC"><code>@ADTC</code></a>! - Adds a new <code>SvgComponent</code> type</p>
<p>You can now more easily enforce type safety for your <code>.svg</code> assets by directly importing <code>SVGComponent</code> from <code>astro/types</code>:</p>
<pre lang="astro"><code>---
// 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,
},
];
---
</code></pre>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md">astro's changelog</a>.</em></p>
<blockquote>
<h2>5.14.1</h2>
<h3>Patch Changes</h3>
<ul>
<li><a href="https://redirect.github.com/withastro/astro/pull/14440">#14440</a> <a href="https://github.com/withastro/astro/commit/a3e16ab6dd0bef9ab6259f23bfeebed747e27497"><code>a3e16ab</code></a> Thanks <a href="https://github.com/florian-lefebvre"><code>@florian-lefebvre</code></a>! - Fixes a case where the URLs generated by the experimental Fonts API would be incorrect in dev</li>
</ul>
<h2>5.14.0</h2>
<h3>Minor Changes</h3>
<ul>
<li>
<p><a href="https://redirect.github.com/withastro/astro/pull/13520">#13520</a> <a href="https://github.com/withastro/astro/commit/a31edb8daad8632bacd1861adf6ac720695f7173"><code>a31edb8</code></a> Thanks <a href="https://github.com/openscript"><code>@openscript</code></a>! - Adds a new property <code>routePattern</code> available to <code>GetStaticPathsOptions</code></p>
<p>This provides the original, dynamic segment definition in a routing file path (e.g. <code>/[...locale]/[files]/[slug]</code>) from the Astro render context that would not otherwise be available within the scope of <code>getStaticPaths()</code>. This can be useful to calculate the <code>params</code> and <code>props</code> for each page route.</p>
<p>For example, you can now localize your route segments and return an array of static paths by passing <code>routePattern</code> to a custom <code>getLocalizedData()</code> helper function. The <code>params</code> object will be set with explicit values for each route segment (e.g. <code>locale</code>, <code>files</code>, and <code>slug)</code>. Then, these values will be used to generate the routes and can be used in your page template via <code>Astro.params</code>.</p>
<pre lang="astro"><code>---
// src/pages/[...locale]/[files]/[slug].astro
import { getLocalizedData } from '../../../utils/i18n';
<p>export async function getStaticPaths({ routePattern }) {
const response = await fetch('...');
const data = await response.json();</p>
<p>console.log(routePattern); // [...locale]/[files]/[slug]</p>
<p>// Call your custom helper with <code>routePattern</code> to generate the static paths
return data.flatMap((file) => getLocalizedData(file, routePattern));
}</p>
<h2>const { locale, files, slug } = Astro.params;</h2>
<p></code></pre></p>
<p>For more information about this advanced routing pattern, see Astro's <a href="https://docs.astro.build/en/reference/routing-reference/#routepattern">routing reference</a>.</p>
</li>
<li>
<p><a href="https://redirect.github.com/withastro/astro/pull/13651">#13651</a> <a href="https://github.com/withastro/astro/commit/dcfbd8c9d5dc798d1bcb9b36531c2eded301050d"><code>dcfbd8c</code></a> Thanks <a href="https://github.com/ADTC"><code>@ADTC</code></a>! - Adds a new <code>SvgComponent</code> type</p>
<p>You can now more easily enforce type safety for your <code>.svg</code> assets by directly importing <code>SVGComponent</code> from <code>astro/types</code>:</p>
<pre lang="astro"><code>---
// src/components/Logo.astro
import type { SvgComponent } from 'astro/types';
import HomeIcon from './Home.svg';
interface Link {
url: string;
text: string;
icon: SvgComponent;
</code></pre>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/withastro/astro/commit/a759c1f84d11441420876a75481ce17dac773d76"><code>a759c1f</code></a> [ci] release (<a href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/14442">#14442</a>)</li>
<li><a href="https://github.com/withastro/astro/commit/1f7ec7dcf491a489ce7ad7a9f5ce768d96e7a96f"><code>1f7ec7d</code></a> fix: changelog code snippet (<a href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/14443">#14443</a>)</li>
<li><a href="https://github.com/withastro/astro/commit/a3e16ab6dd0bef9ab6259f23bfeebed747e27497"><code>a3e16ab</code></a> fix(astro): invalid font url (<a href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/14440">#14440</a>)</li>
<li><a href="https://github.com/withastro/astro/commit/47df8f2f2e57bb89c9570594039a8759e4f1a590"><code>47df8f2</code></a> [ci] format</li>
<li><a href="https://github.com/withastro/astro/commit/bdcd9e0eddee7deee5710f60b1163e122694cd92"><code>bdcd9e0</code></a> docs: Clarification in ResponseSentError cause (<a href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/14391">#14391</a>)</li>
<li><a href="https://github.com/withastro/astro/commit/b0cffe70e6981863b40741b478cd381ebe917e30"><code>b0cffe7</code></a> Fix name of new flag in changelog (<a href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/14437">#14437</a>)</li>
<li><a href="https://github.com/withastro/astro/commit/731c07d9be5cb2feb29c6d218b16feb7c11f03c4"><code>731c07d</code></a> [ci] release (<a href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/14434">#14434</a>)</li>
<li><a href="https://github.com/withastro/astro/commit/dcfbd8c9d5dc798d1bcb9b36531c2eded301050d"><code>dcfbd8c</code></a> feat(types): add SvgComponent type and update SVG module declaration (<a href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/13651">#13651</a>)</li>
<li><a href="https://github.com/withastro/astro/commit/a98ce3ccd7d6ecd723733f2bc8c7c5a83884eab4"><code>a98ce3c</code></a> [ci] format</li>
<li><a href="https://github.com/withastro/astro/commit/a31edb8daad8632bacd1861adf6ac720695f7173"><code>a31edb8</code></a> feat(core): add <code>routePattern</code> to <code>GetStaticPathsOptions</code> (<a href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/13520">#13520</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/withastro/astro/commits/astro@5.14.1/packages/astro">compare view</a></li>
</ul>
</details>
<br />
[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
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-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
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 this major version` will 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 version` will 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 dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
</details>