Download Latest Version Version 3.0.1 source code.tar.gz (30.1 kB)
Email in envelope

Get an email when there's a new version of Countable

Home / v3.0.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2017-07-13 872 Bytes
Version 3.0.0 source code.tar.gz 2017-07-13 30.0 kB
Version 3.0.0 source code.zip 2017-07-13 32.9 kB
Totals: 3 Items   63.7 kB 0
  • Countable::on and Countable::off replace Countable::live and Countable::die. The new methods work exactly the same, apart from the name change.
  • Countable::once has been removed. The method is now available exclusively as Countable::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 and ignoreZeroWidthSpace has been removed in favour of a more general ignore option, which is an array of characters that should be ignored.
  • Added a minified version.

  • Removed legacy support. Countable now uses things like let and const and expects ES5 methods to be present. This mainly drops support for IE before version 11.

  • Reduced file size by almost 25%.
Source: README.md, updated 2017-07-13