Repository navigation
Releases
@rentnerkev/toasts 3.9.0
Typisierte Aktionen für Benachrichtigungen, beispielsweise Rückgängig oder Erneut versuchen.
Highlights
- Optionales
actionfür direkte Toast-Aufrufe, Updates und Promise-Benachrichtigungen. - Tastaturbedienbarer Aktionsbutton, gemeinsamer Pending-Zustand und Schutz vor parallelen Doppelausführungen.
- Die Ablaufzeit pausiert während einer Aktion. Erfolgreiche Aktionen schließen den Toast standardmäßig;
dismissOnSuccessundonErrorerlauben eigene Abläufe. - Fehler in Aktions- und Fehler-Callbacks werden abgefangen. Abhängigkeiten und Release-Verifikation aktualisiert.
Kompatibilität: Bestehende Toast-Aufrufe, eigene Pause-Handler und Logik-Fixtures bleiben unterstützt. Die Aktions-API und ihre zusätzlichen Typfelder sind optional.
Release · v3.9.0
Stable Release · Published on 6 November 2026
Changelog
🌟 Features
- add coordinated toast action callbacks (15fe191)
🐛 Fixes
- preserve toast action API compatibility (2745549)
📦 Dependencies
- bump lucide-react (#55) (777583a)
- bump the routine-updates group with 2 updates (#53) (743cdc8)
- bump the routine-updates group in /playground with 3 updates (#51) (5d7e2f5)
- bump lucide-react (#50) (4bc3ab8)
- bump the routine-updates group with 2 updates (#49) (7eb67e7)
🤖 CI
Toasts 3.8.1 — native focus scopes without Radix
Native toast focus without Radix
Toast dialog integration now uses native DOM hosts and the Popover API instead of @radix-ui/react-focus-scope. Six Radix packages are removed from the dependency tree, with no replacement dependency.
- Keeps
ToastFocusScopeBranchavailable from the main entry and/radixfor existing imports. - Places toast actions inside the active dialog's DOM, including nested native dialogs, and restores inline, body or custom portals when the dialog closes.
- Preserves viewport positioning inside transformed or clipped dialog content through a native top-layer host.
- Replaces whole-body mutation observation and repeated toast-region searches with targeted host/ancestor attribute observation.
- Adds an optional
activeprop for custom dialog lifecycles and skips closed, hidden or inert hosts.
Upgrade
npm install @rentnerkev/toasts@3.8.1 lucide-react@^1React 19, React DOM 19 and the existing styling setup remain required. @radix-ui/react-focus-scope is no longer a toast peer dependency; its direct installation can be removed if no other application code needs it.
Integration behavior
ToastFocusScopeBranch now renders an empty native host. Keep it inside the dialog content. Native dialog open/closed state is detected automatically; custom dialogs without corresponding DOM state can control the host with active.
Opening or closing a dialog changes the portal destination and remounts toast cards. Copy feedback and entry animations restart during that transition; toast IDs, store contents and remaining timers are retained.
Before/after measurements
Same production bundler settings and environment, compared with pre-change main 12a13ae:
| Entry | Before gzip | After gzip |
|---|---|---|
| Dialog adapter | 1,355 B | 1,022 B |
| Complete public API | 12,005 B | 11,787 B |
| Provider-only consumer | 10,645 B | 10,823 B |
For 300 unrelated DOM changes with ten hosts, observer callbacks and toast-region searches both drop from 3,000 to zero. These isolate adapter overhead and are not general rendering or FPS claims. Full methodology, runtime samples and the provider size trade-off: #48.
Verification
164 unit tests and 105 browser cases passed, including Chromium, Firefox and WebKit, SSR, focus/timer behavior, viewport positioning and fresh packed npm consumers. React 19.0/19.3 compatibility checks passed. The release pipeline rebuilds and verifies the exact v3.8.1 source before npm publication.
Release · v3.8.1
Stable Release · Published on 29 October 2026
Changelog
♻️ Refactoring
📦 Dependencies
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)
Toasts 3.7.0 — unified package API
The main entry now exposes the complete toast integration:
import { toast, ToastProvider, ToastFocusScopeBranch } from '@rentnerkev/toasts'ToastFocusScopeBranch is available from the same public entry as toast and ToastProvider. The existing subpath exports remain available.
@radix-ui/react-focus-scope is now a required peer so the central entry resolves reliably in all consumers; modern npm and Bun installs provide it automatically. Applications using Radix dialogs should use the same compatible focus-scope version.
Queue expiry, body portals, modal focus handling and persistent notifications retain the behavior introduced in 3.6.0.
Release · v3.7.0
Stable Release · Published on 17 October 2026
Changelog
🌟 Features
- api: expose modal integration from the main package entry (583c474)
Toasts 3.6.0 — queue expiry and global modal portals
Adds a store-wide queue timer policy and native support for global toast portals in modal-based applications.
- Set
pauseWhenQueued={false}onToastProvider, orpauseWhenQueued: falseincreateToastStore, to expire hidden notifications too. Directtoast.*calls use the provider policy. - Use
portalContainer="body"for a stable global portal with safe server rendering and hydration. - Optional Radix integration: import
ToastFocusScopeBranchfrom@rentnerkev/toasts/radixand place it insideDialog.Contentto keep global toast actions accessible within the modal focus scope. - Dismissing a focused toast restores focus to the previous connected control.
Existing queue pauses remain the default. Notifications with duration: 0 remain persistent; hover and focus pauses are preserved.
Validated with unit tests, type checks, lint, package consumer tests, browser tests, React 19.0/19.3 and Motion 12/13 compatibility checks.
Release · v3.6.0
Stable Release · Published on 17 October 2026
Changelog
🌟 Features
- toasts: support queued expiry and global modal portals (872f33f)
@rentnerkev/toasts 3.5.0
@rentnerkev/toasts 3.5.0
- contentText wird auch ohne Titel zuverlässig angewendet; Titel und Inhalt sind getrennt gestaltbar.
- Separate Button-/Icon-Slots sowie ersetzbare Root-, Fortschritts- und Link-Slots.
- Storelokale optionale Deduplizierung über dedupeKey und dedupeWindow.
- UI-freie Fehleradapter unter @rentnerkev/toasts/errors.
- Gemeinsames Theme und optionale Portale.
Bestehende APIs bleiben erhalten; Promise-Toasts behalten unabhängige Lebenszyklen. Typechecks, Unit-/Browserprüfungen und der gepackte Consumer wurden geprüft.
Release · v3.5.0
Stable Release · Published on 16 October 2026
Changelog
🌟 Features
- toasts: add deduplication, error adapters and precise design slots (e73332f)
🐛 Fixes
- apply contentText to toasts without a title (a0b9ae4)
- authenticate Dependabot rebases with a personal token (b7f5223)
- grant push access to Dependabot rebase commands (1187e1a)
- rebase pending Dependabot auto-merge branches (d0dda57)
📦 Dependencies
- bump the routine-updates group with 4 updates (#35) (133e04f)
- bump the routine-updates group with 5 updates (#34) (03d0130)
- bump vite (#33) (ca50511)
- bump the routine-updates group with 3 updates (#32) (16a5906)
- bump @playwright/test (#30) (88b3adf)
🤖 CI
v3.4.0 — AI documentation helpers
Read-only AI documentation helpers
Adds the separate @rentnerkev/toasts/ai entry for Node.js and Bun tooling. It reads metadata, packaged documentation, public TypeScript declarations, integration examples and documentation search results for the installed package version.
import { getPackageInfo } from '@rentnerkev/toasts/ai'
console.log(getPackageInfo())- The AI entry is kept separate from the React UI entry.
- Helpers read only packaged documents and declarations. Installation starts no server and makes no automatic connection to the public MCP endpoint.
- README and usage documentation describe local helpers and the optional public MCP configuration at https://packages.rentner.dev/mcp.
- Packed-package consumer checks validate the AI export, installed-version metadata, documentation, declarations and examples.
Release · v3.4.0
Stable Release · Published on 8 October 2026
Changelog
🌟 Features
- add read-only AI documentation helpers (ef8edce)
📦 Dependencies
Toasts 3.3.2
Fixes the dark flash on the first notification when using LazyToastProvider.
Both provider entries now load the complete animated toast surface with the application. The first notification immediately uses its final status colors, icons, Markdown links and controls, without a temporary fallback or DOM replacement. No extra toast JavaScript request is needed after interaction.
Existing LazyToastProvider imports, provider props, scoped stores and notification APIs remain supported. LazyToastProvider is now a synchronous compatibility alias; new integrations should use ToastProvider. Motion and icons move into the initial provider bundle. Entrance and exit animations, reduced motion, hover/focus timer pauses, expiry, drag dismissal and clipboard feedback are retained.
Validated with type checking, strict lint and formatting, 92 local unit/automation checks, 18 Playground browser tests, and packed-package consumers in Chromium, Firefox and WebKit. Added first-render regression coverage for all four variants in default and light designs. CI also checks the supported React and Motion versions before publication.
Release · v3.3.2
Stable Release · Published on 8 October 2026
Changelog
🐛 Fixes
- render toasts synchronously without a loading flash (1612f1d)
📝 Docs
Toasts 3.3.1
Preserve the synchronous and lazy toast APIs while simplifying component, hook, store and type ownership under the Rentner Rules.
- Check the supported Motion 12, 13 and 14 families with real packaged consumers, including lazy loading and chunk failure recovery.
- Add browser coverage for drag dismissal and copying error messages, including clipboard rejection and feedback reset.
- Keep timing, hover/focus pauses and scoped-store behavior covered across Chromium, Firefox and WebKit, with React 19.0 and 19.3 compatibility checks.
- Refresh the concise README with a project banner, badges and four playground previews; strengthen CI and release validation.
This is a compatible maintenance release. Existing imports and props remain supported.
Release · v3.3.1
Stable Release · Published on 8 October 2026
Changelog
🐛 Fixes
- align React versions in compatibility checks (326ad42)
- ci: check PR titles from trusted event commit (1f10c00)
- ci: install frozen playground for release verification (ad153b5)
♻️ Refactoring
- align package and CI with Rentner Rules (f246561)
📝 Docs
Toasts 3.3.0
Toast storage now uses indexed records and cached snapshots, avoids equal updates without explicit duration changes, and bounds work to visible toasts. Optional maxQueuedToasts limits queued records; the default remains unlimited.
New optional LazyToastProvider from @rentnerkev/toasts/lazy-provider defers the Motion/Markdown UI. Its accessible fallback preserves content, closing, focus and hover pause behavior during loading or a chunk failure. The existing synchronous ToastProvider remains available.
The package and playground follow RentnerRules, with focused logic hooks and mirrored tests. Dependencies and repository automation are updated, including typed CI/release validation, workflow lint, dependency audits and exact-artifact npm publication.
Validated before merge with the quality suite, React 19.0/19.3 and supported Motion packed consumers, browser accessibility and delayed-loading tests, CodeQL, Gitleaks and workflow lint. A separate audit retains the original baseline and will report measured results from the released sources.
Release · v3.3.0
Stable Release · Published on 7 October 2026
Changelog
🌟 Features
📦 Dependencies
- bump lucide-react from 1.50.0 to 1.51.0 (#26) (1162e0e)
- bump lucide-react from 1.49.0 to 1.50.0 (#24) (02ec295)
- bump motion from 13.4.4 to 13.5.0 (#23) (512d88f)
- bump lucide-react from 1.48.0 to 1.49.0 (#22) (4e466e7)
- bump vite from 8.3.1 to 8.3.2 in /playground (#21) (6685b23)
- bump oxlint from 1.85.0 to 1.86.0 (#20) (ce8d7c4)
- bump oxfmt from 0.70.0 to 0.71.0 (#19) (e7cd22e)









