Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

fix(deps): update dependency react-toastify to v9.1.3 #125

Merged
merged 1 commit into from
Aug 9, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 19, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
react-toastify 9.0.8 -> 9.1.3 age adoption passing confidence

Release Notes

fkhadra/react-toastify (react-toastify)

v9.1.3

Compare Source

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

v9.1.2

Compare Source

Release notes

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

🕷Bugfixes

v9.1.1

Compare Source

v9.1.0

Compare Source

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 ${data.username}`
  }
})

🕷 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

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - "after 10pm every weekday,before 5am every weekday,every weekend" (UTC).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/react-toastify-9.x branch 13 times, most recently from 8643a0d to 9e8d1fe Compare July 21, 2023 10:01
@renovate renovate bot force-pushed the renovate/react-toastify-9.x branch 5 times, most recently from 77d7d8a to a5dc1aa Compare August 3, 2023 09:20
@renovate renovate bot force-pushed the renovate/react-toastify-9.x branch from a5dc1aa to 6b9210c Compare August 4, 2023 12:05
@renovate renovate bot temporarily deployed to ci August 4, 2023 12:05 Inactive
@renovate renovate bot force-pushed the renovate/react-toastify-9.x branch 2 times, most recently from 1abad1c to c37a1a8 Compare August 4, 2023 13:36
@renovate renovate bot temporarily deployed to ci August 4, 2023 13:36 Inactive
@renovate renovate bot force-pushed the renovate/react-toastify-9.x branch from c37a1a8 to b528c30 Compare August 4, 2023 13:42
@renovate renovate bot temporarily deployed to ci August 4, 2023 13:42 Inactive
@renovate renovate bot force-pushed the renovate/react-toastify-9.x branch from b528c30 to 0189630 Compare August 4, 2023 13:51
@renovate renovate bot temporarily deployed to ci August 4, 2023 13:51 Inactive
@renovate renovate bot force-pushed the renovate/react-toastify-9.x branch from 0189630 to b8bc431 Compare August 7, 2023 08:28
@renovate renovate bot temporarily deployed to ci August 7, 2023 08:28 Inactive
@renovate renovate bot force-pushed the renovate/react-toastify-9.x branch from b8bc431 to 441c83e Compare August 7, 2023 09:06
@renovate renovate bot temporarily deployed to ci August 7, 2023 09:06 Inactive
@renovate renovate bot force-pushed the renovate/react-toastify-9.x branch from 441c83e to f0cc678 Compare August 7, 2023 13:45
@renovate renovate bot temporarily deployed to ci August 7, 2023 13:45 Inactive
@renovate renovate bot force-pushed the renovate/react-toastify-9.x branch from f0cc678 to a22fcc3 Compare August 7, 2023 16:05
@renovate renovate bot temporarily deployed to ci August 7, 2023 16:05 Inactive
@renovate renovate bot force-pushed the renovate/react-toastify-9.x branch from a22fcc3 to a33960a Compare August 9, 2023 11:36
@renovate renovate bot temporarily deployed to ci August 9, 2023 11:36 Inactive
@renovate renovate bot force-pushed the renovate/react-toastify-9.x branch from a33960a to 315f9aa Compare August 9, 2023 12:11
@renovate renovate bot temporarily deployed to ci August 9, 2023 12:11 Inactive
@spaenleh spaenleh merged commit b68fc9e into main Aug 9, 2023
@renovate renovate bot deleted the renovate/react-toastify-9.x branch August 9, 2023 14:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant