Skip to content

chore(deps): update clsx to 1.2.1 - #1685

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/clsx-1.x
Open

renovate[bot] wants to merge 1 commit into
masterfrom
renovate/clsx-1.x

Conversation

@renovate

@renovate renovate Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
clsx ^1.0.4 → ^1.2.1 age confidence
clsx ^1.1.1 → ^1.2.1 age confidence
clsx ^1.1.0 → ^1.2.1 age confidence

Release Notes

lukeed/clsx (clsx)

v1.2.1

Compare Source

Patches

  • Ensure CommonJS and UMD entrypoints have the named clsx export too

Chores


Full Changelog: lukeed/clsx@v1.2.0...v1.2.1

v1.2.0

Compare Source

Features

  • Add named clsx export alias (#​43, #​44): 56ab81f
    Thank you @​danikaze~!

    This is purely an alias for the default export so that TypeScript users can avoid the esModuleInterop setting. In other words, the follow import statements are effectively identical, but the latter is preferred by TypeScript:

    import clsx from 'clsx';
    // or
    import { clsx } from 'clsx';

    Important: Just to reiterate, both still work!

Chores


Full Changelog: lukeed/clsx@v1.1.1...v1.2.0

v1.1.1

Compare Source

Note: This is a performance-related patch only!
Across all benchmarks, this version of clsx is ~1M ops/sec faster than clsx@1.1.0.
...It also happens to be 1 byte (gzip) smaller 😅🎉

Patches

  • fix: Remove needless spacer on string/number condition: ff11464
  • fix: Remove unnecessary recursive caller for object keys: f43dd23
  • perf: Guard all toVal calls with truthy assertions: 4fa8811, 019ec02
  • perf: Reorder typeof checks for common case: 08a5a7f

Chores

Benchmarks

Run on Node.js v10.13.0.
You may find updated browser benchmarks here.

The snippet below is comparing clsx@1.1.1 (this version) to the previous version, and to classnames for ballpark comparison. All candidates are functionally identical!


# Strings
  classnames    x  3,992,284 ops/sec ±1.64% (94 runs sampled)
  clsx@1.1.0    x 11,253,372 ops/sec ±0.35% (96 runs sampled)
  clsx@1.1.1    x 12,784,134 ops/sec ±0.42% (97 runs sampled)

# Objects
  classnames    x 3,772,978 ops/sec ±0.46% (96 runs sampled)
  clsx@1.1.0    x 7,288,178 ops/sec ±0.31% (96 runs sampled)
  clsx@1.1.1    x 9,412,010 ops/sec ±0.42% (95 runs sampled)

# Arrays
  classnames    x 1,665,275 ops/sec ±1.83% (93 runs sampled)
  clsx@1.1.0    x 8,340,174 ops/sec ±0.53% (96 runs sampled)
  clsx@1.1.1    x 9,141,916 ops/sec ±0.42% (95 runs sampled)

# Nested Arrays
  classnames    x 1,164,706 ops/sec ±1.60% (95 runs sampled)
  clsx@1.1.0    x 6,284,485 ops/sec ±0.58% (90 runs sampled)
  clsx@1.1.1    x 7,165,151 ops/sec ±0.47% (91 runs sampled)

# Nested Arrays w/ Objects
  classnames    x 1,597,180 ops/sec ±1.49% (93 runs sampled)
  clsx@1.1.0    x 6,345,248 ops/sec ±0.21% (95 runs sampled)
  clsx@1.1.1    x 7,651,411 ops/sec ±0.56% (95 runs sampled)

# Mixed
  classnames    x 2,129,199 ops/sec ±1.46% (94 runs sampled)
  clsx@1.1.0    x 6,557,515 ops/sec ±0.73% (91 runs sampled)
  clsx@1.1.1    x 8,119,210 ops/sec ±0.42% (93 runs sampled)

# Mixed (Bad Data)
  classnames    x 1,166,577 ops/sec ±0.84% (94 runs sampled)
  clsx@1.1.0    x 2,018,654 ops/sec ±0.15% (98 runs sampled)
  clsx@1.1.1    x 2,238,939 ops/sec ±0.34% (95 runs sampled)

v1.1.0

Compare Source

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)
    

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • Only on Sunday and Saturday (* * * * 0,6)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

- Updates clsx from 1.0.4 to 1.2.1
- Release notes:
@vercel

vercel Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
react-forms Ready Ready Preview Nov 7, 2026 6:13am UTC

This branch was successfully deployed

1 active deployment
Preview — 9e5e05fe Deployed Nov 7, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants