1 | # Changelog
|
2 |
|
3 | ## v2.2.6 / 2018-06-08
|
4 |
|
5 | * Fixed compatibility issue with usage in an es module environment
|
6 |
|
7 | ## v2.2.5 / 2016-05-02
|
8 |
|
9 | * Improved performance of `dedupe` variant even further, thanks [Andres Suarez](https://github.com/zertosh)
|
10 |
|
11 | ## v2.2.4 / 2016-04-25
|
12 |
|
13 | * Improved performance of `dedupe` variant by about 2x, thanks [Bartosz Gościński](https://github.com/bgoscinski)
|
14 |
|
15 | ## v2.2.3 / 2016-01-05
|
16 |
|
17 | * Updated `bind` variant to use `[].join(' ')` as per the main script in 2.2.2
|
18 |
|
19 | ## v2.2.2 / 2016-01-04
|
20 |
|
21 | * Switched from string concatenation to `[].join(' ')` for a slight performance gain in the main function.
|
22 |
|
23 | ## v2.2.1 / 2015-11-26
|
24 |
|
25 | * Add deps parameter to the AMD module, fixes an issue using the Dojo loader, thanks [Chris Jordan](https://github.com/flipperkid)
|
26 |
|
27 | ## v2.2.0 / 2015-10-18
|
28 |
|
29 | * 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)
|
30 |
|
31 | ## v2.1.5 / 2015-09-30
|
32 |
|
33 | * reverted a new usage of `Object.keys` in `dedupe.js` that slipped through in the last release
|
34 |
|
35 | ## v2.1.4 / 2015-09-30
|
36 |
|
37 | * new case added to benchmarks
|
38 | * safer `hasOwnProperty` check
|
39 | * AMD module is now named, so you can do the following:
|
40 |
|
41 | ```
|
42 | define(["classnames"], function (classNames) {
|
43 | var style = classNames("foo", "bar");
|
44 | // ...
|
45 | });
|
46 | ```
|
47 |
|
48 | ## v2.1.3 / 2015-07-02
|
49 |
|
50 | * updated UMD wrapper to support AMD and CommonJS on the same pacge
|
51 |
|
52 | ## v2.1.2 / 2015-05-28
|
53 |
|
54 | * added a proper UMD wrapper
|
55 |
|
56 | ## v2.1.1 / 2015-05-06
|
57 |
|
58 | * minor performance improvement thanks to type caching
|
59 | * improved benchmarking and results output
|
60 |
|
61 | ## v2.1.0 / 2015-05-05
|
62 |
|
63 | * 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.
|
64 |
|
65 | ## v2.0.0 / 2015-05-03
|
66 |
|
67 | * 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.
|
68 |
|
69 | ## v1.2.2 / 2015-04-28
|
70 |
|
71 | * license comment updates to simiplify certain build scenarios
|
72 |
|
73 | ## v1.2.1 / 2015-04-22
|
74 |
|
75 | * added safe exporting for requireJS usage
|
76 | * clarified Bower usage and instructions
|
77 |
|
78 | ## v1.2.0 / 2015-03-17
|
79 |
|
80 | * added comprehensive support for array arguments, including nested arrays
|
81 | * simplified code slightly
|
82 |
|
83 | ## Previous
|
84 |
|
85 | Please see the git history for the details of previous versions.
|