matrix-art.meta

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

182.md (7160B)


      1 # PR #182 Bump react-toastify from 8.2.0 to 9.0.0
      2 
      3 - **Status:** closed
      4 - **Author:** @dependabot[bot]
      5 - **Created:** 2022-05-04T08:33:28Z
      6 - **Branch:** dependabot/npm_and_yarn/react-toastify-9.0.0 → main
      7 - **Closed:** 2022-05-06T08:34:27Z
      8 - **Labels:** dependencies, javascript
      9 - **Assignees:** @MTRNord
     10 - **Reviewers:** @MTRNord
     11 - **Diff:** [182.diff](./182.diff)
     12 
     13 ---
     14 
     15 Bumps [react-toastify](https://github.com/fkhadra/react-toastify) from 8.2.0 to 9.0.0.
     16 <details>
     17 <summary>Release notes</summary>
     18 <p><em>Sourced from <a href="https://github.com/fkhadra/react-toastify/releases">react-toastify's releases</a>.</em></p>
     19 <blockquote>
     20 <h2>v9.0.0</h2>
     21 <h1>Release note</h1>
     22 <h2>🚀 What is new in v9</h2>
     23 <p>Say hello to addons! What are addons? So, addons are like DLCs in video games but for react-toastify 😆. More seriously, you can think of it as utilities built around react-toastify. For example, custom theme, hooks, components etc...</p>
     24 <h3>useNotificationCenter</h3>
     25 <p>The first addon that I would like to introduce is the <code>useNotificationCenter</code> headless hook! As the name suggests, it let you build your notification center on top of react-toastify. See for yourself 👇</p>
     26 <p><a href="https://user-images.githubusercontent.com/5574267/166549174-48422a61-ff7b-4eeb-b53f-d903db3d1595.mov">https://user-images.githubusercontent.com/5574267/166549174-48422a61-ff7b-4eeb-b53f-d903db3d1595.mov</a></p>
     27 <p>Another example using MUI.</p>
     28 <p><a href="https://codesandbox.io/s/mui-notification-center-zvxod3?fontsize=14&amp;hidenavigation=1&amp;theme=dark"><img src="https://codesandbox.io/static/img/play-codesandbox.svg" alt="Edit mui-notification-center" /></a>
     29 Check the <a href="https://github.com/fkhadra/react-toastify/blob/HEAD/react-toastify/addons/use-notification-center">documentation</a> for more details.</p>
     30 <h3>Stacked toasts</h3>
     31 <p>This second addon will be released later. There are a bunch of details that I need to cover and I don't want to release something too buggy. Nevertheless, I'm really excited about it and I think it's worth showcasing anyway.</p>
     32 <p>I call it <code>StackedContainer</code> for now, it's an alternative to the <code>ToastContainer</code> component.</p>
     33 <p><img src="https://user-images.githubusercontent.com/5574267/160688000-1d01d949-d9e1-41f4-858c-f5c9a33b901d.gif" alt="stacked-container" /></p>
     34 <h2>💥 Breaking changes</h2>
     35 <p>There are 2 breaking changes. The API change for <code>toast.onChange</code> and the removal of <code>toast.configure</code>.</p>
     36 <h3><code>toast.onChange</code></h3>
     37 <p>The previous API was returning the <code>numberOfToastDisplayed</code> and the <code>containerId</code>. Honestly, this API seems to be incomplete.</p>
     38 <p>For example, with the old API, if I wanted to do some logging this would be very difficult because I don't have enough data to log.</p>
     39 <pre lang="tsx"><code>toast.onChange((numberOfToastDisplayed, containerId) =&gt; {
     40   logger.info(&quot;nothing useful to log, ...&quot;)
     41 })
     42 </code></pre>
     43 <p>The new API offers more possibilities. The callback will receive a <code>ToastItem</code>. The item provides a bunch of useful properties <code>status</code>, <code>content</code>, <code>id</code>, <code>data</code>, etc...</p>
     44 <pre lang="jsx"><code>interface ToastItem&lt;Data = {}&gt; {
     45     id: Id;
     46     content: React.ReactNode;
     47 &lt;/tr&gt;&lt;/table&gt; 
     48 </code></pre>
     49 </blockquote>
     50 <p>... (truncated)</p>
     51 </details>
     52 <details>
     53 <summary>Commits</summary>
     54 <ul>
     55 <li><a href="https://github.com/fkhadra/react-toastify/commit/c7533cf777ced244db4c8f468c6d5553166a634a"><code>c7533cf</code></a> 9.0.0</li>
     56 <li><a href="https://github.com/fkhadra/react-toastify/commit/843c787b080d1947a42295264797c38c5eb09ba4"><code>843c787</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/fkhadra/react-toastify/issues/731">#731</a> from fkhadra/next</li>
     57 <li><a href="https://github.com/fkhadra/react-toastify/commit/d390b492edc12d1e4c6ba0e8d9e87a81ae26ab92"><code>d390b49</code></a> bump deps</li>
     58 <li><a href="https://github.com/fkhadra/react-toastify/commit/bcc743cd8a8e53fe858c47140f2468c22a64ba23"><code>bcc743c</code></a> 9.0.0-rc-2</li>
     59 <li><a href="https://github.com/fkhadra/react-toastify/commit/132cea13abe5ca3febd97f7b2552ef309a2a8310"><code>132cea1</code></a> move example to react18</li>
     60 <li><a href="https://github.com/fkhadra/react-toastify/commit/fb7687655df6806d124e1aab907f7eccbbf6c54d"><code>fb76876</code></a> bump react version</li>
     61 <li><a href="https://github.com/fkhadra/react-toastify/commit/22d632e91d8a458faf83ae112cc723e2821597ac"><code>22d632e</code></a> 9.0.0-rc-1</li>
     62 <li><a href="https://github.com/fkhadra/react-toastify/commit/6388be152b44059b60150f6eb8f83c9cf3dbcb29"><code>6388be1</code></a> bump dependencies</li>
     63 <li><a href="https://github.com/fkhadra/react-toastify/commit/ae9751e649b9095c7d4324ac181a0f37394054a6"><code>ae9751e</code></a> update contributing guide</li>
     64 <li><a href="https://github.com/fkhadra/react-toastify/commit/1979d75916d1919a0df10a55037651e904c1e3e6"><code>1979d75</code></a> bump example deps</li>
     65 <li>Additional commits viewable in <a href="https://github.com/fkhadra/react-toastify/compare/v8.2.0...v9.0.0">compare view</a></li>
     66 </ul>
     67 </details>
     68 <br />
     69 
     70 
     71 [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=react-toastify&package-manager=npm_and_yarn&previous-version=8.2.0&new-version=9.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
     72 
     73 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`.
     74 
     75 [//]: # (dependabot-automerge-start)
     76 [//]: # (dependabot-automerge-end)
     77 
     78 ---
     79 
     80 <details>
     81 <summary>Dependabot commands and options</summary>
     82 <br />
     83 
     84 You can trigger Dependabot actions by commenting on this PR:
     85 - `@dependabot rebase` will rebase this PR
     86 - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
     87 - `@dependabot merge` will merge this PR after your CI passes on it
     88 - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
     89 - `@dependabot cancel merge` will cancel a previously requested merge and block automerging
     90 - `@dependabot reopen` will reopen this PR if it is closed
     91 - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
     92 - `@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)
     93 - `@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)
     94 - `@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)
     95 
     96 
     97 </details>
     98 
     99 
    100 ## Comments
    101 
    102 ### @dependabot[bot] — 2022-05-06T08:34:26Z
    103 
    104 Superseded by #183.
    105