- Remove
workspaces
field from package (#350)
- Fix default export, thanks Remco Haszing (#301)
- Fix types for read-only arrays, thanks Ben Thompson (#307)
- Replace README examples with functional-style components, thanks JoeDGit (#303)
- Fix TypeScript types when using require, thanks Mark Dalgleish (#276)
- Fix toString as
[Object object]
in a vm, thanks Remco Haszing (#281)
- Fix bind/dedupe TypeScript types exports
- Fix mapping Value types, thanks Remco Haszing
- Removed non-existent named exports from types, thanks Remco Haszing
- Added TypeScript types
- Added consistent support for custom
.toString()
methods on arguments, thanks Stanislav Titenko
- Fixed compatibility issue with usage in an es module environment
- Improved performance of
dedupe
variant even further, thanks Andres Suarez
- Improved performance of
dedupe
variant by about 2x, thanks Bartosz Gościński
- Updated
bind
variant to use[].join(' ')
as per the main script in 2.2.2
- Switched from string concatenation to
[].join(' ')
for a slight performance gain in the main function.
- Add deps parameter to the AMD module, fixes an issue using the Dojo loader, thanks Chris Jordan
- 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 simplify 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.