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

51.md (11490B)


      1 # PR #51 Bump astro from 4.0.6 to 4.7.0
      2 
      3 - **Status:** closed
      4 - **Author:** @dependabot[bot]
      5 - **Created:** 2024-04-29T01:44:57Z
      6 - **Branch:** dependabot/npm_and_yarn/astro-4.7.0 → main
      7 - **Closed:** 2024-05-06T02:03:52Z
      8 - **Labels:** dependencies, javascript
      9 - **Diff:** [51.diff](./51.diff)
     10 
     11 ---
     12 
     13 Bumps [astro](https://github.com/withastro/astro/tree/HEAD/packages/astro) from 4.0.6 to 4.7.0.
     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.0</h2>
     19 <h3>Minor Changes</h3>
     20 <ul>
     21 <li>
     22 <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>
     23 <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>
     24 <pre lang="diff"><code>import { defineToolbarApp } from &quot;astro/toolbar&quot;;
     25 <p>export default defineToolbarApp({
     26 init(canvas, app, server) {</p>
     27 <ul>
     28 <li>app.addEventListener(&quot;app-toggled&quot;, (e) =&gt; {</li>
     29 <li>
     30 <pre><code> console.log(`App is now ${state ? &amp;quot;enabled&amp;quot; : &amp;quot;disabled&amp;quot;}`);.
     31 </code></pre>
     32 </li>
     33 <li>});</li>
     34 </ul>
     35 <ul>
     36 <li>app.onToggled(({ state }) =&gt; {</li>
     37 <li>
     38 <pre><code>   console.log(`App is now ${state ? &amp;quot;enabled&amp;quot; : &amp;quot;disabled&amp;quot;}`);
     39 </code></pre>
     40 </li>
     41 <li>});</li>
     42 </ul>
     43 <ul>
     44 <li>if (import.meta.hot) {</li>
     45 <li>
     46 <pre><code> import.meta.hot.send(&amp;quot;my-app:my-client-event&amp;quot;, { message: &amp;quot;world&amp;quot; });
     47 </code></pre>
     48 </li>
     49 <li>}</li>
     50 </ul>
     51 <ul>
     52 <li>server.send(&quot;my-app:my-client-event&quot;, { message: &quot;world&quot; })</li>
     53 </ul>
     54 <ul>
     55 <li>if (import.meta.hot) {</li>
     56 <li>
     57 <pre><code> import.meta.hot.on(&amp;quot;my-server-event&amp;quot;, (data: {message: string}) =&amp;gt; {
     58 </code></pre>
     59 </li>
     60 <li>
     61 <pre><code>   console.log(data.message);
     62 </code></pre>
     63 </li>
     64 <li>
     65 <pre><code> });
     66 </code></pre>
     67 </li>
     68 <li>}</li>
     69 </ul>
     70 <ul>
     71 <li>server.on&lt;{ message: string }&gt;(&quot;my-server-event&quot;, (data) =&gt; {</li>
     72 <li>
     73 <pre><code> console.log(data.message); // data is typed using the type parameter
     74 </code></pre>
     75 </li>
     76 <li>});
     77 },
     78 })
     79 </code></pre></li>
     80 </ul>
     81 <p>Server helpers are also available on the server side, for use in your integrations, through the new <code>toolbar</code> object:</p>
     82 <pre lang="ts"><code>&quot;astro:server:setup&quot;: ({ toolbar }) =&gt; {
     83   toolbar.on&lt;{ message: string }&gt;(&quot;my-app:my-client-event&quot;, (data) =&gt; {
     84     console.log(data.message);
     85     toolbar.send(&quot;my-server-event&quot;, { message: &quot;hello&quot; });
     86   });
     87 }
     88 </code></pre>
     89 </li>
     90 </ul>
     91 <!-- raw HTML omitted -->
     92 </blockquote>
     93 <p>... (truncated)</p>
     94 </details>
     95 <details>
     96 <summary>Changelog</summary>
     97 <p><em>Sourced from <a href="https://github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md">astro's changelog</a>.</em></p>
     98 <blockquote>
     99 <h2>4.7.0</h2>
    100 <h3>Minor Changes</h3>
    101 <ul>
    102 <li>
    103 <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>
    104 <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>
    105 <pre lang="diff"><code>import { defineToolbarApp } from &quot;astro/toolbar&quot;;
    106 <p>export default defineToolbarApp({
    107 init(canvas, app, server) {</p>
    108 <ul>
    109 <li>app.addEventListener(&quot;app-toggled&quot;, (e) =&gt; {</li>
    110 <li>
    111 <pre><code> console.log(`App is now ${state ? &amp;quot;enabled&amp;quot; : &amp;quot;disabled&amp;quot;}`);.
    112 </code></pre>
    113 </li>
    114 <li>});</li>
    115 </ul>
    116 <ul>
    117 <li>app.onToggled(({ state }) =&gt; {</li>
    118 <li>
    119 <pre><code>   console.log(`App is now ${state ? &amp;quot;enabled&amp;quot; : &amp;quot;disabled&amp;quot;}`);
    120 </code></pre>
    121 </li>
    122 <li>});</li>
    123 </ul>
    124 <ul>
    125 <li>if (import.meta.hot) {</li>
    126 <li>
    127 <pre><code> import.meta.hot.send(&amp;quot;my-app:my-client-event&amp;quot;, { message: &amp;quot;world&amp;quot; });
    128 </code></pre>
    129 </li>
    130 <li>}</li>
    131 </ul>
    132 <ul>
    133 <li>server.send(&quot;my-app:my-client-event&quot;, { message: &quot;world&quot; })</li>
    134 </ul>
    135 <ul>
    136 <li>if (import.meta.hot) {</li>
    137 <li>
    138 <pre><code> import.meta.hot.on(&amp;quot;my-server-event&amp;quot;, (data: {message: string}) =&amp;gt; {
    139 </code></pre>
    140 </li>
    141 <li>
    142 <pre><code>   console.log(data.message);
    143 </code></pre>
    144 </li>
    145 <li>
    146 <pre><code> });
    147 </code></pre>
    148 </li>
    149 <li>}</li>
    150 </ul>
    151 <ul>
    152 <li>server.on&lt;{ message: string }&gt;(&quot;my-server-event&quot;, (data) =&gt; {</li>
    153 <li>
    154 <pre><code> console.log(data.message); // data is typed using the type parameter
    155 </code></pre>
    156 </li>
    157 <li>});
    158 },
    159 })
    160 </code></pre></li>
    161 </ul>
    162 <p>Server helpers are also available on the server side, for use in your integrations, through the new <code>toolbar</code> object:</p>
    163 <pre lang="ts"><code>&quot;astro:server:setup&quot;: ({ toolbar }) =&gt; {
    164   toolbar.on&lt;{ message: string }&gt;(&quot;my-app:my-client-event&quot;, (data) =&gt; {
    165     console.log(data.message);
    166     toolbar.send(&quot;my-server-event&quot;, { message: &quot;hello&quot; });
    167   });
    168 }
    169 </code></pre>
    170 </li>
    171 </ul>
    172 <!-- raw HTML omitted -->
    173 </blockquote>
    174 <p>... (truncated)</p>
    175 </details>
    176 <details>
    177 <summary>Commits</summary>
    178 <ul>
    179 <li><a href="https://github.com/withastro/astro/commit/9876163406941e92fa5d10275090deec5ddb1a70"><code>9876163</code></a> [ci] release (<a href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/10865">#10865</a>)</li>
    180 <li><a href="https://github.com/withastro/astro/commit/fc097e81a85795701c21eaab8a53582e7de0fb45"><code>fc097e8</code></a> [ci] format</li>
    181 <li><a href="https://github.com/withastro/astro/commit/7b4f2840203fe220758934f1366485f788727f0d"><code>7b4f284</code></a> feat(toolbar): Toolbar API improvements (<a href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/10665">#10665</a>)</li>
    182 <li><a href="https://github.com/withastro/astro/commit/6fc4c0e420da7629b4cfc28ee7efce1d614447be"><code>6fc4c0e</code></a> feat: add a new message telling the user that a new version of Astro is avail...</li>
    183 <li><a href="https://github.com/withastro/astro/commit/43ead8fbd5112823118060175c7a4a22522cc325"><code>43ead8f</code></a> Enable <code>allowJs</code> for <code>strictest.json</code> (<a href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/10762">#10762</a>)</li>
    184 <li><a href="https://github.com/withastro/astro/commit/8b59d5d078ff40576b8cbee432279c6ad044a1a9"><code>8b59d5d</code></a> Update sharp to 0.33 to fix issue with Alpine Linux (<a href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/10684">#10684</a>)</li>
    185 <li><a href="https://github.com/withastro/astro/commit/b673bc850593d5af25793d0358c00797477fa373"><code>b673bc8</code></a> Fix an issue where <code>astro build</code> writes type declaration files to <code>outDir</code> (#...</li>
    186 <li><a href="https://github.com/withastro/astro/commit/a94046588cce2d34ce4bd0c935f580d0616ab5b2"><code>a940465</code></a> [ci] release (<a href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/10842">#10842</a>)</li>
    187 <li><a href="https://github.com/withastro/astro/commit/9326531333016f15e7d8338b2888cb734ef85d60"><code>9326531</code></a> [ci] format</li>
    188 <li><a href="https://github.com/withastro/astro/commit/30cf82ac3e970a6a3c0f07db1340dd7152d1c35d"><code>30cf82a</code></a> Prevents inputs from changing ViewTransitions' form method or action (<a href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/10856">#10856</a>)</li>
    189 <li>Additional commits viewable in <a href="https://github.com/withastro/astro/commits/astro@4.7.0/packages/astro">compare view</a></li>
    190 </ul>
    191 </details>
    192 <br />
    193 
    194 
    195 [![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.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
    196 
    197 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`.
    198 
    199 [//]: # (dependabot-automerge-start)
    200 [//]: # (dependabot-automerge-end)
    201 
    202 ---
    203 
    204 <details>
    205 <summary>Dependabot commands and options</summary>
    206 <br />
    207 
    208 You can trigger Dependabot actions by commenting on this PR:
    209 - `@dependabot rebase` will rebase this PR
    210 - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
    211 - `@dependabot merge` will merge this PR after your CI passes on it
    212 - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
    213 - `@dependabot cancel merge` will cancel a previously requested merge and block automerging
    214 - `@dependabot reopen` will reopen this PR if it is closed
    215 - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    216 - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency
    217 - `@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)
    218 - `@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)
    219 - `@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)
    220 
    221 
    222 </details>
    223 
    224 
    225 ## Comments
    226 
    227 ### @dependabot[bot] — 2024-05-06T02:03:52Z
    228 
    229 Superseded by #52.
    230