- added a new
bind
variant for use with css-modules and similar abstractions, thanks to Kirill Yakovenko
- reverted a new usage of
Object.keys
indedupe.js
that slipped through in the last release
- new case added to benchmarks
- safer
hasOwnProperty
check - AMD module is now named, so you can do the following:
define(["classnames"], function (classNames) {
var style = classNames("foo", "bar");
// ...
});
- updated UMD wrapper to support AMD and CommonJS on the same pacge
- added a proper UMD wrapper
- minor performance improvement thanks to type caching
- improved benchmarking and results output
- added alternate
dedupe
version of classNames, which is slower (10x) but ensures that if a class is added then overridden by a falsy value in a subsequent argument, it is excluded from the result.
- performance improvement; switched to
Array.isArray
for type detection, which is much faster in modern browsers. A polyfill is now required for IE8 support, see the Readme for details.
- license comment updates to simiplify certain build scenarios
- added safe exporting for requireJS usage
- clarified Bower usage and instructions
- added comprehensive support for array arguments, including nested arrays
- simplified code slightly
Please see the git history for the details of previous versions.