Packages

clsx

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

Upgrading clsx From 1.0.3 to 2.1.1

9 releases in betweenevery note read

Other targets from 1.0.3Newest 1.x1.2.1
  1. 1.0.3yours
  2. 1 release
  3. 1.1.0breaking
  4. 3 releases
  5. 2.0.0major
  6. 2 releases
  7. 2.1.1target

Before you upgrade

Tick each one off as you go
  • Breaking2.0.0
  • Breaking1.1.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:

  7. 1.1.1

    30 May 20202 new · 2 fixes
    • New

      Guard all toVal calls with truthy assertions: 4fa8811, 019ec02

    • New

      Reorder typeof checks for common case: 08a5a7f

    • Fixed

      Remove needless spacer on string/number condition: ff11464

    • Fixed

      Remove unnecessary recursive caller for object keys: f43dd23

  8. 1.1.0

    Migration needed3 Feb 20201 fix
    • Breaking

      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.

    • Fixed

      Use Array.isArray for proper Array type-checking (#17): 0d6023a

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