# clsx v1.0.4 - Product: clsx (https://whatsnew.fyi/product/clsx) - Vendor: Luke Edwards - Date: 2019-04-06 - Version: v1.0.4 - Original notes: https://github.com/lukeed/clsx/releases/tag/v1.0.4 - Permalink: https://whatsnew.fyi/product/clsx/releases/v1.0.4 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'. --- ##### Patches - Ignore function arguments: 4aff569 - Separate Array and Object loops: 91f5e68 While this did add ~20 bytes to the package (which is a 10% size increase), it made _any_ Array interactions 200% to 600% faster! 🎉 Below is a performance comparison between `clsx@1.0.3` and `clsx@1.0.4` running on Node v10.13.0: ``` # Strings clsx (prev) x 10,661,038 ops/sec ±0.46% (92 runs sampled) clsx x 11,066,632 ops/sec ±0.23% (96 runs sampled) # Objects clsx (prev) x 6,934,269 ops/sec ±0.23% (94 runs sampled) clsx x 7,147,168 ops/sec ±0.30% (95 runs sampled) # Arrays clsx (prev) x 1,681,568 ops/sec ±0.32% (97 runs sampled) clsx x 7,922,225 ops/sec ±0.18% (95 runs sampled) # Nested Arrays clsx (prev) x 940,741 ops/sec ±0.33% (96 runs sampled) clsx x 6,132,222 ops/sec ±0.49% (95 runs sampled) # Nested Arrays w/ Objects clsx (prev) x 1,428,975 ops/sec ±0.15% (95 runs sampled) clsx x 5,156,844 ops/sec ±0.22% (95 runs sampled) # Mixed clsx (prev) x 2,198,907 ops/sec ±0.34% (98 runs sampled) clsx x 5,577,715 ops/sec ±0.20% (93 runs sampled) # Mixed (Bad Data) clsx (prev) x 1,038,752 ops/sec ±0.32% (94 runs sampled) clsx x 1,887,010 ops/sec ±0.14% (96 runs sampled) ``` ##### Chores - Include Node.js benchmarks: b7c3973 - Update benchmark results: 8d5a2f7, e85c5be - Fix README typos: ead41a3, 4a4413d - Update size: a0fd98a