---
title: "clsx 2.1.1: release notes, upgrades and advisories"
description: "clsx 2.1.1: release notes, breaking changes by major version and no known security advisory."
url: https://inlinr.com/packages/clsx
lang: en
---

[Packages](https://inlinr.com/packages)

# clsx

2.1.1 · 23 Apr 2024 MIT 179.1M / week [Repository](https://github.com/lukeed/clsx) [Homepage](https://github.com/lukeed/clsx#readme) [npm](https://www.npmjs.com/package/clsx) [Atom feed](https://inlinr.com/packages/feed/clsx)

Your version 

## Where each line stands

[Plan an upgrade](https://inlinr.com/packages/clsx/upgrade)

LineNewestSecurity

- 2.x 2.1.1 No known advisory Latest line
- 1.x 1.2.1 No known advisory [To 2.1.1](https://inlinr.com/packages/clsx/upgrade/1.2.1-2.1.1)
- 0.x 0.0.1 No known advisory [To 2.1.1](https://inlinr.com/packages/clsx/upgrade/0.0.1-2.1.1)

## Latest releases

1. 2.x · latest line
2. ### [2.1.1](https://inlinr.com/packages/clsx/releases/2.1.1 "Open this release") [](https://github.com/lukeed/clsx/releases/tag/v2.1.1 "Read this release where it was published")  
23 Apr 2024

  - (types) Include `bigint` in `ClassValue` type: ([#96](https://github.com/lukeed/clsx/issues/96)): [3d960ab](https://github.com/lukeed/clsx/commit/3d960ab)  
  _Accommodates recent [@types/react](https://inlinr.com/packages/@types/react) changes to `ReactNode`._  
  _Thank you [@ViliamKopecky](https://github.com/ViliamKopecky)\~!_
3. ### [2.1.0](https://inlinr.com/packages/clsx/releases/2.1.0 "Open this release") [](https://github.com/lukeed/clsx/releases/tag/v2.1.0 "Read this release where it was published")  
29 Dec 2023

  - Add new `clsx/lite` submodule for `string`\-only usage: [1a49142](https://github.com/lukeed/clsx/commit/1a49142)  
  _This is a **140b** version of `clsx` that is ideal for Tailwind and/or React contexts, which typically follow this `clsx` usage pattern:_  
  ```
  clsx('foo bar', props.maybe && 'conditional classes', props.className);
  ```
  > **Important:** This `clsx/lite` module **ignores all non-string arguments** and is therefore not a 1:1 replacement for `clsx` itself!  
  ```
  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"
  ```
4. ### [2.0.1](https://inlinr.com/packages/clsx/releases/2.0.1 "Open this release") [](https://github.com/lukeed/clsx/releases/tag/v2.0.1 "Read this release where it was published")  
29 Dec 2023

  - (perf) Cache `arguments.length` & `array.length` for 6% performance gain ([#26](https://github.com/lukeed/clsx/issues/26)): [deff09b](https://github.com/lukeed/clsx/commit/deff09b)  
  _Adds 5 bytes (+2%) for \~3% avg performance gain_  
  _Thank you [@jalalazimi](https://github.com/jalalazimi)_

Dependency tracking

## 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.

[How dependency tracking works](https://inlinr.com/dependencies)

## Security

No known security advisory.

## Health of 2.1.1

[Details](https://inlinr.com/packages/clsx/security#signals)

- **Provenance**: None
- **Publisher**: lukeed
- **Maintainers**: 1
- **Scorecard**: 3 / 10
- **Size**: 9 kB

## Weekly downloads

Registry facts last checked 23 Nov 2026\. Releases and advisories last read 23 Nov 2026.

A whole project to check? Paste its package.json in the [dependency check](https://inlinr.com/tools/dependency-check): every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.
