Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Snyk] Upgrade react-toastify from 9.0.3 to 9.1.3 #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tobistudio
Copy link
Owner

This PR was automatically created by Snyk using the credentials of a real user.


Snyk has created this PR to upgrade react-toastify from 9.0.3 to 9.1.3.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 13 versions ahead of your current version.
  • The recommended version was released 6 months ago, on 2023-05-14.
Release notes
Package name: react-toastify
  • 9.1.3 - 2023-05-14

    Release note

    • Add support for RSC (next app router): #951
    • Partially address Toast is undefined || Uncaught TypeError: Cannot read properties of undefined (reading 'content') #858 #952
    • Bump dependencies
  • 9.1.2 - 2023-03-21

    Release notes

    Mainly bug fixes as I'm working on the next major release.

    🕷Bugfixes

    • fix resetting options #921 #920
    • fix autoClose on update #918
    • fix invalid CSS translate #925
  • 9.1.2-rsc - 2023-05-14
  • 9.1.1 - 2022-11-02

    9.1.1

  • 9.1.0 - 2022-11-01

    Release notes

    🚀 Features

    • toast.promise let you type data for each state. This is useful when rendering something based on the response.

    For example:

    interface Success {
    username: string
    }

    interface Error {
    err: string
    }

    toast.promise<Success,Error>(myPromise, {
    success: {
    render({ data }) {
    return data.username;
    }
    },
    error: {
    render({ data }) {
    return data.err;
    }
    }
    })

    • toast.update accepts a generic as well to specify the data type
    interface TData {
    username: string
    }

    toast.update<TData>(id, {
    data: payload,
    render({ data }) {
    return hello <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">data</span><span class="pl-kos">.</span><span class="pl-c1">username</span><span class="pl-kos">}</span></span>
    }
    })

    🕷 Bugfixes

    • fix progress countdown stops on mobile #580
    • prevent clash with ios native gesture #397
    • fix toast when a word is too long #864
    • fix missing types declarations in exports #843
    • fix toast.done not dismissing toast #853
    • fix cursor when close on click is false #839

    🚨 Deprecated API

    Added deprecation notice for the API below. They will be removed in the next major release

    API Why Alternative
    onClick Not used that much, it's increasing the API surface for nothing Can easily be implemented in userland. Just render a react component and attach the handler to it. toast(<div onClick={doSomething}>hello</div>)
    onOpen Does not play well with useEffect behavior in react18 (runs twice in dev mode) see #741 A better approach is to use toast.onChange see https://fkhadra.github.io/react-toastify/listen-for-changes/
    onClose Does not play well with useEffect behavior in react18 (runs twice in dev mode) see #741 A better approach is to use toast.onChange see https://fkhadra.github.io/react-toastify/listen-for-changes/
    toast.POSITION Reduce bundle size :) Thanks to typescript, we now have autocomplete
    toast.TYPE Reduce bundle size :) Thanks to typescript, we now have autocomplete

    ⚙️ Chore

    • bump dependencies
    • refactor internal
  • 9.0.8 - 2022-08-07

    Release notes

    🐞Bugfixes

    • fix draggable in strict mode #752
    • fix sass import #771
    • fix progress bar overflow for WebKit browser(safari, ios...) #791
    • fix dismissed toasts while the container is unmounted still appear when the container is mounted #811
    • fix AutoClose doesn't work on update #810 #782 #720

    Chore

    • master branch renamed to main 💖
  • 9.0.7 - 2022-07-19

    Release note

    Bugfix

    • fix memory leak when multiple containers are used #772, thanks to @ roblotter

    Chore

    • build artifacts are no longer minified. This was causing issues with some bundlers like vitejs #797
  • 9.0.7-fix-autoclose-2 - 2022-08-04
  • 9.0.7-fix-autoclose-1 - 2022-08-04
  • 9.0.6 - 2022-07-17

    Release note

    Bugfix

    • fix missing generic in useNotificationCenter typing #796
  • 9.0.6-vite-1 - 2022-07-18

    9.0.6-vite-1

  • 9.0.5 - 2022-06-20

    Release note

    🕷 Bugfix

    • inject-style has now the correct file-name in bundle #779
  • 9.0.4 - 2022-06-07

    Release note

    This release does not work with CRA v4(2 years old) due to the lack of support for es modules. I strongly advise to upgrade to lastest CRA if possible.
    Alternative solution:

    Bugfix

  • 9.0.3 - 2022-05-31
from react-toastify GitHub release notes
Commit messages
Package name: react-toastify

Compare


Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants