UNPKG

vue-awesome-notifications

Version:

Vue.js version of Awesome Notifications JavaScript library

143 lines (96 loc) 4.39 kB
# Changelog All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). ## [3.1.1] - 04.21.2020 ### Updated * Dependencies ## [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] - 12.02.2019 ### Updated * Dependencies ## [3.0.4] - 11.28.2019 ### Updated * 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 keydowns * `popup` 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 to `OK` 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 to `elem` 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 by `options.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 named `message`. It's no longer mandatory. * `options.modal.okLabel` to `options.labels.confirmOk` * `options.modal.okLabel` to `options.labels.confirmCancel` * `options.modal.okLabel` to `options.labels.confirmCancel` * `options.asyncBlockMinDuration` to `options.minDurations["async-block"]` * `options.duration` to `options.durations.global` * `options.handleReject` to `options.formatError` * Internal name of `Modal` class changed to `Popup` * Change browserlist setting for default bundle * Rename `defaults.js` file to `options.js` * Rename `modal.js` file to `popup.js` ### Removed * `notify` method * `_runFunction` method * `_getContainer` method * `options.modal.maxWidth` property, use CSS instead ### Fixed * Now NPM dist contains `index.var.js` ## [2.2.9] - 04.27.2018 ### Changed * Start using `awesome-notifications@2.2.9`. [More details](https://github.com/f3oall/awesome-notifications/blob/master/changelog.md#229---04272018) ## [2.2.8] - 04.03.2018 ### Added * Add `.npmignore` to decrease package size ### Changed * Start using `awesome-notifications@2.2.8`. [More details](https://github.com/f3oall/awesome-notifications/blob/master/changelog.md#228---04032018) ## [2.2.7] - 04.03.2018 ### Changed * Start using `awesome-notifications@2.2.7`. [More details](https://github.com/f3oall/awesome-notifications/blob/master/changelog.md#227---04032018) * Update `readme.md` ## [2.2.6] - 04.03.2018 ### Changed * Start using Webpack 4. `webpack.config.js` has been changed. * Start using Yarn instead of NPM. * Start using `awesome-notifications@2.2.6`. [More details](https://github.com/f3oall/awesome-notifications/blob/master/changelog.md#226---04032018) * Final library size has changed **from 50kb to 16 KB**. ### Removed * Remove few old unneeded development dependencies.