UNPKG

1.86 kBMarkdownView Raw
1# Changelog
2
3## v2.2.1 / 2015-11-26
4
5* Add deps parameter to the AMD module, fixes an issue using the Dojo loader, thanks [Chris Jordan](https://github.com/flipperkid)
6
7## v2.2.0 / 2015-10-18
8
9* added a new `bind` variant for use with [css-modules](https://github.com/css-modules/css-modules) and similar abstractions, thanks to [Kirill Yakovenko](https://github.com/blia)
10
11## v2.1.5 / 2015-09-30
12
13* reverted a new usage of `Object.keys` in `dedupe.js` that slipped through in the last release
14
15## v2.1.4 / 2015-09-30
16
17* new case added to benchmarks
18* safer `hasOwnProperty` check
19* AMD module is now named, so you can do the following:
20
21```
22define(["classnames"], function (classNames) {
23 var style = classNames("foo", "bar");
24 // ...
25});
26```
27
28## v2.1.3 / 2015-07-02
29
30* updated UMD wrapper to support AMD and CommonJS on the same pacge
31
32## v2.1.2 / 2015-05-28
33
34* added a proper UMD wrapper
35
36## v2.1.1 / 2015-05-06
37
38* minor performance improvement thanks to type caching
39* improved benchmarking and results output
40
41## v2.1.0 / 2015-05-05
42
43* 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.
44
45## v2.0.0 / 2015-05-03
46
47* 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.
48
49## v1.2.2 / 2015-04-28
50
51* license comment updates to simiplify certain build scenarios
52
53## v1.2.1 / 2015-04-22
54
55* added safe exporting for requireJS usage
56* clarified Bower usage and instructions
57
58## v1.2.0 / 2015-03-17
59
60* added comprehensive support for array arguments, including nested arrays
61* simplified code slightly
62
63## Previous
64
65Please see the git history for the details of previous versions.