# clsx v1.1.0 - Product: clsx (https://whatsnew.fyi/product/clsx) - Vendor: Luke Edwards - Date: 2020-02-03 - Version: v1.1.0 - Original notes: https://github.com/lukeed/clsx/releases/tag/v1.1.0 - Permalink: https://whatsnew.fyi/product/clsx/releases/v1.1.0 What's New is an index, not a publisher: every entry below links to the vendor's own release notes, which are the authoritative source. Entries are labelled where they are hand-curated sample data, pre-releases, or drawn from a secondary source such as a developer blog. Reuse: the summaries, labels and curation here are © What's New. Quote freely with attribution and a link back; wholesale republication of the corpus is not permitted — terms: https://whatsnew.fyi/terms. The vendors' own release notes remain their publishers'. --- ##### Minor / Patch * Use `Array.isArray` for proper `Array` type-checking (#17): 0d6023a This prevents an object with a truthy `push` key from being treated as an Array. While (likely) rare, this produced an incorrect result. > **Important:** Because of this change, Internet Explorer 8 (and older) are no longer supported.
If you happen to require support for these browsers, please continue to use the `1.0.x` version range. ##### Chores * Updated benchmark results: 3cfb6c3 Because `Array.isArray` is highly optimized in all modern JS engines, we received a bit of a speed boost! Below is `clsx@1.0.4` versus this release, running in Node.js 10.13.0 ``` # Strings clsx (prev) x 10,336,101 ops/sec ±1.45% (90 runs sampled) clsx x 11,191,101 ops/sec ±0.51% (97 runs sampled) # Objects clsx (prev) x 7,195,049 ops/sec ±0.35% (92 runs sampled) clsx x 7,133,215 ops/sec ±0.31% (93 runs sampled) # Arrays clsx (prev) x 8,265,223 ops/sec ±0.32% (94 runs sampled) clsx x 8,346,704 ops/sec ±0.29% (98 runs sampled) # Nested Arrays clsx (prev) x 6,244,513 ops/sec ±1.41% (94 runs sampled) clsx x 6,324,445 ops/sec ±0.38% (95 runs sampled) # Nested Arrays w/ Objects clsx (prev) x 5,157,630 ops/sec ±0.34% (92 runs sampled) clsx x 6,349,877 ops/sec ±0.26% (97 runs sampled) # Mixed clsx (prev) x 5,751,180 ops/sec ±0.38% (95 runs sampled) clsx x 6,722,160 ops/sec ±0.36% (98 runs sampled) # Mixed (Bad Data) clsx (prev) x 1,935,973 ops/sec ±0.19% (97 runs sampled) clsx x 2,053,230 ops/sec ±0.27% (95 runs sampled) ```