All Versions
10
Latest Version
Avg Release Cycle
155 days
Latest Release
1485 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.