unstale

npm / react-toastify

react-toastify

What changed in react-toastify 6 to 11, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-31.

36 breaking1 security31 new APIs and options1 performance5 behavior and defaults25 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.9 on npm

react-toastify 1133 changes

Breaking changes 13

  • On toast.dismiss(), onChange fires status: 'removed' synchronously instead of after the exit animation; double onClose is also guarded against.

    11.1.0release notes

  • This option is no longer needed.

    11.0.0release notes

  • This option is no longer needed.

    11.0.0release notes

  • Enables a custom progress bar and removes the built-in progress bar while retaining features such as autoClose and pause handling.

    11.0.0release notes

  • This function has been removed because it is no longer needed.

    11.0.0release notes

  • The callback no longer receives children and now receives an optional reason: true for user dismissal or a string supplied through closeToast.

    11.0.0release notes

  • The onClose callback is no longer delayed until the exit animation completes.

    11.0.0release notes

  • The callback no longer receives children; its new signature takes no arguments.

    11.0.0release notes

  • This option has been removed to reduce the API surface; progress bar customization no longer relies on inline style.

    11.0.0release notes

  • The minimal CSS export has been removed.

    11.0.0release notes

  • Scss is no longer used; the library now uses CSS.

    11.0.0release notes

  • The hook is no longer exposed.

    11.0.0release notes

  • The hook is no longer exposed.

    11.0.0release notes

Security 1

  • ToastContainer accepts a nonce prop and applies it to the injected style tag for CSP support.

    11.1.0release notes

New APIs and options 8

  • This ToastContainer prop appends the injected style tag to head instead of prepending it.

    11.2.0release notes

  • The new opt-in value auto follows the OS color scheme via prefers-color-scheme; the default remains light.

    11.2.0release notes

  • Passing false disables enter and exit animations on the container or per toast.

    11.2.0release notes

  • ToastContainer and toast accept ariaLabel for screen readers and testing.

    11.0.0release notes

  • CloseButtonProps is now re-exported.

    11.0.0release notes

  • Custom notification components can pass a reason to closeToast, allowing onClose to distinguish between actions.

    11.0.0release notes

  • ToastContainer accepts a customizable keyboard shortcut matcher; the default Alt+T shortcut focuses the first visible notification for keyboard navigation.

    11.0.0release notes

  • Custom notification components can receive isPaused to determine when to pause progress animation, including on hover or focus loss.

    11.0.0release notes

Behavior and default changes 1

  • The stylesheet is injected automatically, so applications no longer need to import it; the CSS file remains exported.

    11.0.0release notes

Fixes and other changes 10

  • The injected stylesheet is prepended to head again, allowing CSS variable overrides to work without !important.

    11.2.0release notes

  • The stacked container respects mobile 100vw again.

    11.1.0release notes

  • The progressbar role now includes aria-valuenow, aria-valuemin, and aria-valuemax.

    11.1.0release notes

  • Stacked scale is clamped at 0.5 to prevent zero or negative scale in deep stacks.

    11.1.0release notes

  • Releasing a touch drag no longer re-pauses the toast.

    11.1.0release notes

  • Vertical dragging now visually moves the toast because --y gets a unit.

    11.1.0release notes

  • The close button now uses absolute positioning so it does not interfere with notification content.

    11.0.0release notes

  • The newestOnTop behavior has been fixed.

    11.0.0release notes

  • Support for React 19 has been added.

    11.0.0release notes

  • Toast elements have sensible default styling values that can be customized with CSS or associated CSS variables.

    11.0.0release notes

react-toastify 1018 changes

Breaking changes 6

  • The closeOnClick prop now defaults to false instead of true.

    10.0.0release notes

  • The draggable prop now defaults to touch, so notifications are draggable only on touch devices by default.

    10.0.0release notes

  • The enableMultiContainer prop has been removed; containers with an assigned id no longer need it.

    10.0.0release notes

  • React 18 is now the minimum required version.

    10.0.0release notes

  • The toast.POSITION constant has been removed.

    10.0.0release notes

  • The toast.TYPE constant has been removed.

    10.0.0release notes

