SVoast changelog
3.0.0
- Svelte 5 support.
This is a complete convert over to Svelte 5.
Svelte 4 will not work with this update.
2.5.0
- Returned original promise with
toast.promise
(thanks andogq!) - Allowed
toast.promise
success
anderror
config options to be a callback with the resulting data passed though. (thanks andogq!)
2.4.5
- Added timeout tracking to reduce any unnecessary timeout calls.
2.3.0
- Added
onStart
,onSuccess
,onError
, andonFinish
life cycle hooks to the promise toast.
2.2.0
- New
promise
method.
2.1.3
- Fixed global components.
2.1.2
- Better handling of default options and animations.
- Better comments on types and props.
2.1.1
- Fixed default icons being shrunk by max width.
2.1.0
- Allowed for string duration timers. To allow for better clarity for those who wish.
1.25s
=1250
150ms
=150
0.75s
=750
2.0.0
- Merged
Attention/Check/Cross/Info/Warning.svelte
into a singleIcon.svelte
which receives aToastType
and looks up the SVG icon data from a map.
1.3.0
- Added
rich
option to allow for rich HTML content in the message. - Added
onMount
andonRemove
life cycle hooks. removeById
checks if ID exists in store before removing.
1.2.1
- Added
removeAll
method. - Made
removeById
andremoveByIndex
synchronous.
1.2.0
- Added
infinite
prop. - Renamed
remove
toremoveById
to provide better clairity. - Added
removeByIndex
which will, remove the toast by the given index.
1.1.0
- Rewrite of internal code.
- This doesn’t change anything user side but makes it much easier to maintain.
opts
passed prop has been replaced by extracting both options to their own separate prop.export let opts
,opts.duration
>export let duration
,duration
.
- The
component
option is no longer passed to the toast component.
1.0.0
- Allowed the use of custom components.
- Read the Docs to learn more.
0.1.1
- Exported all used icons.
0.1.0
- Added icon to match the type of toast.
- Fixed smaller toasts stretching to the the width of larger toasts.
0.0.1
- Hmmmm toast…