Repo Added
|
Files
73
|
Badge
README BADGES
|
push
github
Bump the dependabot group in /website with 2 updates (#117) Bumps the dependabot group in /website with 2 updates: [astro](https://github.com/withastro/astro/tree/HEAD/packages/astro) and [typescript](https://github.com/microsoft/TypeScript). Updates `astro` from 5.3.0 to 5.4.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.4.1</h2> <h3>Patch Changes</h3> <ul> <li> <p><a href="https://redirect.github.com/withastro/astro/pull/13336">#13336</a> <a href="https://github.com/withastro/astro/commit/8f632efe9"><code>8f632ef</code></a> Thanks <a href="https://github.com/ematipico"><code>@ematipico</code></a>! - Fixes a regression where some asset utilities were move across monorepo, and not re-exported anymore.</p> </li> <li> <p><a href="https://redirect.github.com/withastro/astro/pull/13320">#13320</a> <a href="https://github.com/withastro/astro/commit/b5dabe987"><code>b5dabe9</code></a> Thanks <a href="https://github.com/%7B">@{</a>! - Adds support for typing experimental session data</p> <p>You can add optional types to your session data by creating a <code>src/env.d.ts</code> file in your project that extends the global <code>App.SessionData</code> interface. For example:</p> <pre lang="ts"><code>declare namespace App { interface SessionData { <pre><code> id: string; email: string; }; lastLogin: Date; </code></pre> <p>} } </code></pre></p> <p>Any keys not defined in this interface will be treated as <code>any</code>.</p> <p>Then when you access <code>Astro.session</code> in your components, any defined keys will be typed correctly:</p> <pre lang="astro"><code>--- const user = await Astro.session.get('user'); // ^? const: user: { id: string; email: string; } | undefined <p>const something = await Astro.session.get('something'); // ^? const: something: any</p... (continued)
2362 of 2723 relevant lines covered (86.74%)
0.87 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|