Migration

Breaking changes and upgrade tables when moving existing alert-notify apps to 3.0.

Migrating from 2.x to 3.0

2.x3.0
First arg = titleFirst arg = message
descriptionUse optional title for the heading; first arg is the body
onDismiss / onAutoCloseonClose(toast, reason) with "Manual" | "Auto"
html on standard toaststoast.custom(...) only
duration: Infinity for stickyPrefer autoClose: false
Default theme: "system"Default theme: "light"
Manual import "alert-notify/style.css" requiredAuto-included from package entry (explicit import still OK)
// 2.x
toast.success("Profile updated", { description: "Your profile was saved." });

// 3.0
toast.success("Your profile was saved.", { title: "Profile updated" });

Migrating from 1.x

1.x3.x
showAlert(SUCCESS, msg)toast.success(msg)
AlertNotifyContainerOptional Toaster from /react, /vue, /svelte
Style.scss / style.min.cssAuto CSS, or alert-notify/style.css
timeoutduration (+ autoClose)
isDismissiblecloseButton / dismissible

Also see the changelog.