You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

HISTORY.md 2.4 KiB

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