Packages

clsx

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

Upgrading clsx From 1.0.2 to 1.2.1

6 releases in betweenevery note read

Other targets from 1.0.2Latest2.1.1
1
change to make
0
advisories fixed
3
new
7
fixes

Before you upgrade

Tick each one off as you go
  • Breaking1.1.0

Release by release

  1. 1.2.1

    6 Jul 20221 fix
    • Fixed

      Ensure CommonJS and UMD entrypoints have the named clsx export too

  2. 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:

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

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

  5. 1.0.4

    6 Apr 20192 fixes
    • Fixed

      Ignore function arguments: 4aff569

    • Fixed

      Separate Array and Object loops: 91f5e68

  6. 1.0.3

    18 Feb 20191 fix
    • Fixed

      Changed "module" entry file to .js extension (#7): 29b2fce

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