Skip to content

Commit

Permalink
Bump astro from 5.0.3 to 5.1.0 in /website in the npm_and_yarn group (#…
Browse files Browse the repository at this point in the history
…329)

Bumps the npm_and_yarn group in /website with 1 update:
[astro](https://github.com/withastro/astro/tree/HEAD/packages/astro).

Updates `astro` from 5.0.3 to 5.1.0
<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.1.0</h2>
<h3>Minor Changes</h3>
<ul>
<li>
<p><a
href="https://github.com/withastro/astro/pull/12441">#12441</a>
<a
href="https://github.com/withastro/astro/commit/b4fec3c7d17ed92dcaaeea5e2545aae6dfd19e53"><code>b4fec3c</code></a>
Thanks <a
href="https://github.com/ascorbic"><code>@​ascorbic</code></a>! - Adds
experimental session support</p>
<p>Sessions are used to store user state between requests for
server-rendered pages, such as login status, shopping cart contents, or
other user-specific data.</p>
<pre lang="astro"><code>---
export const prerender = false; // Not needed in 'server' mode
const cart = await Astro.session.get('cart');
---
<p>&lt;a href=&quot;/checkout&quot;&gt;🛒 {cart?.length ?? 0}
items&lt;/a&gt;
</code></pre></p>
<p>Sessions are available in on-demand rendered/SSR pages, API
endpoints, actions and middleware. To enable session support, you must
configure a storage driver.</p>
<p>If you are using the Node.js adapter, you can use the <code>fs</code>
driver to store session data on the filesystem:</p>
<pre lang="js"><code>// astro.config.mjs
{
  adapter: node({ mode: 'standalone' }),
  experimental: {
    session: {
      // Required: the name of the unstorage driver
      driver: &quot;fs&quot;,
    },
  },
}
</code></pre>
<p>If you are deploying to a serverless environment, you can use drivers
such as <code>redis</code>, <code>netlify-blobs</code>,
<code>vercel-kv</code>, or <code>cloudflare-kv-binding</code> and
optionally pass additional configuration options.</p>
<p>For more information, including using the session API with other
adapters and a full list of supported drivers, see <a
href="https://docs.astro.build/en/reference/experimental-flags/sessions/">the
docs for experimental session support</a>. For even more details, and to
leave feedback and participate in the development of this feature, <a
href="https://github.com/withastro/roadmap/pull/1055">the
Sessions RFC</a>.</p>
</li>
<li>
<p><a
href="https://github.com/withastro/astro/pull/12426">#12426</a>
<a
href="https://github.com/withastro/astro/commit/3dc02c57e4060cb2bde7c4e05d91841dd5dd8eb7"><code>3dc02c5</code></a>
Thanks <a
href="https://github.com/oliverlynch"><code>@​oliverlynch</code></a>! -
Improves asset caching of remote images</p>
<p>Astro will now store <a
href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag">entity
tags</a> and the <a
href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Last-Modified">Last-Modified</a>
date for cached remote images and use them to revalidate the cache when
it goes stale.</p>
</li>
<li>
<p><a
href="https://github.com/withastro/astro/pull/12721">#12721</a>
<a
href="https://github.com/withastro/astro/commit/c9d51107d0a4b58a9ced486b28d09118f3885254"><code>c9d5110</code></a>
Thanks <a
href="https://github.com/florian-lefebvre"><code>@​florian-lefebvre</code></a>!
- Adds a new <code>getActionPath()</code> helper available from
<code>astro:actions</code></p>
<p>Astro 5.1 introduces a new helper function,
<code>getActionPath()</code> to give you more flexibility when calling
your action.</p>
<p>Calling <code>getActionPath()</code> with your action returns its URL
path so you can make a <code>fetch()</code> request with custom headers,
or use your action with an API such as
<code>navigator.sendBeacon()</code>. Then, you can <a
href="https://docs.astro.build/en/guides/actions/#handling-returned-data">handle
the custom-formatted returned data</a> as needed, just as if you had
called an action directly.</p>
<p>This example shows how to call a defined <code>like</code> action
passing the <code>Authorization</code> header and the <a
href="https://developer.mozilla.org/en-US/docs/Web/API/Request/keepalive"><code>keepalive</code></a>
option:</p>
<pre lang="astro"><code></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.1.0</h2>
<h3>Minor Changes</h3>
<ul>
<li>
<p><a
href="https://github.com/withastro/astro/pull/12441">#12441</a>
<a
href="https://github.com/withastro/astro/commit/b4fec3c7d17ed92dcaaeea5e2545aae6dfd19e53"><code>b4fec3c</code></a>
Thanks <a
href="https://github.com/ascorbic"><code>@​ascorbic</code></a>! - Adds
experimental session support</p>
<p>Sessions are used to store user state between requests for
server-rendered pages, such as login status, shopping cart contents, or
other user-specific data.</p>
<pre lang="astro"><code>---
export const prerender = false; // Not needed in 'server' mode
const cart = await Astro.session.get('cart');
---
<p>&lt;a href=&quot;/checkout&quot;&gt;🛒 {cart?.length ?? 0}
items&lt;/a&gt;
</code></pre></p>
<p>Sessions are available in on-demand rendered/SSR pages, API
endpoints, actions and middleware. To enable session support, you must
configure a storage driver.</p>
<p>If you are using the Node.js adapter, you can use the <code>fs</code>
driver to store session data on the filesystem:</p>
<pre lang="js"><code>// astro.config.mjs
{
  adapter: node({ mode: 'standalone' }),
  experimental: {
    session: {
      // Required: the name of the unstorage driver
      driver: &quot;fs&quot;,
    },
  },
}
</code></pre>
<p>If you are deploying to a serverless environment, you can use drivers
such as <code>redis</code>, <code>netlify-blobs</code>,
<code>vercel-kv</code>, or <code>cloudflare-kv-binding</code> and
optionally pass additional configuration options.</p>
<p>For more information, including using the session API with other
adapters and a full list of supported drivers, see <a
href="https://docs.astro.build/en/reference/experimental-flags/sessions/">the
docs for experimental session support</a>. For even more details, and to
leave feedback and participate in the development of this feature, <a
href="https://github.com/withastro/roadmap/pull/1055">the
Sessions RFC</a>.</p>
</li>
<li>
<p><a
href="https://github.com/withastro/astro/pull/12426">#12426</a>
<a
href="https://github.com/withastro/astro/commit/3dc02c57e4060cb2bde7c4e05d91841dd5dd8eb7"><code>3dc02c5</code></a>
Thanks <a
href="https://github.com/oliverlynch"><code>@​oliverlynch</code></a>! -
Improves asset caching of remote images</p>
<p>Astro will now store <a
href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag">entity
tags</a> and the <a
href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Last-Modified">Last-Modified</a>
date for cached remote images and use them to revalidate the cache when
it goes stale.</p>
</li>
<li>
<p><a
href="https://github.com/withastro/astro/pull/12721">#12721</a>
<a
href="https://github.com/withastro/astro/commit/c9d51107d0a4b58a9ced486b28d09118f3885254"><code>c9d5110</code></a>
Thanks <a
href="https://github.com/florian-lefebvre"><code>@​florian-lefebvre</code></a>!
- Adds a new <code>getActionPath()</code> helper available from
<code>astro:actions</code></p>
<p>Astro 5.1 introduces a new helper function,
<code>getActionPath()</code> to give you more flexibility when calling
your action.</p>
<p>Calling <code>getActionPath()</code> with your action returns its URL
path so you can make a <code>fetch()</code> request with custom headers,
or use your action with an API such as
<code>navigator.sendBeacon()</code>. Then, you can <a
href="https://docs.astro.build/en/guides/actions/#handling-returned-data">handle
the custom-formatted returned data</a> as needed, just as if you had
called an action directly.</p>
<p>This example shows how to call a defined <code>like</code> action
passing the <code>Authorization</code> header and the <a
href="https://developer.mozilla.org/en-US/docs/Web/API/Request/keepalive"><code>keepalive</code></a>
option:</p>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/withastro/astro/commit/3f557b2e3268d385454e505c1eebe52b180118a4"><code>3f557b2</code></a>
[ci] release (<a
href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/12762">#12762</a>)</li>
<li><a
href="https://github.com/withastro/astro/commit/4353fc5ccf04ba20909f871f33ae47daf367dac6"><code>4353fc5</code></a>
fix: correctly return 404.astro in i18n (<a
href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/12764">#12764</a>)</li>
<li><a
href="https://github.com/withastro/astro/commit/45005a581d356e2cab4939031f036262ff1d9b5c"><code>45005a5</code></a>
[ci] format</li>
<li><a
href="https://github.com/withastro/astro/commit/1ec5b44ce3999f3528e9fa3cf6ed7f0ddb93c418"><code>1ec5b44</code></a>
chore(deps): update unstorage and use new syntax (<a
href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/12783">#12783</a>)</li>
<li><a
href="https://github.com/withastro/astro/commit/45c3f333872a236d7c6a70ac805356737cdc68ec"><code>45c3f33</code></a>
[ci] format</li>
<li><a
href="https://github.com/withastro/astro/commit/c9d51107d0a4b58a9ced486b28d09118f3885254"><code>c9d5110</code></a>
feat(actions): getActionPath() (<a
href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/12721">#12721</a>)</li>
<li><a
href="https://github.com/withastro/astro/commit/36c1e0697da9fdc453a7a9a3c84e0e79cd0cb376"><code>36c1e06</code></a>
fix: clear the content layer cache when the Astro config changes (<a
href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/12767">#12767</a>)</li>
<li><a
href="https://github.com/withastro/astro/commit/a581c152fce75e5dc0d991e4259c96de090db208"><code>a581c15</code></a>
[ci] format</li>
<li><a
href="https://github.com/withastro/astro/commit/a94e309ebf3b3259515a214c5f398a0287fc1d69"><code>a94e309</code></a>
[ci] format</li>
<li><a
href="https://github.com/withastro/astro/commit/b4fec3c7d17ed92dcaaeea5e2545aae6dfd19e53"><code>b4fec3c</code></a>
Sessions API (<a
href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/12441">#12441</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/withastro/astro/commits/astro@5.1.0/packages/astro">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=astro&package-manager=npm_and_yarn&previous-version=5.0.3&new-version=5.1.0)](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 <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
You can disable automated security fix PRs for this repo from the
[Security Alerts page](https://github.com/google/scaaml/network/alerts).

</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] authored Dec 19, 2024
1 parent 1947c76 commit 81ad802
Show file tree
Hide file tree
Showing 2 changed files with 894 additions and 35 deletions.
Loading

0 comments on commit 81ad802

Please sign in to comment.