Repository navigation
Toasts 3.8.0 — native animations without Motion
Native toast animations
Toast entrance, exit, stack movement, progress bars and button feedback now use the Web Animations API. Swipe gestures use Pointer Events. The existing design, timings, spring parameters, accessible announcements and public APIs are preserved.
- Removes
motion,framer-motion,motion-dom,motion-utilsand the now-unusedtslib: five fewer packages, with no replacement animation dependency. - Improves interrupted swipe recovery, short-swipe velocity calculation, Firefox text-selection handling and runtime reduced-motion preferences.
- Keeps the last dismissed toast mounted until its exit animation completes. Hover/focus timer pauses, copy/link actions, portals and both provider entries remain supported.
- Batches layout reads, limits pointer writes to one per animation frame and removes the redundant provider store subscription.
Upgrade
npm install @rentnerkev/toasts@3.8.0 lucide-react@^1No public API or breaking changes. Motion is no longer a peer dependency and can be removed from your application if nothing else uses it. React 19, React DOM 19 and the existing styling setup remain required.
Measured result
Compared with pre-change main (0873abc), the same production playground build contains 33.07% less JavaScript and 34.14% less gzip JavaScript (385,926 → 258,301 bytes; gzip 122,487 → 80,669 bytes). Five short Chromium runs showed comparable frame cadence. These are bundle-size measurements, not a claimed runtime speedup. Full methodology and results: #46.
Verification
Main CI is green, including React 19.0/19.3 compatibility, 75 browser cases across Chromium, Firefox and WebKit, and fresh packed npm consumers in all three engines. Public type compatibility was checked against the previous implementation.
Release · v3.8.0
Stable Release · Published on 28 October 2026
Changelog
🐛 Fixes
- restore toast playground theme and queued timers (0873abc)
♻️ Refactoring
📦 Dependencies
- bump the routine-updates group with 2 updates (#43) (8a98788)
- bump the routine-updates group across 1 directory with 2 updates (#42) (c30cda5)
- bump vite in /playground in the routine-updates group (#41) (b04059b)
- bump lucide-react (#39) (22083fa)
- bump the routine-updates group with 3 updates (#38) (dd98b48)
- bump the routine-updates group with 3 updates (#37) (5ebbacf)
🤖 CI
- derive npm package versions from release tags (063b61f)
- bump the routine-updates group across 1 directory with 2 updates (#40) (e4f380d)
🧹 Chores
- update dependencies and use the Bun formatter (d77bf03)
