Releases: emilkowalski/sonner
1.7.0
What's Changed
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 #507
Full Changelog: v1.6.1...1.7.0
v1.6.1
Thank you.
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.
What's Changed
- Allow dismissing toasts with id = 0 by @MrFlashAccount in #442
- fix toast timer by @emilkowalski in #458
- fix: add "main" entry to package.json by @adamhenson in #457
- fix: missing exported types by @alex-mcgovern in #459
- Fix dependency array by @emilkowalski in #461
- fix: reverse left position on mobile
rtl
by @zaaakher in #453 - Allow awaiting
toast.promise
by @ajmnz in #462 - feat: add support for custom close icon by @alexandernanberg in #481
- update API reference for toast() by @plbstl in #471
- fix: allow React.js v19 in peerDependencies by @theoludwig in #493
- feat: allow ref forwarding for
Toaster
by @freshgiammi in #491 - fix: support dark mode for safari < 14 using matchMedia().addListener by @yunsteel in #495
- feat: support show react element from react server function by @himself65 in #492
- Include styles.css in dist by @kevlened in #446
- fix: implement loader class from config by @joewinger in #489
- fix: remove repeat effect hook to resolve mix up by @Tzyito in #392
- Fix inability to prevent toast from closing on action button click by @iuriiiurevich in #484
- fix: incorrect stacking by @emilkowalski in #499
- chore: remove templates by @emilkowalski in #500
- fix: incorrect timer on hover by @emilkowalski in #501
- feat: allow to pass custom elements to title and description by @emilkowalski in #502
- fix: turn section into live region #306 by @tricinel in #436
- docs: remove important property from docs by @emilkowalski in #503
- fix: background for close button by @emilkowalski in #504
- feat: improve swiping by @emilkowalski in #505
- feat: lift the toasts when hoevered for a better feel by @emilkowalski in #506
New Contributors
- @MrFlashAccount made their first contribution in #442
- @adamhenson made their first contribution in #457
- @alex-mcgovern made their first contribution in #459
- @alexandernanberg made their first contribution in #481
- @plbstl made their first contribution in #471
- @theoludwig made their first contribution in #493
- @freshgiammi made their first contribution in #491
- @yunsteel made their first contribution in #495
- @kevlened made their first contribution in #446
- @joewinger made their first contribution in #489
- @Tzyito made their first contribution in #392
- @iuriiiurevich made their first contribution in #484
- @tricinel made their first contribution in #436
Full Changelog: v.1.5.0...v1.6.1
v.1.5.0
3x smaller bundle size and other improvements, thank you for all the contributions!
What's Changed
- fix: apply classnames when using toast[type] by @Kinbaum in #383
- fix: rendering of
ReactNode
descriptions by @peetzweg in #387 - feat(#414): allow individual toasts to opt into richColor styling by @nicksrandall in #415
- export ToasterProps type by @Sam-Apostel in #400
- feat: updates toast action/cancel property type/handlers by @6thpath in #398
- Get history of Toast by @dharanish-v in #266
- Fix tests by @emilkowalski in #424
- Remove dom purify to reduce bundle size by @emilkowalski in #439
- Add hooks to show active toasts by @rizqitsani in #418
- Pause timer if toast appears when the document is hidden by @pytnik23 in #426
- fix(toaster): fix typo by @Willem-Jaap in #368
- chore(docs): include a section about persisting toasts by @zaaakher in #430
- Handle async functions in
toast.promise
results by @ajmnz in #389 - fix build by @emilkowalski in #440
New Contributors
- @peetzweg made their first contribution in #387
- @nicksrandall made their first contribution in #415
- @Sam-Apostel made their first contribution in #400
- @6thpath made their first contribution in #398
- @dharanish-v made their first contribution in #266
- @pytnik23 made their first contribution in #426
- @Willem-Jaap made their first contribution in #368
- @zaaakher made their first contribution in #430
Full Changelog: v.1.4.41...v.1.5.0
v1.4.41
What's Changed
- [Docs]: Render toast on page load by @luis-viegas in #363
- fix: unmount custom loading icon correctly by @wbsdickson in #365
- HTML content sanitization and parsing for html tags inside toast by @borisadamyan in #350
- feat: add classNames for content/icon elements by @Kinbaum in #372
- fix: dynamic mobile width based on
--mobile-offset
by @atsixian in #371 - Decrease specificity by @emilkowalski in #377
- fix: toast not displaying when
Toaster.duration
is set to Infinity by @atsixian in #373 - fix:
Toaster.gap
doesn't work by @atsixian in #375 - allow to pass jsx to actions by @emilkowalski in #379
New Contributors
- @luis-viegas made their first contribution in #363
- @wbsdickson made their first contribution in #365
- @borisadamyan made their first contribution in #350
- @Kinbaum made their first contribution in #372
- @atsixian made their first contribution in #371
Full Changelog: v1.4.3...v.1.4.41
v1.4.3
What's Changed
- Replace icons in a promise correctly by @emilkowalski in #352
- Display loading icon for loading toast by @emilkowalski in #359
Full Changelog: 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 #318
- Allow to style all unstyled toasts with the default prop by @emilkowalski in #324
- Allow users to customize icons from toaster by @emilkowalski in #325
- feature: custom cn function by @jzxhuang in #310
- Fix blurry appearance by @emilkowalski in #336
- Add hooks to show active toasts by @rizqitsani in #347
- Removed an extra space by @akshar-dave in #344
New Contributors
- @rizqitsani made their first contribution in #347
- @akshar-dave made their first contribution in #344
Full Changelog: v1.4.0...v1.4.1
v1.4.0
What's Changed
- Use bunchee as bundler by @huozhi in #276
- build: bump bundler for perf purpose by @huozhi in #277
- Fix light theme on homepage by @emilkowalski in #281
- feat:
description
support function in promise by @kahosan in #279 - add PR and issue templates by @choeqq in #286
- refactor: remove unused remaining time ref by @wobsoriano in #284
- types: change label types to ReactNode by @CanRau in #280
- feat: add
icons
prop to<Toaster />
by @amirhhashemi in #270 - Fix types of toaster icons by @emilkowalski in #294
- Fix loading icon bug by @emilkowalski in #295
- Add close button prop to toast by @emilkowalski in #296
- Swap bundlers by @emilkowalski in #297
- Dont dismiss loading toast by @emilkowalski in #298
- Upgrade bunchee for bundling bug fixes by @huozhi in #299
- bump packages by @choeqq in #283
- chore: remove unused npm lock file by @huozhi in #300
- fix: make closeButton option in toast take precedence over Toaster by @jzxhuang in #309
- Renaming too general className with project-specific one (#305) by @jschoder in #315
- ghost-div doesn't block click in Firefox by @jschoder in #307
- Avoid issues with
<li>
offest when using different positions by @mmalomo in #314 - Implement option to pause when document is hidden by @etcd in #304
- Update bundler by @emilkowalski in #317
New Contributors
- @kahosan made their first contribution in #279
- @choeqq made their first contribution in #286
- @CanRau made their first contribution in #280
- @amirhhashemi made their first contribution in #270
- @jzxhuang made their first contribution in #309
- @jschoder made their first contribution in #315
- @mmalomo made their first contribution in #314
- @etcd made their first contribution in #304
Full Changelog: v1.3.0...v1.4.0
v1.3.0
What's Changed
- Remove unstyled prop from Hero toast by @IgorKowalczyk in #241
- Fix sidebar nav by @emilkowalski in #243
- fix incorrect demo code for promise toasts by @LemonFace0309 in #261
- Fresh deno compatibility by @hapaxlife in #263
- Resolves: #224 - Close button is always visible on toast when defined by @andrewbarnesweb in #227
- Remove toast classes from custom
loadingIcon
by @emilkowalski in #268 - types: export types explicitly by @huozhi in #264
- feat: add default property to classNames to the toast function and Toaster component by @imopbuilder in #245
New Contributors
- @IgorKowalczyk made their first contribution in #241
- @LemonFace0309 made their first contribution in #261
- @hapaxlife made their first contribution in #263
- @andrewbarnesweb made their first contribution in #227
- @imopbuilder made their first contribution in #245
Full Changelog: v1.2.4...v1.3.0
v1.2.4
What's Changed
- Props for toast container and close button aria-labels by @rodymolenaar in #239
- Improve unstyled prop, add docs by @emilkowalski in #240
New Contributors
- @rodymolenaar made their first contribution in #239
Full Changelog: v1.2.3...v1.2.4