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

52.md (13754B)


      1 # PR #52 Bump astro from 4.0.6 to 4.7.1
      2 
      3 - **Status:** closed
      4 - **Author:** @dependabot[bot]
      5 - **Created:** 2024-05-06T02:03:50Z
      6 - **Branch:** dependabot/npm_and_yarn/astro-4.7.1 → main
      7 - **Closed:** 2024-05-13T01:21:58Z
      8 - **Labels:** dependencies, javascript
      9 - **Diff:** [52.diff](./52.diff)
     10 
     11 ---
     12 
     13 Bumps [astro](https://github.com/withastro/astro/tree/HEAD/packages/astro) from 4.0.6 to 4.7.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.7.1</h2>
     19 <h3>Patch Changes</h3>
     20 <ul>
     21 <li>
     22 <p><a href="https://redirect.github.com/withastro/astro/pull/10911">#10911</a> <a href="https://github.com/withastro/astro/commit/a86dc9d269fc4409c458cfa05dcfaeee12bade2f"><code>a86dc9d</code></a> Thanks <a href="https://github.com/bluwy"><code>@​bluwy</code></a>! - Skips adding CSS dependencies of CSS Vite modules as style tags in the HTML</p>
     23 </li>
     24 <li>
     25 <p><a href="https://redirect.github.com/withastro/astro/pull/10900">#10900</a> <a href="https://github.com/withastro/astro/commit/36bb3b6025eb51f6e027a76a514cc7ebb29deb10"><code>36bb3b6</code></a> Thanks <a href="https://github.com/martrapp"><code>@​martrapp</code></a>! - Detects overlapping navigation and view transitions and automatically aborts all but the most recent one.</p>
     26 </li>
     27 <li>
     28 <p><a href="https://redirect.github.com/withastro/astro/pull/10933">#10933</a> <a href="https://github.com/withastro/astro/commit/007d17fee072955d4acb846a06d9eb666e908ef6"><code>007d17f</code></a> Thanks <a href="https://github.com/Princesseuh"><code>@​Princesseuh</code></a>! - Fixes <code>app.toggleState</code> not working correctly</p>
     29 </li>
     30 <li>
     31 <p><a href="https://redirect.github.com/withastro/astro/pull/10931">#10931</a> <a href="https://github.com/withastro/astro/commit/4ce5ced44d490f4c6df771995aef14e11910ec57"><code>4ce5ced</code></a> Thanks <a href="https://github.com/ktym4a"><code>@​ktym4a</code></a>! - Fixes <code>toggleNotification()</code>'s parameter type for the notification level not using the proper levels</p>
     32 </li>
     33 </ul>
     34 <h2>astro@4.7.0</h2>
     35 <h3>Minor Changes</h3>
     36 <ul>
     37 <li>
     38 <p><a href="https://redirect.github.com/withastro/astro/pull/10665">#10665</a> <a href="https://github.com/withastro/astro/commit/7b4f2840203fe220758934f1366485f788727f0d"><code>7b4f284</code></a> Thanks <a href="https://github.com/Princesseuh"><code>@​Princesseuh</code></a>! - Adds new utilities to ease the creation of toolbar apps including <code>defineToolbarApp</code> to make it easier to define your toolbar app and <code>app</code> and <code>server</code> helpers for easier communication between the toolbar and the server. These new utilities abstract away some of the boilerplate code that is common in toolbar apps, and lower the barrier of entry for app authors.</p>
     39 <p>For example, instead of creating an event listener for the <code>app-toggled</code> event and manually typing the value in the callback, you can now use the <code>onAppToggled</code> method. Additionally, communicating with the server does not require knowing any of the Vite APIs anymore, as a new <code>server</code> object is passed to the <code>init</code> function that contains easy to use methods for communicating with the server.</p>
     40 <pre lang="diff"><code>import { defineToolbarApp } from &quot;astro/toolbar&quot;;
     41 <p>export default defineToolbarApp({
     42 init(canvas, app, server) {</p>
     43 <ul>
     44 <li>app.addEventListener(&quot;app-toggled&quot;, (e) =&gt; {</li>
     45 <li>
     46 <pre><code> console.log(`App is now ${state ? &amp;quot;enabled&amp;quot; : &amp;quot;disabled&amp;quot;}`);.
     47 </code></pre>
     48 </li>
     49 <li>});</li>
     50 </ul>
     51 <ul>
     52 <li>app.onToggled(({ state }) =&gt; {</li>
     53 <li>
     54 <pre><code>   console.log(`App is now ${state ? &amp;quot;enabled&amp;quot; : &amp;quot;disabled&amp;quot;}`);
     55 </code></pre>
     56 </li>
     57 <li>});</li>
     58 </ul>
     59 <ul>
     60 <li>if (import.meta.hot) {</li>
     61 <li>
     62 <pre><code> import.meta.hot.send(&amp;quot;my-app:my-client-event&amp;quot;, { message: &amp;quot;world&amp;quot; });
     63 </code></pre>
     64 </li>
     65 <li>}</li>
     66 </ul>
     67 <ul>
     68 <li>server.send(&quot;my-app:my-client-event&quot;, { message: &quot;world&quot; })</li>
     69 </ul>
     70 <ul>
     71 <li>if (import.meta.hot) {</li>
     72 <li>
     73 <pre><code> import.meta.hot.on(&amp;quot;my-server-event&amp;quot;, (data: {message: string}) =&amp;gt; {
     74 </code></pre>
     75 </li>
     76 <li>
     77 <pre><code>   console.log(data.message);
     78 </code></pre>
     79 </li>
     80 <li>
     81 <pre><code> });
     82 </code></pre>
     83 </li>
     84 <li>}</li>
     85 </ul>
     86 <ul>
     87 <li>server.on&lt;{ message: string }&gt;(&quot;my-server-event&quot;, (data) =&gt; {</li>
     88 <li>
     89 <pre><code> console.log(data.message); // data is typed using the type parameter
     90 </code></pre>
     91 </li>
     92 <li>});
     93 },
     94 })
     95 </code></pre></li>
     96 </ul>
     97 </li>
     98 </ul>
     99 <!-- raw HTML omitted -->
    100 </blockquote>
    101 <p>... (truncated)</p>
    102 </details>
    103 <details>
    104 <summary>Changelog</summary>
    105 <p><em>Sourced from <a href="https://github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md">astro's changelog</a>.</em></p>
    106 <blockquote>
    107 <h2>4.7.1</h2>
    108 <h3>Patch Changes</h3>
    109 <ul>
    110 <li>
    111 <p><a href="https://redirect.github.com/withastro/astro/pull/10911">#10911</a> <a href="https://github.com/withastro/astro/commit/a86dc9d269fc4409c458cfa05dcfaeee12bade2f"><code>a86dc9d</code></a> Thanks <a href="https://github.com/bluwy"><code>@​bluwy</code></a>! - Skips adding CSS dependencies of CSS Vite modules as style tags in the HTML</p>
    112 </li>
    113 <li>
    114 <p><a href="https://redirect.github.com/withastro/astro/pull/10900">#10900</a> <a href="https://github.com/withastro/astro/commit/36bb3b6025eb51f6e027a76a514cc7ebb29deb10"><code>36bb3b6</code></a> Thanks <a href="https://github.com/martrapp"><code>@​martrapp</code></a>! - Detects overlapping navigation and view transitions and automatically aborts all but the most recent one.</p>
    115 </li>
    116 <li>
    117 <p><a href="https://redirect.github.com/withastro/astro/pull/10933">#10933</a> <a href="https://github.com/withastro/astro/commit/007d17fee072955d4acb846a06d9eb666e908ef6"><code>007d17f</code></a> Thanks <a href="https://github.com/Princesseuh"><code>@​Princesseuh</code></a>! - Fixes <code>app.toggleState</code> not working correctly</p>
    118 </li>
    119 <li>
    120 <p><a href="https://redirect.github.com/withastro/astro/pull/10931">#10931</a> <a href="https://github.com/withastro/astro/commit/4ce5ced44d490f4c6df771995aef14e11910ec57"><code>4ce5ced</code></a> Thanks <a href="https://github.com/ktym4a"><code>@​ktym4a</code></a>! - Fixes <code>toggleNotification()</code>'s parameter type for the notification level not using the proper levels</p>
    121 </li>
    122 </ul>
    123 <h2>4.7.0</h2>
    124 <h3>Minor Changes</h3>
    125 <ul>
    126 <li>
    127 <p><a href="https://redirect.github.com/withastro/astro/pull/10665">#10665</a> <a href="https://github.com/withastro/astro/commit/7b4f2840203fe220758934f1366485f788727f0d"><code>7b4f284</code></a> Thanks <a href="https://github.com/Princesseuh"><code>@​Princesseuh</code></a>! - Adds new utilities to ease the creation of toolbar apps including <code>defineToolbarApp</code> to make it easier to define your toolbar app and <code>app</code> and <code>server</code> helpers for easier communication between the toolbar and the server. These new utilities abstract away some of the boilerplate code that is common in toolbar apps, and lower the barrier of entry for app authors.</p>
    128 <p>For example, instead of creating an event listener for the <code>app-toggled</code> event and manually typing the value in the callback, you can now use the <code>onAppToggled</code> method. Additionally, communicating with the server does not require knowing any of the Vite APIs anymore, as a new <code>server</code> object is passed to the <code>init</code> function that contains easy to use methods for communicating with the server.</p>
    129 <pre lang="diff"><code>import { defineToolbarApp } from &quot;astro/toolbar&quot;;
    130 <p>export default defineToolbarApp({
    131 init(canvas, app, server) {</p>
    132 <ul>
    133 <li>app.addEventListener(&quot;app-toggled&quot;, (e) =&gt; {</li>
    134 <li>
    135 <pre><code> console.log(`App is now ${state ? &amp;quot;enabled&amp;quot; : &amp;quot;disabled&amp;quot;}`);.
    136 </code></pre>
    137 </li>
    138 <li>});</li>
    139 </ul>
    140 <ul>
    141 <li>app.onToggled(({ state }) =&gt; {</li>
    142 <li>
    143 <pre><code>   console.log(`App is now ${state ? &amp;quot;enabled&amp;quot; : &amp;quot;disabled&amp;quot;}`);
    144 </code></pre>
    145 </li>
    146 <li>});</li>
    147 </ul>
    148 <ul>
    149 <li>if (import.meta.hot) {</li>
    150 <li>
    151 <pre><code> import.meta.hot.send(&amp;quot;my-app:my-client-event&amp;quot;, { message: &amp;quot;world&amp;quot; });
    152 </code></pre>
    153 </li>
    154 <li>}</li>
    155 </ul>
    156 <ul>
    157 <li>server.send(&quot;my-app:my-client-event&quot;, { message: &quot;world&quot; })</li>
    158 </ul>
    159 <ul>
    160 <li>if (import.meta.hot) {</li>
    161 <li>
    162 <pre><code> import.meta.hot.on(&amp;quot;my-server-event&amp;quot;, (data: {message: string}) =&amp;gt; {
    163 </code></pre>
    164 </li>
    165 <li>
    166 <pre><code>   console.log(data.message);
    167 </code></pre>
    168 </li>
    169 <li>
    170 <pre><code> });
    171 </code></pre>
    172 </li>
    173 <li>}</li>
    174 </ul>
    175 <ul>
    176 <li>server.on&lt;{ message: string }&gt;(&quot;my-server-event&quot;, (data) =&gt; {</li>
    177 <li>
    178 <pre><code> console.log(data.message); // data is typed using the type parameter
    179 </code></pre>
    180 </li>
    181 <li>});
    182 },
    183 </code></pre></li>
    184 </ul>
    185 </li>
    186 </ul>
    187 <!-- raw HTML omitted -->
    188 </blockquote>
    189 <p>... (truncated)</p>
    190 </details>
    191 <details>
    192 <summary>Commits</summary>
    193 <ul>
    194 <li><a href="https://github.com/withastro/astro/commit/9a231a4dd7e14ecb9cb95842060a4a24e4c03f02"><code>9a231a4</code></a> [ci] release (<a href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/10890">#10890</a>)</li>
    195 <li><a href="https://github.com/withastro/astro/commit/007d17fee072955d4acb846a06d9eb666e908ef6"><code>007d17f</code></a> Fixes toggleState (<a href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/10933">#10933</a>)</li>
    196 <li><a href="https://github.com/withastro/astro/commit/4ce5ced44d490f4c6df771995aef14e11910ec57"><code>4ce5ced</code></a> change: NotificationPayload type (<a href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/10931">#10931</a>)</li>
    197 <li><a href="https://github.com/withastro/astro/commit/a146cf1012483b030a8146fb3035801f3c0c9099"><code>a146cf1</code></a> Fix typos (<a href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/10923">#10923</a>)</li>
    198 <li><a href="https://github.com/withastro/astro/commit/36bb3b6025eb51f6e027a76a514cc7ebb29deb10"><code>36bb3b6</code></a> fix(astro): newer navigation aborts existing one (<a href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/10900">#10900</a>)</li>
    199 <li><a href="https://github.com/withastro/astro/commit/5e545e8c6a9931de4dff1dcfa213f30e3e82727e"><code>5e545e8</code></a> [ci] format</li>
    200 <li><a href="https://github.com/withastro/astro/commit/a86dc9d269fc4409c458cfa05dcfaeee12bade2f"><code>a86dc9d</code></a> Skip crawling into CSS requests when crawling module graph (<a href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/10911">#10911</a>)</li>
    201 <li><a href="https://github.com/withastro/astro/commit/05d58eff075c904cdab85fe315ee4f5820060d00"><code>05d58ef</code></a> fix(deps): update all non-major dependencies (<a href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/10901">#10901</a>)</li>
    202 <li><a href="https://github.com/withastro/astro/commit/568a113bc3c84df15a75d1886476b795a825f34f"><code>568a113</code></a> [ci] format</li>
    203 <li><a href="https://github.com/withastro/astro/commit/87b31fbf6ecaeea6757fa630f4b3a9f12d76335c"><code>87b31fb</code></a> chore(astro): move error-map (<a href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/10898">#10898</a>)</li>
    204 <li>Additional commits viewable in <a href="https://github.com/withastro/astro/commits/astro@4.7.1/packages/astro">compare view</a></li>
    205 </ul>
    206 </details>
    207 <br />
    208 
    209 
    210 [![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.7.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
    211 
    212 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`.
    213 
    214 [//]: # (dependabot-automerge-start)
    215 [//]: # (dependabot-automerge-end)
    216 
    217 ---
    218 
    219 <details>
    220 <summary>Dependabot commands and options</summary>
    221 <br />
    222 
    223 You can trigger Dependabot actions by commenting on this PR:
    224 - `@dependabot rebase` will rebase this PR
    225 - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
    226 - `@dependabot merge` will merge this PR after your CI passes on it
    227 - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
    228 - `@dependabot cancel merge` will cancel a previously requested merge and block automerging
    229 - `@dependabot reopen` will reopen this PR if it is closed
    230 - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    231 - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency
    232 - `@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)
    233 - `@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)
    234 - `@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)
    235 
    236 
    237 </details>
    238 
    239 
    240 ## Comments
    241 
    242 ### @dependabot[bot] — 2024-05-13T01:21:58Z
    243 
    244 Superseded by #53.
    245