clsx
2.1.1 · 23 Apr 2024MIT164.3M / weekRepositoryHomepagenpmAtom feed
Where each line stands
Plan an upgradeLatest releases
- 2.x · latest line
2.1.1
23 Apr 2024(types) Include
bigintinClassValuetype: (#96): 3d960ab
Accommodates recent@types/reactchanges toReactNode.
Thank you @ViliamKopecky~!
Patches
(types) Include
bigintinClassValuetype: (#96): 3d960ab
Accommodates recent@types/reactchanges toReactNode.
Thank you @ViliamKopecky~!
Chores
Full Changelog: v2.1.0...v2.1.1
2.1.0
29 Dec 2023Add new
clsx/litesubmodule forstring-only usage: 1a49142This is a 140b version of
clsxthat is ideal for Tailwind and/or React contexts, which typically follow thisclsxusage pattern:clsx('foo bar', props.maybe && 'conditional classes', props.className);Important: This
clsx/litemodule ignores all non-string arguments and is therefore not a 1:1 replacement forclsxitself!import { clsx } from 'clsx'; import { clsx as lite } from 'clsx/lite'; // strings-only usage is identical clsx('foo', null, 'bar', true && 'baz'); //=> "foo bar baz" lite('foo', null, 'bar', true && 'baz'); //=> "foo bar baz" // clsx/lite ignores all non-strings clsx('foo', { a: true, b: false, c: true }); //=> "foo a c" lite('foo', { a: true, b: false, c: true }); //=> "foo"
2.0.1
29 Dec 2023(perf) Cache
arguments.length&array.lengthfor 6% performance gain (#26): deff09b
Adds 5 bytes (+2%) for ~3% avg performance gain
Thank you @jalalazimi
Patches
(perf) Cache
arguments.length&array.lengthfor 6% performance gain (#26): deff09b
Adds 5 bytes (+2%) for ~3% avg performance gain
Thank you @jalalazimi
Chores
Full Changelog: v2.0.0...v2.0.1
Dependency tracking · free for 3 projects
Know when your own dependencies move
This page watches clsx. inlinr reads your package.json and keeps the same watch on every dependency you declare, then tells you only what needs you.
Advisories reach you
An email when a critical or high advisory affects a project, before the next install.
Upgrades checked first
Peer ranges, Node, ESM-only and types changes read before you bump.
Only what matters
Majors and breaking notes stay; patches and sibling bumps fold into one line.
Registry facts last checked 9 Nov 2026. Releases and advisories last read 10 Nov 2026.