v1.7.3
- fix: swipe test by @emilkowalski in https://github.com/emilkowalski/sonner/pull/545
- fix: useSonner hook by @emilkowalski in https://github.com/emilkowalski/sonner/pull/549
Full Changelog: https://github.com/emilkowalski/sonner/compare/v.1.7.2...v1.7.3
v.1.7.2
You can now customize offsets more easily & swipe to the right/left as well.
- Utilize ref in Toaster by @rostero1 in https://github.com/emilkowalski/sonner/pull/536
- fix: dark mode for close button by @hunterrmartinn in https://github.com/emilkowalski/sonner/pull/531
- fix: inability to update toast duration dynamically #529 by @hqw567 in https://github.com/emilkowalski/sonner/pull/533
- fix: next build error by @emilkowalski in https://github.com/emilkowalski/sonner/pull/538
- fix: tests by @emilkowalski in https://github.com/emilkowalski/sonner/pull/539
- fix: hydration warning by @emilkowalski in https://github.com/emilkowalski/sonner/pull/540
- feat: add options to configure offsets on mobile by @CHC383 in https://github.com/emilkowalski/sonner/pull/526
- feat: enhanced offset settings by @emilkowalski in https://github.com/emilkowalski/sonner/pull/542
- refactor: remove cn function by @emilkowalski in https://github.com/emilkowalski/sonner/pull/543
- feat: add more swipe directions by @emilkowalski in https://github.com/emilkowalski/sonner/pull/544
- @rostero1 made their first contribution in https://github.com/emilkowalski/sonner/pull/536
- @hqw567 made their first contribution in https://github.com/emilkowalski/sonner/pull/533
- @CHC383 made their first contribution in https://github.com/emilkowalski/sonner/pull/526
Full Changelog: https://github.com/emilkowalski/sonner/compare/v1.7.1...v.1.7.2
v1.7.1
Updated docs: https://sonner.emilkowal.ski/getting-started
- Fix top position swipe direction by @hunterrmartinn in https://github.com/emilkowalski/sonner/pull/513
- fix: styles.css is not declared in package.json by @molvqingtai in https://github.com/emilkowalski/sonner/pull/508
- @hunterrmartinn made their first contribution in https://github.com/emilkowalski/sonner/pull/513
- @molvqingtai made their first contribution in https://github.com/emilkowalski/sonner/pull/508
Full Changelog: https://github.com/emilkowalski/sonner/compare/1.7.0...v1.7.1
1.7.0
Majority of the updates are in https://github.com/emilkowalski/sonner/releases/tag/v1.6.1
- feat: improve lift animation, better swiping UX by @emilkowalski in https://github.com/emilkowalski/sonner/pull/507
Full Changelog: https://github.com/emilkowalski/sonner/compare/v1.6.1...1.7.0
v1.6.1
Thank you for using this library. This one contains a lot improvements, it also improves the animations a bit.
I released 1.6.0 and 1.6.1 right after, because I didn't build the package properly. You should use 1.6.1.
- Allow dismissing toasts with id = 0 by @MrFlashAccount in https://github.com/emilkowalski/sonner/pull/442
- fix toast timer by @emilkowalski in https://github.com/emilkowalski/sonner/pull/458
- fix: add "main" entry to package.json by @adamhenson in https://github.com/emilkowalski/sonner/pull/457
- fix: missing exported types by @alex-mcgovern in https://github.com/emilkowalski/sonner/pull/459
- Fix dependency array by @emilkowalski in https://github.com/emilkowalski/sonner/pull/461
- fix: reverse left position on mobile
rtl
by @zaaakher in https://github.com/emilkowalski/sonner/pull/453 - Allow awaiting
toast.promise
by @ajmnz in https://github.com/emilkowalski/sonner/pull/462 - feat: add support for custom close icon by @alexandernanberg in https://github.com/emilkowalski/sonner/pull/481
- update API reference for toast() by @plbstl in https://github.com/emilkowalski/sonner/pull/471
- fix: allow React.js v19 in peerDependencies by @theoludwig in https://github.com/emilkowalski/sonner/pull/493
- feat: allow ref forwarding for
Toaster
by @freshgiammi in https://github.com/emilkowalski/sonner/pull/491 - fix: support dark mode for safari < 14 using matchMedia().addListener by @yunsteel in https://github.com/emilkowalski/sonner/pull/495
- feat: support show react element from react server function by @himself65 in https://github.com/emilkowalski/sonner/pull/492
- Include styles.css in dist by @kevlened in https://github.com/emilkowalski/sonner/pull/446
- fix: implement loader class from config by @joewinger in https://github.com/emilkowalski/sonner/pull/489
- fix: remove repeat effect hook to resolve mix up by @Tzyito in https://github.com/emilkowalski/sonner/pull/392
- Fix inability to prevent toast from closing on action button click by @iuriiiurevich in https://github.com/emilkowalski/sonner/pull/484
- fix: incorrect stacking by @emilkowalski in https://github.com/emilkowalski/sonner/pull/499
- chore: remove templates by @emilkowalski in https://github.com/emilkowalski/sonner/pull/500
- fix: incorrect timer on hover by @emilkowalski in https://github.com/emilkowalski/sonner/pull/501
- feat: allow to pass custom elements to title and description by @emilkowalski in https://github.com/emilkowalski/sonner/pull/502
- fix: turn section into live region #306 by @tricinel in https://github.com/emilkowalski/sonner/pull/436
- docs: remove important property from docs by @emilkowalski in https://github.com/emilkowalski/sonner/pull/503
- fix: background for close button by @emilkowalski in https://github.com/emilkowalski/sonner/pull/504
- feat: improve swiping by @emilkowalski in https://github.com/emilkowalski/sonner/pull/505
- feat: lift the toasts when hoevered for a better feel by @emilkowalski in https://github.com/emilkowalski/sonner/pull/506
- @MrFlashAccount made their first contribution in https://github.com/emilkowalski/sonner/pull/442
- @adamhenson made their first contribution in https://github.com/emilkowalski/sonner/pull/457
- @alex-mcgovern made their first contribution in https://github.com/emilkowalski/sonner/pull/459
- @alexandernanberg made their first contribution in https://github.com/emilkowalski/sonner/pull/481
- @plbstl made their first contribution in https://github.com/emilkowalski/sonner/pull/471
- @theoludwig made their first contribution in https://github.com/emilkowalski/sonner/pull/493
- @freshgiammi made their first contribution in https://github.com/emilkowalski/sonner/pull/491
- @yunsteel made their first contribution in https://github.com/emilkowalski/sonner/pull/495
- @kevlened made their first contribution in https://github.com/emilkowalski/sonner/pull/446
- @joewinger made their first contribution in https://github.com/emilkowalski/sonner/pull/489
- @Tzyito made their first contribution in https://github.com/emilkowalski/sonner/pull/392
- @iuriiiurevich made their first contribution in https://github.com/emilkowalski/sonner/pull/484
- @tricinel made their first contribution in https://github.com/emilkowalski/sonner/pull/436
Full Changelog: https://github.com/emilkowalski/sonner/compare/v.1.5.0...v1.6.1
v.1.5.0
3x smaller bundle size and other improvements, thank you for all the contributions!
- fix: apply classnames when using toast[type] by @Kinbaum in https://github.com/emilkowalski/sonner/pull/383
- fix: rendering of
ReactNode
descriptions by @peetzweg in https://github.com/emilkowalski/sonner/pull/387 - feat(#414): allow individual toasts to opt into richColor styling by @nicksrandall in https://github.com/emilkowalski/sonner/pull/415
- export ToasterProps type by @Sam-Apostel in https://github.com/emilkowalski/sonner/pull/400
- feat: updates toast action/cancel property type/handlers by @6thpath in https://github.com/emilkowalski/sonner/pull/398
- Get history of Toast by @dharanish-v in https://github.com/emilkowalski/sonner/pull/266
- Fix tests by @emilkowalski in https://github.com/emilkowalski/sonner/pull/424
- Remove dom purify to reduce bundle size by @emilkowalski in https://github.com/emilkowalski/sonner/pull/439
- Add hooks to show active toasts by @rizqitsani in https://github.com/emilkowalski/sonner/pull/418
- Pause timer if toast appears when the document is hidden by @pytnik23 in https://github.com/emilkowalski/sonner/pull/426
- fix(toaster): fix typo by @Willem-Jaap in https://github.com/emilkowalski/sonner/pull/368
- chore(docs): include a section about persisting toasts by @zaaakher in https://github.com/emilkowalski/sonner/pull/430
- Handle async functions in
toast.promise
results by @ajmnz in https://github.com/emilkowalski/sonner/pull/389 - fix build by @emilkowalski in https://github.com/emilkowalski/sonner/pull/440
- @peetzweg made their first contribution in https://github.com/emilkowalski/sonner/pull/387
- @nicksrandall made their first contribution in https://github.com/emilkowalski/sonner/pull/415
- @Sam-Apostel made their first contribution in https://github.com/emilkowalski/sonner/pull/400
- @6thpath made their first contribution in https://github.com/emilkowalski/sonner/pull/398
- @dharanish-v made their first contribution in https://github.com/emilkowalski/sonner/pull/266
- @pytnik23 made their first contribution in https://github.com/emilkowalski/sonner/pull/426
- @Willem-Jaap made their first contribution in https://github.com/emilkowalski/sonner/pull/368
- @zaaakher made their first contribution in https://github.com/emilkowalski/sonner/pull/430
Full Changelog: https://github.com/emilkowalski/sonner/compare/v.1.4.41...v.1.5.0
v1.4.41
- [Docs]: Render toast on page load by @luis-viegas in https://github.com/emilkowalski/sonner/pull/363
- fix: unmount custom loading icon correctly by @wbsdickson in https://github.com/emilkowalski/sonner/pull/365
- HTML content sanitization and parsing for html tags inside toast by @borisadamyan in https://github.com/emilkowalski/sonner/pull/350
- feat: add classNames for content/icon elements by @Kinbaum in https://github.com/emilkowalski/sonner/pull/372
- fix: dynamic mobile width based on
--mobile-offset
by @atsixian in https://github.com/emilkowalski/sonner/pull/371 - Decrease specificity by @emilkowalski in https://github.com/emilkowalski/sonner/pull/377
- fix: toast not displaying when
Toaster.duration
is set to Infinity by @atsixian in https://github.com/emilkowalski/sonner/pull/373 - fix:
Toaster.gap
doesn't work by @atsixian in https://github.com/emilkowalski/sonner/pull/375 - allow to pass jsx to actions by @emilkowalski in https://github.com/emilkowalski/sonner/pull/379
- @luis-viegas made their first contribution in https://github.com/emilkowalski/sonner/pull/363
- @wbsdickson made their first contribution in https://github.com/emilkowalski/sonner/pull/365
- @borisadamyan made their first contribution in https://github.com/emilkowalski/sonner/pull/350
- @Kinbaum made their first contribution in https://github.com/emilkowalski/sonner/pull/372
- @atsixian made their first contribution in https://github.com/emilkowalski/sonner/pull/371
Full Changelog: https://github.com/emilkowalski/sonner/compare/v1.4.3...v.1.4.41
v1.4.3
- Replace icons in a promise correctly by @emilkowalski in https://github.com/emilkowalski/sonner/pull/352
- Display loading icon for loading toast by @emilkowalski in https://github.com/emilkowalski/sonner/pull/359
Full Changelog: https://github.com/emilkowalski/sonner/compare/v1.4.1...v1.4.3
v1.4.1
What's Changed
You can now customize icons from <Toaster />
, this was announced in the previous version, but was reverted afterwards. Sorry about that!
- Update README.md by @emilkowalski in https://github.com/emilkowalski/sonner/pull/318
- Allow to style all unstyled toasts with the default prop by @emilkowalski in https://github.com/emilkowalski/sonner/pull/324
- Allow users to customize icons from toaster by @emilkowalski in https://github.com/emilkowalski/sonner/pull/325
- feature: custom cn function by @jzxhuang in https://github.com/emilkowalski/sonner/pull/310
- Fix blurry appearance by @emilkowalski in https://github.com/emilkowalski/sonner/pull/336
- Add hooks to show active toasts by @rizqitsani in https://github.com/emilkowalski/sonner/pull/347
- Removed an extra space by @akshar-dave in https://github.com/emilkowalski/sonner/pull/344
New Contributors
- @rizqitsani made their first contribution in https://github.com/emilkowalski/sonner/pull/347
- @akshar-dave made their first contribution in https://github.com/emilkowalski/sonner/pull/344
Full Changelog: https://github.com/emilkowalski/sonner/compare/v1.4.0...v1.4.1
v1.4.0
What's Changed
- Use bunchee as bundler by @huozhi in https://github.com/emilkowalski/sonner/pull/276
- build: bump bundler for perf purpose by @huozhi in https://github.com/emilkowalski/sonner/pull/277
- Fix light theme on homepage by @emilkowalski in https://github.com/emilkowalski/sonner/pull/281
- feat:
description
support function in promise by @kahosan in https://github.com/emilkowalski/sonner/pull/279 - add PR and issue templates by @choeqq in https://github.com/emilkowalski/sonner/pull/286
- refactor: remove unused remaining time ref by @wobsoriano in https://github.com/emilkowalski/sonner/pull/284
- types: change label types to ReactNode by @CanRau in https://github.com/emilkowalski/sonner/pull/280
- feat: add
icons
prop to<Toaster />
by @amirhhashemi in https://github.com/emilkowalski/sonner/pull/270 - Fix types of toaster icons by @emilkowalski in https://github.com/emilkowalski/sonner/pull/294
- Fix loading icon bug by @emilkowalski in https://github.com/emilkowalski/sonner/pull/295
- Add close button prop to toast by @emilkowalski in https://github.com/emilkowalski/sonner/pull/296
- Swap bundlers by @emilkowalski in https://github.com/emilkowalski/sonner/pull/297
- Dont dismiss loading toast by @emilkowalski in https://github.com/emilkowalski/sonner/pull/298
- Upgrade bunchee for bundling bug fixes by @huozhi in https://github.com/emilkowalski/sonner/pull/299
- bump packages by @choeqq in https://github.com/emilkowalski/sonner/pull/283
- chore: remove unused npm lock file by @huozhi in https://github.com/emilkowalski/sonner/pull/300
- fix: make closeButton option in toast take precedence over Toaster by @jzxhuang in https://github.com/emilkowalski/sonner/pull/309
- Renaming too general className with project-specific one (#305) by @jschoder in https://github.com/emilkowalski/sonner/pull/315
- ghost-div doesn't block click in Firefox by @jschoder in https://github.com/emilkowalski/sonner/pull/307
- Avoid issues with
<li>
offest when using different positions by @mmalomo in https://github.com/emilkowalski/sonner/pull/314 - Implement option to pause when document is hidden by @etcd in https://github.com/emilkowalski/sonner/pull/304
- Update bundler by @emilkowalski in https://github.com/emilkowalski/sonner/pull/317
New Contributors
- @kahosan made their first contribution in https://github.com/emilkowalski/sonner/pull/279
- @choeqq made their first contribution in https://github.com/emilkowalski/sonner/pull/286
- @CanRau made their first contribution in https://github.com/emilkowalski/sonner/pull/280
- @amirhhashemi made their first contribution in https://github.com/emilkowalski/sonner/pull/270
- @jzxhuang made their first contribution in https://github.com/emilkowalski/sonner/pull/309
- @jschoder made their first contribution in https://github.com/emilkowalski/sonner/pull/315
- @mmalomo made their first contribution in https://github.com/emilkowalski/sonner/pull/314
- @etcd made their first contribution in https://github.com/emilkowalski/sonner/pull/304
Full Changelog: https://github.com/emilkowalski/sonner/compare/v1.3.0...v1.4.0