All Versions
10
Latest Version
Avg Release Cycle
155 days
Latest Release
1235 days ago

Changelog History

  • v3.0.1 Changes

    June 11, 2018
    • โž• 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.
  • v3.0.0 Changes

    July 13, 2017

    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%.

  • v2.1.1 Changes

    May 01, 2015
    • ๐Ÿ›  Fixes a bug where IE9 would not react to DELETE, BACKSPACE and CUT commands.
    • ๐Ÿ›  Fixes a bug where Countable could not be concatenated with other files.
  • v2.1.0 Changes

    November 06, 2014
    • Sentence counting has been added. The number of sentences (sentences) can be accessed as part of the counter object.
    • Countable.once is now aliased as Countable.count
    • 0๏ธโƒฃ Zero-width characters are now ignored by default. This can be changed using the ignoreZeroWidth option.
  • v2.0.2 Changes

    August 14, 2014
    • โช Returns are counted as part of the all property. A new option ignoreReturns was added to restore the old behaviour.
  • v2.0.1 Changes

    August 14, 2014
    • Missing parameter in Countable.once. (Thanks to MrOPR)
  • v2.0.0 Changes

    August 14, 2014
    • โฌ†๏ธ Countable has a new Syntax. You can now use Countable.live, Countable.once, Countable.die and Countable.enabled. Notes on upgrading is provided in the README.
    • Countable can now work on multiple elements with one function call.
    • Prevent a XSS bug. (Thanks to Rob--W)
  • v1.4.2 Changes

    August 14, 2014
    • ๐Ÿ›  Fix a bug where options wouldn't be applied correctly.
  • v1.4.1 Changes

    August 14, 2014
    • โž• Added option to execute the callback only once.
  • v1.4.0 Changes

    August 14, 2014
    • ๐Ÿ‘ Allow for an options object as the third parameter.