v2.4.1
Better RSC Support
- Improve React Server Components support (Next.js 13 App Router)
- Prepend
"use client"
to build ouput 92aef53
- Prepend
https://github.com/timolins/react-hot-toast/compare/v2.4.0...v2.4.1
v2.4.0
What's new
- Allow change of of toast heights – Fixes #133
- Fix infinite loop during unit testing 1dcb2f2 – (Thanks silvenon)
- Add testing setup 82afa93 – (Thanks silvenon)
- Restructure handlers for better memoization ec653ec
- Use MutationObserver for height changes 9eddc26
https://github.com/timolins/react-hot-toast/compare/v2.3.0...v2.4.0-beta.0
v2.3.0
Better bundle setup
This release focuses on build and bundle improvements (faster, lighter & better).
- Expose
react-hot-toast/headless
- for headless environments like react-native - Bundle is now 15% (5% gzipped) smaller
- Bonus: 3x faster dev builds
What's Changed
- Improve dev setup (
pnpm
, update deps) by @timolins in https://github.com/timolins/react-hot-toast/pull/203 - New bundler setup (tsup instead of tsdx) with
react-hot-toast/headless
by @timolins in https://github.com/timolins/react-hot-toast/pull/205 - Website Example: Make snippet consistent with action by @diksown in https://github.com/timolins/react-hot-toast/pull/196
- Docs: update version 2 page custom render api code example by @AnishDe12020 in https://github.com/timolins/react-hot-toast/pull/175
- fix: csstype peer dep by @eeston in https://github.com/timolins/react-hot-toast/pull/183
- Site Docs: 'one' => 'once' :) by @cbserra in https://github.com/timolins/react-hot-toast/pull/201
- Website Example: Make snippet consistent with action by @diksown in https://github.com/timolins/react-hot-toast/pull/196
New Contributors
- @AnishDe12020 made their first contribution in https://github.com/timolins/react-hot-toast/pull/175
- @eeston made their first contribution in https://github.com/timolins/react-hot-toast/pull/183
- @cbserra made their first contribution in https://github.com/timolins/react-hot-toast/pull/201
- @diksown made their first contribution in https://github.com/timolins/react-hot-toast/pull/196
Full Changelog: https://github.com/timolins/react-hot-toast/compare/v2.2.0...v2.3.0
v2.3.0-beta.1
Update package setup to be ESM compliant
- Use
.mjs
extension for ESM module - Update package.json according to #204 ae4a1eb - Use
main
in package.json de10f5c - Update entry file in tsup config e63de48
Clean Up
- Add automatic tsconfig update from Next.js 8c149db
- Rename
index.tsx
toindex.ts
0749440 - Remove prepare script 3b9ef79
https://github.com/timolins/react-hot-toast/compare/v2.3.0-beta...v2.3.0-beta.1
v2.3.0-beta
This version is focus on improving the build & bundle setup. It's now using tsup (powered by esbuild) instead of unmaintained tsdx
. Additionaly, npm v4 was replaced by pnpm.
Those changes gives us a way faster and simpler builds + should allows usage in headless environments again (react-native).
- Use pnpm instead of old NPM - Resolves dependency linking
🚀 #186 b46a386 - Remove
tsdx
& addprettier
hook * No more linting from tsdx. Should be okay to use prettier * Lot less dependencies * Prettify files 28d83a9 - Use
export type
for types 4f43ea3 - Use
tsup
instead oftsdx
This gives us more control about the build process * Exposereact-hot-toast/headless
- Fixes #39 * Bundle size is even smaller now d58cb35 - Add pnpm to size check action 9da3b6e
- Migrate docs to MDX 2 f776144
- Align site for React 18 & Tailwind 3 8b716de
- fix: missing csstype peer dep 30bdaf5
https://github.com/timolins/react-hot-toast/compare/v2.2.0...v2.3.0-beta
v2.2.0
Changes
- Expose core types 70dbbb2
- Update goober 1563b56
- Preserve line breaks in toast body Closes #144 f981e45
Docs
- Fix example in docs 09ded7f
- Fix typo 379cf3e
- Add missing import to example fbb2612
- Fix typo in Toaster page c93328a
https://github.com/timolins/react-hot-toast/compare/v2.1.1...v2.2.0
v2.1.1
fix:
matchMedia is not defined
46cc577Make the page title match the component name e510767
Fix linting error b1d2382
Merge pull request #115 from BenJenkinson/patch-1 0027e31
Merge pull request #112 from Dev-CasperTheGhost/main ddc56b0
https://github.com/timolins/react-hot-toast/compare/v2.1.0...v2.1.1
v2.1.0
Changes
- Expose
Toast
type - Closes #91 b9c2d93 - Merge pull request #99 from jlalmes/export-icons d7a335e
Docs
- Prevent script from running twice f594e2e
- Rollback default icon exports made by release 2.0 e81cc38
- Add
position
option to toast docs 9b481f0 - Merge branch 'main' of https://github.com/timolins/hot-toast 69cd7fe
- Use proxy for realtime counter afe3405
- Add description to package.json 864a77c
- Merge pull request #87 from ruisaraiva19/main 81ec4e4
- fix(aria): use new ariaProps property 274dd7b
- Add realtime counter to website 25a0703
https://github.com/timolins/react-hot-toast/compare/v2.0.0...v2.1.0
v2.0.0
New
- Easier Customization
- Create your own toast renderer (without useToaster)
- Support for custom render function in Toaster
- Support for custom render function in ToastBar
toast.custom()
- Render custom one-off toasts. No default styling will be applied.
- Create your own toast renderer (without useToaster)
- Per toast positioning
- New exit animation
- Change the gutter between toasts with
<Toaster gutter={20} />
- Support for relative positioning
- Respect reduce motion OS setting
- Create persistent toasts with
duration: Infinity
Breaking Changes
- Use the
top
,right
,bottom
,left
to incontainerStyle
to change the offset, instead of margin - Loading toasts no longer disappear after 30 seconds
role
&ariaLive
got moved intoariaProps
useToaster()
no longer exposesvisibleToasts
- No longer expose
dispatch
Changes
- Add rehype-slug for same page linking d182844
- Update docs for 2.0 release 7587f5e
- Clean up keyframe strings 013deef
- Add fade animation to reduce motion 8057bb3
- docs: fix typo on custom toaster e448a6e
- fix(toast-bar): use fragment to remove unique key prop error 6c89e91
- fix: remove unused import 809fa25
- Update docs for 2.0 b2f4611
- CSS fix for IE b650ea0
- Add tailwind animation for examples cfbf32a
- Fix sticky nav in docs 03d75e9
- Use activeClass for pointer events 2036a3f
- Use children instead of render prop 8388051
- Extract default offset to variable ff9a762
- Use flexbox for toast positioning 9381c26
- Expose
gutter
prop 273e29e - Reduce custom toast duration to 4 seconds 466825d
- Scope aria props and add render function support f1d367c
- Add reduce motion support Closes #34 0363011
- Footer (fix year) 1b2e82a
- Use dynamic year in footer 6639eea
- Allow position to be configured per toast 80e936f
- Fix invalid types/imports 664bcbf
- Refactor
Indicator
toToastIcon
component - Also export resolveValue to render custom JSX content 25690e0 - Add support for
toast.custom
- Render any JSX without additional styles b7509bd - Use React.CSSProperties instead csstype e58d6a8
- Add
containerClassName
prop - Closes #43 2be3b23 - Add support for per toast position - Breaking: Remove visibleToasts - Rename
margin
togutter
345aac0 - Add
renderToast
option to Toatser - Allows you to replace default toast with custom component (Closes #13) 207bf66 - Set
sideEffects: false
in package.json 641369f - Breaking: No longer expose
dispatch
8f82fec - Update goober & add
csstype
as dev dependency Closes #44 d60adb6 - Improve animations and exit positioning - Hidden toasts now stay at their position - Use percentages instead of px for animation 396db8b
- Change toast positioning to absolute 781b16f
- Move height ref to <Toaster/> 06e271c
- Update use-toaster.mdx 1ed8c8e
- Increase default duration from loading toasts to Infinity Fixes #45 633cb6f
- Keep track of dismissed toasts 176bc05
- Fix typo in Toaster docs cf1fd4c
- Fix a typo e1c68b6
- fix spelling error 619b508
- Update footer link d30d2e4
- Use
Infinity
instead of-1
for persistant toasts a214271 - Remove dismiss from example 597a17d
- Allow
-1
duration for persistent toasts 64b5568 - Fix
undefined
id e40ebbd - Positioning wrapper div gets no pointer events b441274
- Move comment in toaster.mdx b0a1da4
- add missing className to example with all available options 4239b66
- Add missing goober setup b43caa1
- Lift position wrapper to Toaster aa3c0c6
https://github.com/timolins/react-hot-toast/compare/v1.0.2...v2.0.0
2.0.0 Beta
- Add tailwind animation for examples cfbf32a
- Fix sticky nav in docs 03d75e9
- Use activeClass for pointer events 2036a3f
- Use children instead of render prop 8388051
- Extract default offset to variable ff9a762
- Use flexbox for toast positioning 9381c26
- Expose
gutter
prop 273e29e - Reduce custom toast duration to 4 seconds 466825d
- Scope aria props and add render function support f1d367c
- Add reduce motion support Closes #34 0363011
- Merge remote-tracking branch 'origin/main' into dev 39f85aa
- Merge pull request #72 from timurmaio/main ad291cf
- Footer (fix year) 1b2e82a
- Use dynamic year in footer 6639eea
- Allow position to be configured per toast 80e936f
- Merge branch 'main' into dev 1a584db
- Fix invalid types/imports 664bcbf
- Refactor
Indicator
toToastIcon
component - Also export resolveValue to render custom JSX content 25690e0 - Add support for
toast.custom
- Render any JSX without additional styles b7509bd - Use React.CSSProperties instead csstype e58d6a8
- Add
containerClassName
prop - Closes #43 2be3b23 - Add support for per toast position - Breaking: Remove visibleToasts - Rename
margin
togutter
345aac0 - Add
renderToast
option to Toatser - Allows you to replace default toast with custom component (Closes #13) 207bf66 - Set
sideEffects: false
in package.json 641369f - Breaking: No longer expose
dispatch
8f82fec - Update goober & add
csstype
as dev dependency Closes #44 d60adb6 - Improve animations and exit positioning - Hidden toasts now stay at their position - Use percentages instead of px for animation 396db8b
- Merge branch 'lift-position-wrapper' into dev 41aac06
- Change toast positioning to absolute 781b16f
- Merge pull request #53 from timolins/clear-timeouts 351e62a
- Move height ref to <Toaster/> 06e271c
- Update use-toaster.mdx 1ed8c8e
- Merge branch 'lift-position-wrapper' into dev 2d52e4e
- Merge branch 'clear-timeouts' into dev 8a3ac8c
- Merge branch 'infinity-loading' into dev 3836611
- Merge pull request #49 from gr-qft/patch-1 2b8f7c1
- Increase default duration from loading toasts to Infinity Fixes #45 633cb6f
- Keep track of dismissed toasts 176bc05
- Merge pull request #52 from tmcw/patch-1 1609cc6
- Fix typo in Toaster docs cf1fd4c
- Fix a typo e1c68b6
- Merge pull request #48 from domenicrosati/patch-1 bfa5129
- fix spelling error 619b508
- Merge pull request #37 from timolins/persistent-toast 3e2c069
- Merge pull request #35 from hudochenkov/fix-id 8cd1535
- Update footer link d30d2e4
- Use
Infinity
instead of-1
for persistant toasts a214271 - Remove dismiss from example 597a17d
- Allow
-1
duration for persistent toasts 64b5568 - Fix
undefined
id e40ebbd - Merge pull request #32 from Kilian/patch-2 67bdc5b
- Positioning wrapper div gets no pointer events b441274
- Merge pull request #30 from Kilian/patch-1 854c4e2
- Move comment in toaster.mdx b0a1da4
- add missing className to example with all available options 4239b66
- Merge remote-tracking branch 'origin/main' into lift-position-wrapper 802fe9e
- Add missing goober setup b43caa1
- Lift position wrapper to Toaster aa3c0c6
https://github.com/timolins/react-hot-toast/compare/v1.0.2...v2.0.0-beta.0