New APIs and options 7

  • Custom icon logic receives an isLoading field.

    10.0.0release notes

  • Add the stacked prop to ToastContainer to enable stacked notifications.

    10.0.0release notes

  • Dismiss all toasts in a given container, or dismiss a toast by id within a specific container.

    10.0.0release notes

  • Limit an active-toast check to a specific container by passing its id.

    10.0.0release notes

  • Pause notification timers programmatically, optionally targeting a toast by id or a container.

    10.0.0release notes

  • Play notification timers programmatically, optionally targeting a toast by id or a container.

    10.0.0release notes

  • Customize the opacity of the progress bar's background trail with this CSS variable.

    10.0.0release notes

Fixes and other changes 5

  • TypeScript correctly infers the content of notification data when it is provided.

    10.0.0release notes

  • Fix notifications showing multiple times.

    10.0.0release notes

  • Fix a memory leak that occurred while using multiple containers.

    10.0.0release notes

  • Fix the onClose event triggering twice.

    10.0.0release notes

  • Fix ToastOptions className overriding the ToastContainer toastClassName instead of appending to it.

    10.0.0release notes

react-toastify 96 changes

Breaking changes 2

  • The toast.configure API was removed; it did not work with React context because it creates a new React tree.

    9.0.0release notes

  • The callback now receives a ToastItem with properties such as status, content, id, and data, instead of the number of displayed toasts and containerId.

    9.0.0release notes

New APIs and options 1

  • A headless hook addon lets developers build a notification center on top of react-toastify.

    9.0.0release notes

Fixes and other changes 3

  • Fixed a bug where a success toast on a promise did not disappear when the promise resolved too quickly.

    9.0.0release notes

  • Fixed generic result types for toast.promise when using a custom render method.

    9.0.0release notes

  • Fixed an issue where an updated toast sometimes had incorrect styles.

    9.0.0release notes

react-toastify 815 changes

Breaking changes 8

  • The toast.TYPE.DARK constant is no longer available.

    8.0.0release notes

  • The .Toastify__toast--dark CSS class is removed.

    8.0.0release notes

  • The .Toastify__toast--default CSS class is removed.

    8.0.0release notes

  • The .Toastify__toast--error CSS class is removed.

    8.0.0release notes

  • The .Toastify__toast--info CSS class is removed.

    8.0.0release notes

  • The .Toastify__toast--success CSS class is removed.

    8.0.0release notes

  • The .Toastify__toast--warning CSS class is removed.

    8.0.0release notes

  • The dark toast type is removed; use the theme option or toast.dark instead.

    8.0.0release notes

New APIs and options 5

  • Adds a data option for passing data to a notification without rendering a React component.

    8.0.0release notes

  • Icons can be customized or disabled per toast or globally on ToastContainer; custom icons can be strings, components, or functions.

    8.0.0release notes

  • Separates theme from notification type, with light, dark, and colored themes configurable globally or per notification; use theme: "colored" for the former type-based colors.

    8.0.0release notes

  • Displays a loading notification that you can update yourself with toast.update.

    8.0.0release notes

  • Accepts a promise and updates its notification when the promise resolves or fails, showing a spinner while it is pending.

    8.0.0release notes

Behavior and default changes 2

  • Switches styling to CSS variables, allowing developers to change colors such as the progress bar color.

    8.0.0release notes

  • Notifications of type info, error, warning, and success display an icon by default.

    8.0.0release notes

react-toastify 711 changes

Breaking changes 4

  • The duration parameter was removed; CSS animations now work out of the box.

    7.0.0release notes

  • The dependency on react-transition-group was removed.

    7.0.0release notes

  • The toast timer starts after you click on the toast.

    7.0.0release notes

  • A toastId can no longer be reused.

    7.0.0release notes

New APIs and options 2

Behavior and default changes 2

Fixes and other changes 3

react-toastify 616 changes

Breaking changes 3

  • className now supports strings only.

    6.0.0release notes

  • The react-transition-group upgrade affects custom transitions.

    6.0.0release notes

  • React 16.8 is required because the release introduces hooks.

    6.0.0release notes

New APIs and options 8

Performance 1

Fixes and other changes 4

  • Center positioning is calculated with transform instead of a negative margin-left based on half the toast size.

    6.0.0release notes

  • The close button icon was improved.

    6.0.0release notes

  • Fixes toast progress styles not being used.

    6.0.0release notes

  • The library supports strict mode.

    6.0.0release notes