npm react-toastify 11.1.0
v11.1.0

10 hours ago

Release Notes

Features

  • CSP nonce support. <ToastContainer nonce={...}> applies the nonce to the
    injected <style> tag. Closes #1209.

Fixes

  • onChange fires status: 'removed' synchronously on toast.dismiss() instead
    of after the exit animation — observers (incl. useNotificationCenter) now
    see correctly ordered events. Also guards against double-onClose. Closes #1275.
  • Touch drag no longer re-pauses the toast on release — the old check compared a
    PointerEvent against 'touchend', which never matched. Closes #1217.
  • Vertical drag now visually moves the toast (--y gets a unit). Thanks
    @janpaepke, #1277.
  • Stacked scale is clamped at 0.5, preventing zero/negative scale in deep
    stacks. Closes #1171, #1174.
  • Stacked container respects mobile 100vw again. Closes #1234.

Accessibility

  • role="progressbar" now includes aria-valuenow, aria-valuemin, aria-valuemax.
    Thanks @singhankit001, #1283. Closes #1259.

Internal

  • Migrated to a pnpm workspace (pnpm link . no longer required for contributors).
    Publish layout unchanged — addon still ships inside the main package.
  • CSS now injected at mount via useStyleSheet (prerequisite for nonce).
  • Dep bumps: TypeScript 6, Vite 8, Cypress 15, React 19.2, plus the rest.
  • CI: upload-artifact v3 → v4.

Thanks to @janpaepke, @singhankit001, and reporters of the fixed issues.

Don't miss a new react-toastify release

NewReleases is sending notifications on new releases.