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.promisesuccessanderrorconfig 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, andonFinishlife cycle hooks to the promise toast.
2.2.0
- New
promisemethod.
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=1250150ms=1500.75s=750
2.0.0
- Merged
Attention/Check/Cross/Info/Warning.svelteinto a singleIcon.sveltewhich receives aToastTypeand looks up the SVG icon data from a map.
1.3.0
- Added
richoption to allow for rich HTML content in the message. - Added
onMountandonRemovelife cycle hooks. removeByIdchecks if ID exists in store before removing.
1.2.1
- Added
removeAllmethod. - Made
removeByIdandremoveByIndexsynchronous.
1.2.0
- Added
infiniteprop. - Renamed
removetoremoveByIdto provide better clairity. - Added
removeByIndexwhich 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.
optspassed prop has been replaced by extracting both options to their own separate prop.export let opts,opts.duration>export let duration,duration.
- The
componentoption 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…