Packages

clsx

2.1.1 · 23 Apr 2024MIT179.1M / weekRepositoryHomepagenpmAtom feed

Upgrading clsx From 1.1.1 to 2.1.1

6 releases in betweenevery note read

Other targets from 1.1.1Newest 1.x1.2.1
1
change to make
0
advisories fixed
2
new
3
fixes

Before you upgrade

Tick each one off as you go
  • Breaking2.0.0

Release by release

  1. 2.1.1

    23 Apr 20241 fix
    • Fixed

      (types) Include bigint in ClassValue type: (#96): 3d960ab Accommodates recent @types/react changes to ReactNode. Thank you @ViliamKopecky~!

  2. 2.1.0

    29 Dec 20231 new
    • New

      Add new clsx/lite submodule for string-only usage: 1a49142

  3. 2.0.1

    29 Dec 20231 fix
    • Fixed

      (perf) Cache arguments.length & array.length for 6% performance gain (#26): deff09b Adds 5 bytes (+2%) for ~3% avg performance gain Thank you @jalalazimi

  4. 2.0.0

    Migration needed15 Jul 2023
    • Breaking

      Add "exports" map for native ESM support (#57): 3ec8e9f, 0949868 Also supports TypeScript's node16/nodenext module resolution Maintains CommonJS support (with fixed TS definitions) Thank you @remcohaszing~!

  5. 1.2.1

    6 Jul 20221 fix
    • Fixed

      Ensure CommonJS and UMD entrypoints have the named clsx export too

  6. 1.2.0

    2 Jul 20221 new
    • New

      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:

14 internal lines (docs, tests, tooling) left out.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.