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
confirm
now has option to hide ‘Cancel’ button. Read docs to learn more.
[3.0.2] - 05.08.2019
Added
- Keyup listeners for popups
async-block
now rejects all keydownspopup
now removes focus on open.Tab
key and its combination keydowns are being omitted to keep focus trapped.Esc
key closes the window.confirm
now set focus toOK
button on open.Tab
key and its combination keydowns are handled to keep focus inside the window.Esc
key closes the window.- Updated docs sections regarding this update
- New GIF in Readme
afterDelete
method toelem
class
Fixed
demo
link 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
options
paramater for every public method. It used to override global options per call. - Durations settings for each toast separately. It’s available under
options.durations
property. - Minimum durations settings for each async element. It’s available under
options.minDurations
property. - New default function which formats errors. It’s available under
options.formatError
property. - 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.
_addToast
method_addPopup
method_afterAsync
method_responseHandler
method, which is specific for_afterAsync
container
getter- 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.
html
parameter of all elements, now namedmessage
. It’s no longer mandatory.options.modal.okLabel
tooptions.labels.confirmOk
options.modal.okLabel
tooptions.labels.confirmCancel
options.modal.okLabel
tooptions.labels.confirmCancel
options.asyncBlockMinDuration
tooptions.minDurations["async-block"]
options.duration
tooptions.durations.global
options.handleReject
tooptions.formatError
- Internal name of
Modal
class changed toPopup
- Change browserlist setting for default bundle
- Rename
defaults.js
file tooptions.js
- Rename
modal.js
file topopup.js
Removed
notify
method_runFunction
method_getContainer
methodoptions.modal.maxWidth
property, use CSS instead
Fixed
- Now NPM dist contains
index.var.js
[2.2.9] - 04.27.2018
Changed
- Rename
styles.css
tostyle.css
to remove breaking change.
[2.2.8] - 04.03.2018
Changed
- Update
.npmignore
to decrease package size
[2.2.7] - 04.03.2018
Changed
- Update
readme.md
[2.2.6] - 04.03.2018
Added
test/defaults.spec.js
for testingdefaults.js
file.
Changed
- DefaultsDeep function has been changed.
- Change Babel config. Now project supports only 2 last versions of browsers.
- Start using Webpack 4.
webpack.config.js
has been changed. - Start using Yarn instead of NPM.
- Refactoring of
defaults.js
code.
Removed
- Remove
lodash.defaultsdeep
dependency. - Remove few old unneeded development dependencies.