Skip to content

Releases

@rentnerkev/toasts 3.9.0

Choose a tag to compare

@RentnerKev RentnerKev released this 06 Nov 15:10

RentnerKev release banner

Typisierte Aktionen für Benachrichtigungen, beispielsweise Rückgängig oder Erneut versuchen.

Highlights

  • Optionales action fü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; dismissOnSuccess und onError erlauben 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.

Alle Änderungen seit v3.8.1

Release · v3.9.0

Stable Release · Published on 6 November 2026

Changelog

v3.8.1...v3.9.0

🌟 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

  • use locked Playwright CLI for publishing (69e6a50)
  • use locked Playwright CLI for browser installation (e38d4de)
  • bump the routine-updates group across 1 directory with 2 updates (#54) (ea6cd93)
  • bump the routine-updates group across 1 directory with 2 updates (#52) (692b4fa)

Toasts 3.8.1 — native focus scopes without Radix

Choose a tag to compare

@RentnerKev RentnerKev released this 29 Oct 22:49
64bb042

RentnerKev release banner

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 ToastFocusScopeBranch available from the main entry and /radix for 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 active prop for custom dialog lifecycles and skips closed, hidden or inert hosts.

Upgrade

npm install @rentnerkev/toasts@3.8.1 lucide-react@^1

React 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

v3.8.0...v3.8.1

♻️ Refactoring

  • replace Radix toast focus scope with native hosts (#48) (64bb042)

📦 Dependencies

  • bump the routine-updates group with 2 updates (#47) (12a13ae)

Toasts 3.8.0 — native animations without Motion

Choose a tag to compare

@RentnerKev RentnerKev released this 28 Oct 22:37
a9d13a9

RentnerKev release banner

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-utils and the now-unused tslib: 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@^1

No 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

v3.7.0...v3.8.0

🐛 Fixes

  • restore toast playground theme and queued timers (0873abc)

♻️ Refactoring

  • replace Motion with native toast animations (#46) (a9d13a9)

📦 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

Choose a tag to compare

@RentnerKev RentnerKev released this 17 Oct 21:30

RentnerKev release banner

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

v3.6.0...v3.7.0

🌟 Features

  • api: expose modal integration from the main package entry (583c474)

Toasts 3.6.0 — queue expiry and global modal portals

Choose a tag to compare

@RentnerKev RentnerKev released this 17 Oct 21:14

RentnerKev release banner

Adds a store-wide queue timer policy and native support for global toast portals in modal-based applications.

  • Set pauseWhenQueued={false} on ToastProvider, or pauseWhenQueued: false in createToastStore, to expire hidden notifications too. Direct toast.* calls use the provider policy.
  • Use portalContainer="body" for a stable global portal with safe server rendering and hydration.
  • Optional Radix integration: import ToastFocusScopeBranch from @rentnerkev/toasts/radix and place it inside Dialog.Content to 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

v3.5.0...v3.6.0

🌟 Features

  • toasts: support queued expiry and global modal portals (872f33f)

@rentnerkev/toasts 3.5.0

Choose a tag to compare

@RentnerKev RentnerKev released this 16 Oct 08:04

RentnerKev release banner

@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

v3.4.0...v3.5.0

🌟 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

  • bump the routine-updates group across 1 directory with 2 updates (#36) (d7554d0)
  • bump the routine-updates group with 3 updates (#31) (2894726)

v3.4.0 — AI documentation helpers

Choose a tag to compare

@RentnerKev RentnerKev released this 08 Oct 19:45

RentnerKev release banner

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.

Changes since 3.3.2

Release · v3.4.0

Stable Release · Published on 8 October 2026

Changelog

v3.3.2...v3.4.0

🌟 Features

  • add read-only AI documentation helpers (ef8edce)

📦 Dependencies

  • bump @types/node from 24.19.1 to 26.6.4 (#29) (d1d86cd)

Toasts 3.3.2

Choose a tag to compare

@RentnerKev RentnerKev released this 08 Oct 16:11

RentnerKev release banner

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

v3.3.1...v3.3.2

🐛 Fixes

  • render toasts synchronously without a loading flash (1612f1d)

📝 Docs

  • describe synchronous toast consumer coverage (22d2474)
  • link README to package website documentation (f64c2de)

Toasts 3.3.1

Choose a tag to compare

@RentnerKev RentnerKev released this 08 Oct 01:53

RentnerKev release banner

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

v3.3.0...v3.3.1

🐛 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

  • preserve documented installation contracts (706fad1)
  • simplify README and add product previews (c1bfd1b)

Toasts 3.3.0

Choose a tag to compare

@RentnerKev RentnerKev released this 07 Oct 22:41
d41ebde

RentnerKev release banner

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

v3.2.4...v3.3.0

🌟 Features

  • add lazy toast provider and optimize store (#28) (d41ebde)

📦 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)

🧹 Chores

  • update dependencies and CI actions to latest stable (#27) (a0dafd7)