Countable v3.0.1 Release Notes
Release Date: 2018-06-11 // over 5 years ago-
- โ Added support for string parameter to
Countable#count
. You can now pass a single string instead of an element or a list of elements as the first parameter, e.g.Countable.count('hello world', callback)
. - ๐ Improve documentation.
- โ Added support for string parameter to
Previous changes from v3.0.0
-
Countable::on
andCountable::off
replaceCountable::live
andCountable::die
. The new methods work exactly the same, apart from the name change.๐
Countable::once
has been removed. The method is now available exclusively asCountable::count
.Countable::enabled
now accepts either single elements or lists of elements. When a list is passed, the validation checks if all elements have the Countable functionality.๐ Options have been simplified. Support for
ignoreReturns
andignoreZeroWidthSpace
has been removed in favour of a more generalignore
option, which is an array of characters that should be ignored.โ Added a minified version.
โ Removed legacy support. Countable now uses things like
let
andconst
and expects ES5 methods to be present. This mainly drops support for IE before version 11.โฌ๏ธ Reduced file size by almost 25%.