react-toastify breaking changes
react-toastify 11.0.0 (December 16, 2024) is its newest release with breaking changes, 62 of them. The first: Removed bodyClassName. Every breaking API change we have recorded in react-toastify on npm: 119 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 11.2.0.
Packages on npm run on Node.js. Node.js end of life dates.
- From 10.0.0 to 11.0.0: 62 breaking changes in 1 version.
- From 9.0.0 to 11.0.0: 97 breaking changes in 2 versions.
react-toastify 11.0.0 breaking changes
- Removed
bodyClassName
The bodyClassName option is no longer needed and has been removed. github.com - Removed
bodyStyle
The bodyStyle option is no longer needed and has been removed. github.com - Removed
dist/inject-style:injectStyle
injectStyle was removed in react-toastify 11.0.0 npmjs.com - Removed
injectStyle
The injectStyle function is gone because styles are now injected automatically. github.com - Removed
progressBarStyle
The progressBarStyle option has been removed to reduce the API surface. github.com - Removed
react-toastify.dist.ReactToastify.minimal.css
The ReactToastify.minimal.css stylesheet has been removed; use the remaining CSS file instead. github.com - Removed
ToastContainerProps.bodyClassName
ToastContainerProps.bodyClassName was removed in react-toastify 11.0.0 npmjs.com - Removed
ToastContainerProps.bodyStyle
ToastContainerProps.bodyStyle was removed in react-toastify 11.0.0 npmjs.com - Removed
ToastContainerProps.progressStyle
ToastContainerProps.progressStyle was removed in react-toastify 11.0.0 npmjs.com - Removed
Toastify__toast-body
The Toastify__toast-body class and its direct child were removed from the DOM structure. github.com - Removed
ToastOptions.bodyClassName
ToastOptions.bodyClassName was removed in react-toastify 11.0.0 npmjs.com - Removed
ToastOptions.bodyStyle
ToastOptions.bodyStyle was removed in react-toastify 11.0.0 npmjs.com - Removed
ToastOptions.progressStyle
ToastOptions.progressStyle was removed in react-toastify 11.0.0 npmjs.com - Removed
UpdateOptions.bodyClassName
UpdateOptions.bodyClassName was removed in react-toastify 11.0.0 npmjs.com - Removed
UpdateOptions.bodyStyle
UpdateOptions.bodyStyle was removed in react-toastify 11.0.0 npmjs.com - Removed
UpdateOptions.progressStyle
UpdateOptions.progressStyle was removed in react-toastify 11.0.0 npmjs.com - Removed
useToast
The useToast hook is no longer exported from the package. npmjs.com - Removed
useToastContainer
The useToastContainer hook is no longer exported from the package. npmjs.com - Behavior changed
onClose
The onClose and onOpen callbacks no longer receive children props; onClose now takes an optional reason argument. github.com - Behavior changed
Toastify__toast
Extraneous wrapper elements were removed and CloseButton now uses absolute positioning, which can change custom styling. github.com - Signature changed
Bounce
Was const Bounce: ({children, position, preventExitTransition, done, nodeRef, isIn, playToast}: import("..").ToastTransitionProps) => import("react").JSX.Element; now const Bounce: ({children, position, preventExitTransition, done... npmjs.com - Signature changed
CloseButton
Was function CloseButton({closeToast, theme, ariaLabel}: CloseButtonProps): React.JSX.Element; now function CloseButton({closeToast, theme, ariaLabel}: CloseButtonProps): React__default.JSX.Element. npmjs.com - Signature changed
cssTransition
Was function cssTransition({enter, exit, appendPosition, collapse, collapseDuration}: CSSTransitionProps): ({children, position, preventExitTransition, done, nodeRef, isIn, playToast}: ToastTransitionProps) => React.JSX.Element; now... npmjs.com - Signature changed
Flip
Was const Flip: ({children, position, preventExitTransition, done, nodeRef, isIn, playToast}: import("..").ToastTransitionProps) => import("react").JSX.Element; now const Flip: ({children, position, preventExitTransition, done, nodeRef... npmjs.com - Signature changed
onClose
onClose is now onClose(reason?: boolean | string) => void, so callbacks that relied on the old signature must be updated. github.com - Signature changed
Slide
Was const Slide: ({children, position, preventExitTransition, done, nodeRef, isIn, playToast}: import("..").ToastTransitionProps) => import("react").JSX.Element; now const Slide: ({children, position, preventExitTransition, done, nodeRef... npmjs.com - Signature changed
toast.clearWaitingQueue
Was var clearWaitingQueue: typeof import("./store").clearWaitingQueue; now var clearWaitingQueue: (p?: ClearWaitingQueueParams) => void. npmjs.com - Signature changed
toast.dark
Was var dark: (content: ToastContent, options?: ToastOptions<unknown> | undefined) => Id; now var dark: (content: ToastContent, options?: ToastOptions) => Id. npmjs.com - Signature changed
toast.dismiss
Was var dismiss: {(params: RemoveParams): void; (params?: Id | undefined): void;}; now var dismiss: {(params: RemoveParams): void; (params?: Id): void;}. npmjs.com - Signature changed
toast.error
Was var error: <TData = unknown>(content: ToastContent<TData>, options?: ToastOptions<TData> | undefined) => Id; now var error: <TData = unknown>(content: ToastContent<TData>, options?: ToastOptions<TData>) => Id. npmjs.com - Signature changed
toast.info
Was var info: <TData = unknown>(content: ToastContent<TData>, options?: ToastOptions<TData> | undefined) => Id; now var info: <TData = unknown>(content: ToastContent<TData>, options?: ToastOptions<TData>) => Id. npmjs.com - Signature changed
toast.loading
Was var loading: <TData = unknown>(content: ToastContent<TData>, options?: ToastOptions<TData> | undefined) => Id; now var loading: <TData = unknown>(content: ToastContent<TData>, options?: ToastOptions<TData>) => Id. npmjs.com - Signature changed
toast.onChange
Was var onChange: typeof import("./store").onChange; now var onChange: (cb: OnChangeCallback) => () => void. npmjs.com - Signature changed
toast.pause
Was var pause: (opts?: IdOpts | undefined) => void; now var pause: (opts?: IdOpts) => void. npmjs.com - Signature changed
toast.play
Was var play: (opts?: IdOpts | undefined) => void; now var play: (opts?: IdOpts) => void. npmjs.com - Signature changed
toast.success
Was var success: <TData = unknown>(content: ToastContent<TData>, options?: ToastOptions<TData> | undefined) => Id; now var success: <TData = unknown>(content: ToastContent<TData>, options?: ToastOptions<TData>) => Id. npmjs.com - Signature changed
toast.warn
Was var warn: <TData = unknown>(content: ToastContent<TData>, options?: ToastOptions<TData> | undefined) => Id; now var warn: <TData = unknown>(content: ToastContent<TData>, options?: ToastOptions<TData>) => Id. npmjs.com - Signature changed
toast.warning
Was var warning: <TData = unknown>(content: ToastContent<TData>, options?: ToastOptions<TData> | undefined) => Id; now var warning: <TData = unknown>(content: ToastContent<TData>, options?: ToastOptions<TData>) => Id. npmjs.com - Signature changed
ToastContainer
Was function ToastContainer(props: ToastContainerProps): React.JSX.Element; now function ToastContainer(props: ToastContainerProps): React__default.JSX.Element. npmjs.com - Signature changed
ToastContainerProps
Was interface ToastContainerProps extends CommonOptions; now interface ToastContainerProps extends CommonOptions, Pick<HTMLAttributes<HTMLElement>, 'aria-label'>. npmjs.com - Signature changed
ToastContainerProps.closeButton
Was closeButton?: boolean | ((props: CloseButtonProps) => React.ReactNode) | React.ReactElement<CloseButtonProps>; now closeButton?: boolean | ((props: CloseButtonProps) => React__default.ReactNode) |... npmjs.com - Signature changed
ToastContainerProps.onClick
Was onClick?: (event: React.MouseEvent) => void; now onClick?: (event: React__default.MouseEvent) => void. npmjs.com - Signature changed
ToastContainerProps.style
Was style?: React.CSSProperties; now style?: React__default.CSSProperties. npmjs.com - Signature changed
ToastContainerProps.toastStyle
Was toastStyle?: React.CSSProperties; now toastStyle?: React__default.CSSProperties. npmjs.com - Signature changed
ToastContent
Was type ToastContent<T = unknown> = React.ReactNode | ((props: ToastContentProps<T>) => React.ReactNode); now type ToastContent<T = unknown> = React__default.ReactNode | ((props: ToastContentProps<T>) => React__default.ReactNode). npmjs.com - Signature changed
ToastContentProps.closeToast
Was closeToast: () => void; now closeToast: CloseToastFunc. npmjs.com - Signature changed
ToastOptions.closeButton
Was closeButton?: boolean | ((props: CloseButtonProps) => React.ReactNode) | React.ReactElement<CloseButtonProps>; now closeButton?: boolean | ((props: CloseButtonProps) => React__default.ReactNode) |... npmjs.com - Signature changed
ToastOptions.onClick
Was onClick?: (event: React.MouseEvent) => void; now onClick?: (event: React__default.MouseEvent) => void. npmjs.com - Signature changed
ToastOptions.onClose
Was onClose?: <T = {}>(props: T) => void; now onClose?: (reason?: boolean | string) => void. npmjs.com - Signature changed
ToastOptions.onOpen
Was onOpen?: <T = {}>(props: T) => void; now onOpen?: () => void. npmjs.com
And 12 more in this version. Sign up to see every change
react-toastify 10.0.0 breaking changes
- Removed
CloseButtonProps
CloseButtonProps was removed in react-toastify 10.0.0 npmjs.com - Removed
toast.POSITION
The toast.POSITION constant was removed; code using it must switch to plain values. npmjs.com - Removed
toast.TYPE
The toast.TYPE constant was removed; code using it must switch to plain values. npmjs.com - Removed
ToastContainerProps.enableMultiContainer
The enableMultiContainer prop was removed. Containers with an id assigned work without it, so remove the prop from your code. npmjs.com - Behavior changed
React 18 is now the minimum supported version; projects on older React must stay on v9. github.com - Default changed
ToastContainer.closeOnClick
closeOnClick defaults to false instead of true. Pass closeOnClick explicitly to keep the old behavior. github.com - Default changed
ToastContainer.draggable
draggable defaults to 'touch' instead of true, so notifications are only draggable on touch devices. Set draggable to true to keep dragging on all devices. github.com - Signature changed
addons/use-notification-center:NotificationCenterItem
Was interface NotificationCenterItem<Data = {}> extends Optional<ToastItem<Data>, 'content' | 'data'>; now interface NotificationCenterItem<Data = {}> extends Optional<ToastItem<Data>, 'content' | 'data' | 'status'>. npmjs.com - Signature changed
Bounce
Was const Bounce: ({children, position, preventExitTransition, done, nodeRef, isIn}: import("..").ToastTransitionProps) => import("react").JSX.Element; now const Bounce: ({children, position, preventExitTransition, done, nodeRef, isIn... npmjs.com - Signature changed
cssTransition
Was function cssTransition({enter, exit, appendPosition, collapse, collapseDuration}: CSSTransitionProps): ({children, position, preventExitTransition, done, nodeRef, isIn}: ToastTransitionProps) => React.JSX.Element; now function... npmjs.com
And 25 more in this version. Sign up to see every change
react-toastify 9.0.0 breaking changes
- Removed
toast.configure
toast.configure has been removed because it did not work with React context. Code calling it must be changed to another way of setting up toasts, which the notes do not name. npmjs.com - Signature changed
toast
Was function toast(content: ToastContent, options?: ToastOptions): React.ReactText; now function toast(content: ToastContent, options?: ToastOptions): Id. npmjs.com - Signature changed
toast.dark
Was var dark: (content: ToastContent, options?: ToastOptions<{}> | undefined) => React.ReactText; now var dark: (content: ToastContent<unknown>, options?: ToastOptions<{}> | undefined) => Id. npmjs.com - Signature changed
toast.dismiss
Was var dismiss: (id?: string | number | undefined) => void; now var dismiss: (id?: Id | undefined) => void. npmjs.com - Signature changed
toast.done
Was var done: (id: React.ReactText) => void; now var done: (id: Id) => void. npmjs.com - Signature changed
toast.error
Was var error: (content: ToastContent, options?: ToastOptions<{}> | undefined) => React.ReactText; now var error: (content: ToastContent<unknown>, options?: ToastOptions<{}> | undefined) => Id. npmjs.com - Signature changed
toast.info
Was var info: (content: ToastContent, options?: ToastOptions<{}> | undefined) => React.ReactText; now var info: (content: ToastContent<unknown>, options?: ToastOptions<{}> | undefined) => Id. npmjs.com - Signature changed
toast.isActive
Was var isActive: (id: React.ReactText) => boolean; now var isActive: (id: Id) => boolean. npmjs.com - Signature changed
toast.loading
Was var loading: (content: ToastContent, options?: ToastOptions<{}> | undefined) => React.ReactText; now var loading: (content: ToastContent<unknown>, options?: ToastOptions<{}> | undefined) => Id. npmjs.com - Signature changed
toast.onChange
The toast.onChange callback no longer receives numberOfToastDisplayed and containerId. It now receives a ToastItem with status set to added, updated or removed, so callers must update their callback. github.com
And 12 more in this version. Sign up to see every change
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.