Packages

clsx

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

Your version

1.2.0

2 Jul 2022Where it was published

1.2.1 is the newest release of 1.x.

In short

1 new4 internal

Release note

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: v1.1.1...v1.2.0

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.