Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog
and this project adheres to Semantic Versioning.
[3.1.1] - 04.21.2020
Fixed
- Removed error which was displayed when you create new toast at the end of old toast’s animation.
[3.1.0] - 12.09.2019
Added
- New method
closeToasts. It closes all visible toasts.
[3.0.6] - 12.02.2019
Changed
- Update
readme.md
[3.0.5] - 11.29.2019
Fixed
- Removed error which was displayed when you get rejected promise.
[3.0.4] - 11.27.2019
Fixed
- Removed comma between buttons in confirmation window
Updated
- Dev dependencies
[3.0.3] - 06.25.2019
Added
confirmnow has option to hide ‘Cancel’ button. Read docs to learn more.
[3.0.2] - 05.08.2019
Added
- Keyup listeners for popups
async-blocknow rejects all keydownspopupnow removes focus on open.Tabkey and its combination keydowns are being omitted to keep focus trapped.Esckey closes the window.confirmnow set focus toOKbutton on open.Tabkey and its combination keydowns are handled to keep focus inside the window.Esckey closes the window.- Updated docs sections regarding this update
- New GIF in Readme
afterDeletemethod toelemclass
Fixed
demolink in docs
[3.0.1] - 05.01.2019
Fixed
position option now works as expected
[3.0.0] - 04.13.2019
Massive update which changed a big part of internal logic and added some new features.
Added
- Optional
optionsparamater for every public method. It used to override global options per call. - Durations settings for each toast separately. It’s available under
options.durationsproperty. - Minimum durations settings for each async element. It’s available under
options.minDurationsproperty. - New default function which formats errors. It’s available under
options.formatErrorproperty. - Now all messages passed to
alert()method will be formatted byoptions.formatError. - All toasts and popups methods, now return HTMLElement which was created by them.
- New default messages. It’s available under
options.messages - Enhanced design for toasts and popups.
- Brand new handsome and detailed documentation.
- New JS bundle for modern browsers.
_addToastmethod_addPopupmethod_afterAsyncmethod_responseHandlermethod, which is specific for_afterAsynccontainergetter- Webpack compress bundles to gzip format
Changed
- New library gzipped sizes:
4kb- default bundle,3kb- modern bundle. - Now icons are use Font Awesome 5 by default.
htmlparameter of all elements, now namedmessage. It’s no longer mandatory.options.modal.okLabeltooptions.labels.confirmOkoptions.modal.okLabeltooptions.labels.confirmCanceloptions.modal.okLabeltooptions.labels.confirmCanceloptions.asyncBlockMinDurationtooptions.minDurations["async-block"]options.durationtooptions.durations.globaloptions.handleRejecttooptions.formatError- Internal name of
Modalclass changed toPopup - Change browserlist setting for default bundle
- Rename
defaults.jsfile tooptions.js - Rename
modal.jsfile topopup.js
Removed
notifymethod_runFunctionmethod_getContainermethodoptions.modal.maxWidthproperty, use CSS instead
Fixed
- Now NPM dist contains
index.var.js
[2.2.9] - 04.27.2018
Changed
- Rename
styles.csstostyle.cssto remove breaking change.
[2.2.8] - 04.03.2018
Changed
- Update
.npmignoreto decrease package size
[2.2.7] - 04.03.2018
Changed
- Update
readme.md
[2.2.6] - 04.03.2018
Added
test/defaults.spec.jsfor testingdefaults.jsfile.
Changed
- DefaultsDeep function has been changed.
- Change Babel config. Now project supports only 2 last versions of browsers.
- Start using Webpack 4.
webpack.config.jshas been changed. - Start using Yarn instead of NPM.
- Refactoring of
defaults.jscode.
Removed
- Remove
lodash.defaultsdeepdependency. - Remove few old unneeded development dependencies.