[Snyk] Upgrade react-toastify from 9.0.3 to 9.1.3 #3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Release notes
Package name: react-toastify
Release note
Toast is undefined || Uncaught TypeError: Cannot read properties of undefined (reading 'content')
#858 #952Release notes
Mainly bug fixes as I'm working on the next major release.
🕷Bugfixes
9.1.1
Release notes
🚀 Features
toast.promise
let you typedata
for each state. This is useful when rendering something based on the response.For example:
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 typeusername: 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
toast.done
not dismissing toast #853🚨 Deprecated API
Added deprecation notice for the API below. They will be removed in the next major release
onClick
toast(<div onClick={doSomething}>hello</div>)
onOpen
useEffect
behavior in react18 (runs twice in dev mode) see #741toast.onChange
see https://fkhadra.github.io/react-toastify/listen-for-changes/onClose
useEffect
behavior in react18 (runs twice in dev mode) see #741toast.onChange
see https://fkhadra.github.io/react-toastify/listen-for-changes/toast.POSITION
toast.TYPE
⚙️ Chore
Release notes
🐞Bugfixes
Chore
Release note
Bugfix
Chore
Release note
Bugfix
useNotificationCenter
typing #7969.0.6-vite-1
Release note
🕷 Bugfix
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
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