Skip to content

Latest commit

 

History

History
160 lines (102 loc) · 4.35 KB

changelog.md

File metadata and controls

160 lines (102 loc) · 4.35 KB

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.3] - 03.30.2022

Fixed

  • DEPRECATION WARNING: $saturation: Passing a number without unit % (0) is deprecated. Issue #52

[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 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

  • Rename styles.css to style.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 testing defaults.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.