msc-viewer.meta

Issues/PRs archive for MTRNord/msc-viewer
git clone git://archive.git.mtrnord.blog/MTRNord/msc-viewer.meta.git
Log | Files | Refs

57.md (11800B)


      1 # PR #57 Bump astro from 4.0.6 to 4.9.1
      2 
      3 - **Status:** closed
      4 - **Author:** @dependabot[bot]
      5 - **Created:** 2024-05-27T01:27:25Z
      6 - **Branch:** dependabot/npm_and_yarn/astro-4.9.1 → main
      7 - **Closed:** 2024-06-03T01:25:29Z
      8 - **Labels:** dependencies, javascript
      9 - **Diff:** [57.diff](./57.diff)
     10 
     11 ---
     12 
     13 Bumps [astro](https://github.com/withastro/astro/tree/HEAD/packages/astro) from 4.0.6 to 4.9.1.
     14 <details>
     15 <summary>Release notes</summary>
     16 <p><em>Sourced from <a href="https://github.com/withastro/astro/releases">astro's releases</a>.</em></p>
     17 <blockquote>
     18 <h2>astro@4.9.1</h2>
     19 <h3>Patch Changes</h3>
     20 <ul>
     21 <li><a href="https://redirect.github.com/withastro/astro/pull/11129">#11129</a> <a href="https://github.com/withastro/astro/commit/4bb926908d9a7ee134701c3e5a1b5e6ea688f843"><code>4bb9269</code></a> Thanks <a href="https://github.com/matthewp"><code>@​matthewp</code></a>! - Prevent errors from adapters when i18n domains is not used</li>
     22 </ul>
     23 <h2>astro@4.9.0</h2>
     24 <h3>Minor Changes</h3>
     25 <ul>
     26 <li>
     27 <p><a href="https://redirect.github.com/withastro/astro/pull/11051">#11051</a> <a href="https://github.com/withastro/astro/commit/12a1bccc818af292cdd2a8ed0f3e3c042b9819b4"><code>12a1bcc</code></a> Thanks <a href="https://github.com/ematipico"><code>@​ematipico</code></a>! - Introduces an experimental Container API to render <code>.astro</code> components in isolation.</p>
     28 <p>This API introduces three new functions to allow you to create a new container and render an Astro component returning either a string or a Response:</p>
     29 <ul>
     30 <li><code>create()</code>: creates a new instance of the container.</li>
     31 <li><code>renderToString()</code>: renders a component and return a string.</li>
     32 <li><code>renderToResponse()</code>: renders a component and returns the <code>Response</code> emitted by the rendering phase.</li>
     33 </ul>
     34 <p>The first supported use of this new API is to enable unit testing. For example, with <code>vitest</code>, you can create a container to render your component with test data and check the result:</p>
     35 <pre lang="js"><code>import { experimental_AstroContainer as AstroContainer } from 'astro/container';
     36 import { expect, test } from 'vitest';
     37 import Card from '../src/components/Card.astro';
     38 <p>test('Card with slots', async () =&gt; {
     39 const container = await AstroContainer.create();
     40 const result = await container.renderToString(Card, {
     41 slots: {
     42 default: 'Card content',
     43 },
     44 });</p>
     45 <p>expect(result).toContain('This is a card');
     46 expect(result).toContain('Card content');
     47 });
     48 </code></pre></p>
     49 <p>For a complete reference, see the <a href="https://github.com/withastro/astro/tree/HEAD/packages/astro/blob/HEAD/en/reference/container-reference">Container API docs</a>.</p>
     50 <p>For a feature overview, and to give feedback on this experimental API, see the <a href="https://redirect.github.com/withastro/roadmap/pull/916">Container API roadmap discussion</a>.</p>
     51 </li>
     52 <li>
     53 <p><a href="https://redirect.github.com/withastro/astro/pull/11021">#11021</a> <a href="https://github.com/withastro/astro/commit/2d4c8faa56a64d963fe7847b5be2d7a59e12ed5b"><code>2d4c8fa</code></a> Thanks <a href="https://github.com/ematipico"><code>@​ematipico</code></a>! - The CSRF protection feature that was introduced behind a flag in <a href="https://github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md#460">v4.6.0</a> is no longer experimental and is available for general use.</p>
     54 <p>To enable the stable version, add the new top-level <code>security</code> option in <code>astro.config.mjs</code>. If you were previously using the experimental version of this feature, also delete the experimental flag:</p>
     55 <pre lang="diff"><code>export default defineConfig({
     56 -  experimental: {
     57 -    security: {
     58 -      csrfProtection: {
     59 -        origin: true
     60 </code></pre>
     61 </li>
     62 </ul>
     63 <!-- raw HTML omitted -->
     64 </blockquote>
     65 <p>... (truncated)</p>
     66 </details>
     67 <details>
     68 <summary>Changelog</summary>
     69 <p><em>Sourced from <a href="https://github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md">astro's changelog</a>.</em></p>
     70 <blockquote>
     71 <h2>4.9.1</h2>
     72 <h3>Patch Changes</h3>
     73 <ul>
     74 <li><a href="https://redirect.github.com/withastro/astro/pull/11129">#11129</a> <a href="https://github.com/withastro/astro/commit/4bb926908d9a7ee134701c3e5a1b5e6ea688f843"><code>4bb9269</code></a> Thanks <a href="https://github.com/matthewp"><code>@​matthewp</code></a>! - Prevent errors from adapters when i18n domains is not used</li>
     75 </ul>
     76 <h2>4.9.0</h2>
     77 <h3>Minor Changes</h3>
     78 <ul>
     79 <li>
     80 <p><a href="https://redirect.github.com/withastro/astro/pull/11051">#11051</a> <a href="https://github.com/withastro/astro/commit/12a1bccc818af292cdd2a8ed0f3e3c042b9819b4"><code>12a1bcc</code></a> Thanks <a href="https://github.com/ematipico"><code>@​ematipico</code></a>! - Introduces an experimental Container API to render <code>.astro</code> components in isolation.</p>
     81 <p>This API introduces three new functions to allow you to create a new container and render an Astro component returning either a string or a Response:</p>
     82 <ul>
     83 <li><code>create()</code>: creates a new instance of the container.</li>
     84 <li><code>renderToString()</code>: renders a component and return a string.</li>
     85 <li><code>renderToResponse()</code>: renders a component and returns the <code>Response</code> emitted by the rendering phase.</li>
     86 </ul>
     87 <p>The first supported use of this new API is to enable unit testing. For example, with <code>vitest</code>, you can create a container to render your component with test data and check the result:</p>
     88 <pre lang="js"><code>import { experimental_AstroContainer as AstroContainer } from 'astro/container';
     89 import { expect, test } from 'vitest';
     90 import Card from '../src/components/Card.astro';
     91 <p>test('Card with slots', async () =&gt; {
     92 const container = await AstroContainer.create();
     93 const result = await container.renderToString(Card, {
     94 slots: {
     95 default: 'Card content',
     96 },
     97 });</p>
     98 <p>expect(result).toContain('This is a card');
     99 expect(result).toContain('Card content');
    100 });
    101 </code></pre></p>
    102 <p>For a complete reference, see the <a href="https://github.com/withastro/astro/blob/main/packages/astro/en/reference/container-reference">Container API docs</a>.</p>
    103 <p>For a feature overview, and to give feedback on this experimental API, see the <a href="https://redirect.github.com/withastro/roadmap/pull/916">Container API roadmap discussion</a>.</p>
    104 </li>
    105 <li>
    106 <p><a href="https://redirect.github.com/withastro/astro/pull/11021">#11021</a> <a href="https://github.com/withastro/astro/commit/2d4c8faa56a64d963fe7847b5be2d7a59e12ed5b"><code>2d4c8fa</code></a> Thanks <a href="https://github.com/ematipico"><code>@​ematipico</code></a>! - The CSRF protection feature that was introduced behind a flag in <a href="https://github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md#460">v4.6.0</a> is no longer experimental and is available for general use.</p>
    107 <p>To enable the stable version, add the new top-level <code>security</code> option in <code>astro.config.mjs</code>. If you were previously using the experimental version of this feature, also delete the experimental flag:</p>
    108 <pre lang="diff"><code>export default defineConfig({
    109 -  experimental: {
    110 -    security: {
    111 </code></pre>
    112 </li>
    113 </ul>
    114 <!-- raw HTML omitted -->
    115 </blockquote>
    116 <p>... (truncated)</p>
    117 </details>
    118 <details>
    119 <summary>Commits</summary>
    120 <ul>
    121 <li><a href="https://github.com/withastro/astro/commit/4c7949d1ae28f5597ec08cab788fe683197b0c3c"><code>4c7949d</code></a> [ci] release (<a href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/11132">#11132</a>)</li>
    122 <li><a href="https://github.com/withastro/astro/commit/4bb926908d9a7ee134701c3e5a1b5e6ea688f843"><code>4bb9269</code></a> Prevent errors from adapters when i18n domains is not used (<a href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/11129">#11129</a>)</li>
    123 <li><a href="https://github.com/withastro/astro/commit/50775925f9b2b50c3259dfd3d6f687d9af454884"><code>5077592</code></a> [ci] release (<a href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/11116">#11116</a>)</li>
    124 <li><a href="https://github.com/withastro/astro/commit/9566fa08608be766df355be17d72a39ea7b99ed0"><code>9566fa0</code></a> Actions: Allow actions to be called on the server (<a href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/11088">#11088</a>)</li>
    125 <li><a href="https://github.com/withastro/astro/commit/e71348e1381c42789daf2f9bb2366bf4ac9a4f15"><code>e71348e</code></a> [docs] fix config reference code formatting (<a href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/11119">#11119</a>)</li>
    126 <li><a href="https://github.com/withastro/astro/commit/7bfe8aaaa1b32fdadb78b7e9c54c1f9aee9cd9ee"><code>7bfe8aa</code></a> [ci] format</li>
    127 <li><a href="https://github.com/withastro/astro/commit/c7386ef2b3b42865ca6fbfe15cd17dd2cf5b0994"><code>c7386ef</code></a> [docs] update heading level in config reference (<a href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/11118">#11118</a>)</li>
    128 <li><a href="https://github.com/withastro/astro/commit/ae42bf38e3f946b9c7afb5d73738636891f471b6"><code>ae42bf3</code></a> [ci] format</li>
    129 <li><a href="https://github.com/withastro/astro/commit/5cb68d812617916767c0a35569a6a5113ccfc228"><code>5cb68d8</code></a> [docs] updates security.checkOrigin config reference (<a href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/11117">#11117</a>)</li>
    130 <li><a href="https://github.com/withastro/astro/commit/7be7b1a757b513bfffd56cf47e94e960b3f63407"><code>7be7b1a</code></a> [ci] format</li>
    131 <li>Additional commits viewable in <a href="https://github.com/withastro/astro/commits/astro@4.9.1/packages/astro">compare view</a></li>
    132 </ul>
    133 </details>
    134 <br />
    135 
    136 
    137 [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=astro&package-manager=npm_and_yarn&previous-version=4.0.6&new-version=4.9.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
    138 
    139 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`.
    140 
    141 [//]: # (dependabot-automerge-start)
    142 [//]: # (dependabot-automerge-end)
    143 
    144 ---
    145 
    146 <details>
    147 <summary>Dependabot commands and options</summary>
    148 <br />
    149 
    150 You can trigger Dependabot actions by commenting on this PR:
    151 - `@dependabot rebase` will rebase this PR
    152 - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
    153 - `@dependabot merge` will merge this PR after your CI passes on it
    154 - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
    155 - `@dependabot cancel merge` will cancel a previously requested merge and block automerging
    156 - `@dependabot reopen` will reopen this PR if it is closed
    157 - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    158 - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency
    159 - `@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)
    160 - `@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)
    161 - `@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)
    162 
    163 
    164 </details>
    165 
    166 
    167 ## Comments
    168 
    169 ### @dependabot[bot] — 2024-06-03T01:25:29Z
    170 
    171 Superseded by #58.
    172