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

66.md (10569B)


      1 # PR #66 Bump astro from 4.0.6 to 4.11.0
      2 
      3 - **Status:** open
      4 - **Author:** @dependabot[bot]
      5 - **Created:** 2024-06-24T01:28:33Z
      6 - **Branch:** dependabot/npm_and_yarn/astro-4.11.0 → main
      7 - **Labels:** dependencies, javascript
      8 - **Diff:** [66.diff](./66.diff)
      9 
     10 ---
     11 
     12 Bumps [astro](https://github.com/withastro/astro/tree/HEAD/packages/astro) from 4.0.6 to 4.11.0.
     13 <details>
     14 <summary>Release notes</summary>
     15 <p><em>Sourced from <a href="https://github.com/withastro/astro/releases">astro's releases</a>.</em></p>
     16 <blockquote>
     17 <h2>astro@4.11.0</h2>
     18 <h3>Minor Changes</h3>
     19 <ul>
     20 <li>
     21 <p><a href="https://redirect.github.com/withastro/astro/pull/11197">#11197</a> <a href="https://github.com/withastro/astro/commit/4b46bd9bdcbb302f294aa27b8aa07099e104fa17"><code>4b46bd9</code></a> Thanks <a href="https://github.com/braebo"><code>@​braebo</code></a>! - Adds <a href="https://shiki.style/packages/transformers#shikijs-transformers"><code>ShikiTransformer</code></a> support to the <a href="https://docs.astro.build/en/reference/api-reference/#code-"><code>&lt;Code /&gt;</code></a> component with a new <code>transformers</code> prop.</p>
     22 <p>Note that <code>transformers</code> only applies classes and you must provide your own CSS rules to target the elements of your code block.</p>
     23 <pre lang="astro"><code>---
     24 import { transformerNotationFocus } from '@shikijs/transformers';
     25 import { Code } from 'astro:components';
     26 <h2>const code = <code>const foo = 'hello' const bar = ' world' console.log(foo + bar) // [!code focus] </code>;</h2>
     27 <p>&lt;Code {code} lang=&quot;js&quot; transformers={[transformerNotationFocus()]} /&gt;</p>
     28 <p>&lt;style is:global&gt;
     29 pre.has-focused .line:not(.focused) {
     30 filter: blur(1px);
     31 }
     32 &lt;/style&gt;
     33 </code></pre></p>
     34 </li>
     35 <li>
     36 <p><a href="https://redirect.github.com/withastro/astro/pull/11134">#11134</a> <a href="https://github.com/withastro/astro/commit/9042be049157ce859355f911565bc0c3d68f0aa1"><code>9042be0</code></a> Thanks <a href="https://github.com/florian-lefebvre"><code>@​florian-lefebvre</code></a>! - Improves the developer experience of the <code>500.astro</code> file by passing it a new <code>error</code> prop.</p>
     37 <p>When an error is thrown, the special <code>src/pages/500.astro</code> page now automatically receives the error as a prop. This allows you to display more specific information about the error on a custom 500 page.</p>
     38 <pre lang="astro"><code>---
     39 // src/pages/500.astro
     40 interface Props {
     41   error: unknown;
     42 }
     43 <h2>const { error } = Astro.props;</h2>
     44 <p>&lt;div&gt;{error instanceof Error ? error.message : 'Unknown error'}&lt;/div&gt;
     45 </code></pre></p>
     46 <p>If an error occurs rendering this page, your host's default 500 error page will be shown to your visitor in production, and Astro's default error overlay will be shown in development.</p>
     47 </li>
     48 </ul>
     49 <h3>Patch Changes</h3>
     50 <ul>
     51 <li><a href="https://redirect.github.com/withastro/astro/pull/11280">#11280</a> <a href="https://github.com/withastro/astro/commit/fd3645fe8364ec5e280b6802d1468867890d463c"><code>fd3645f</code></a> Thanks <a href="https://github.com/ascorbic"><code>@​ascorbic</code></a>! - Fixes a bug that prevented cookies from being set when using experimental rewrites</li>
     52 </ul>
     53 <!-- raw HTML omitted -->
     54 </blockquote>
     55 <p>... (truncated)</p>
     56 </details>
     57 <details>
     58 <summary>Changelog</summary>
     59 <p><em>Sourced from <a href="https://github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md">astro's changelog</a>.</em></p>
     60 <blockquote>
     61 <h2>4.11.0</h2>
     62 <h3>Minor Changes</h3>
     63 <ul>
     64 <li>
     65 <p><a href="https://redirect.github.com/withastro/astro/pull/11197">#11197</a> <a href="https://github.com/withastro/astro/commit/4b46bd9bdcbb302f294aa27b8aa07099e104fa17"><code>4b46bd9</code></a> Thanks <a href="https://github.com/braebo"><code>@​braebo</code></a>! - Adds <a href="https://shiki.style/packages/transformers#shikijs-transformers"><code>ShikiTransformer</code></a> support to the <a href="https://docs.astro.build/en/reference/api-reference/#code-"><code>&lt;Code /&gt;</code></a> component with a new <code>transformers</code> prop.</p>
     66 <p>Note that <code>transformers</code> only applies classes and you must provide your own CSS rules to target the elements of your code block.</p>
     67 <pre lang="astro"><code>---
     68 import { transformerNotationFocus } from '@shikijs/transformers';
     69 import { Code } from 'astro:components';
     70 <h2>const code = <code>const foo = 'hello' const bar = ' world' console.log(foo + bar) // [!code focus] </code>;</h2>
     71 <p>&lt;Code {code} lang=&quot;js&quot; transformers={[transformerNotationFocus()]} /&gt;</p>
     72 <p>&lt;style is:global&gt;
     73 pre.has-focused .line:not(.focused) {
     74 filter: blur(1px);
     75 }
     76 &lt;/style&gt;
     77 </code></pre></p>
     78 </li>
     79 <li>
     80 <p><a href="https://redirect.github.com/withastro/astro/pull/11134">#11134</a> <a href="https://github.com/withastro/astro/commit/9042be049157ce859355f911565bc0c3d68f0aa1"><code>9042be0</code></a> Thanks <a href="https://github.com/florian-lefebvre"><code>@​florian-lefebvre</code></a>! - Improves the developer experience of the <code>500.astro</code> file by passing it a new <code>error</code> prop.</p>
     81 <p>When an error is thrown, the special <code>src/pages/500.astro</code> page now automatically receives the error as a prop. This allows you to display more specific information about the error on a custom 500 page.</p>
     82 <pre lang="astro"><code>---
     83 // src/pages/500.astro
     84 interface Props {
     85   error: unknown;
     86 }
     87 <h2>const { error } = Astro.props;</h2>
     88 <p>&lt;div&gt;{error instanceof Error ? error.message : 'Unknown error'}&lt;/div&gt;
     89 </code></pre></p>
     90 <p>If an error occurs rendering this page, your host's default 500 error page will be shown to your visitor in production, and Astro's default error overlay will be shown in development.</p>
     91 </li>
     92 </ul>
     93 <h3>Patch Changes</h3>
     94 <ul>
     95 <li><a href="https://redirect.github.com/withastro/astro/pull/11280">#11280</a> <a href="https://github.com/withastro/astro/commit/fd3645fe8364ec5e280b6802d1468867890d463c"><code>fd3645f</code></a> Thanks <a href="https://github.com/ascorbic"><code>@​ascorbic</code></a>! - Fixes a bug that prevented cookies from being set when using experimental rewrites</li>
     96 </ul>
     97 <!-- raw HTML omitted -->
     98 </blockquote>
     99 <p>... (truncated)</p>
    100 </details>
    101 <details>
    102 <summary>Commits</summary>
    103 <ul>
    104 <li><a href="https://github.com/withastro/astro/commit/58a321193e0c8c1974827d7364eae11722e15607"><code>58a3211</code></a> [ci] release (<a href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/11276">#11276</a>)</li>
    105 <li><a href="https://github.com/withastro/astro/commit/fd3645fe8364ec5e280b6802d1468867890d463c"><code>fd3645f</code></a> fix: allow cookies to be set in rewritten responses (<a href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/11280">#11280</a>)</li>
    106 <li><a href="https://github.com/withastro/astro/commit/7f8f34799528ed0b2011e1ea273bd0636f6e767d"><code>7f8f347</code></a> bug: removes type override from defineAction (<a href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/11292">#11292</a>)</li>
    107 <li><a href="https://github.com/withastro/astro/commit/42a6eceab61f880ba46b6e11cd77237ef29fb324"><code>42a6ece</code></a> [ci] format</li>
    108 <li><a href="https://github.com/withastro/astro/commit/5a9c9a60e7c32aa461b86b5bc667cb955e23d4d9"><code>5a9c9a6</code></a> fix(astro): type generation for empty collections (<a href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/11264">#11264</a>)</li>
    109 <li><a href="https://github.com/withastro/astro/commit/246bd7a516e533af1b6d60dc4f9c0e0350c3be1d"><code>246bd7a</code></a> [ci] format</li>
    110 <li><a href="https://github.com/withastro/astro/commit/4b46bd9bdcbb302f294aa27b8aa07099e104fa17"><code>4b46bd9</code></a> feat: add <code>ShikiTransformer</code> support to the <code>\&lt;Code /&gt;</code> component (<a href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/11197">#11197</a>)</li>
    111 <li><a href="https://github.com/withastro/astro/commit/5c56324c43b20e98454544036673b66761eebf1f"><code>5c56324</code></a> [ci] format</li>
    112 <li><a href="https://github.com/withastro/astro/commit/9042be049157ce859355f911565bc0c3d68f0aa1"><code>9042be0</code></a> feat: 500.astro improvements (<a href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/11134">#11134</a>)</li>
    113 <li><a href="https://github.com/withastro/astro/commit/c44f7f4babbb19350cd673241136bc974b012d51"><code>c44f7f4</code></a> [ci] format</li>
    114 <li>Additional commits viewable in <a href="https://github.com/withastro/astro/commits/astro@4.11.0/packages/astro">compare view</a></li>
    115 </ul>
    116 </details>
    117 <br />
    118 
    119 
    120 [![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.11.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
    121 
    122 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`.
    123 
    124 [//]: # (dependabot-automerge-start)
    125 [//]: # (dependabot-automerge-end)
    126 
    127 ---
    128 
    129 <details>
    130 <summary>Dependabot commands and options</summary>
    131 <br />
    132 
    133 You can trigger Dependabot actions by commenting on this PR:
    134 - `@dependabot rebase` will rebase this PR
    135 - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
    136 - `@dependabot merge` will merge this PR after your CI passes on it
    137 - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
    138 - `@dependabot cancel merge` will cancel a previously requested merge and block automerging
    139 - `@dependabot reopen` will reopen this PR if it is closed
    140 - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    141 - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency
    142 - `@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)
    143 - `@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)
    144 - `@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)
    145 
    146 
    147 </details>
    148