clsx v1.2.0

v1.2.0
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
  • Migrate from tape to uvu for tests: 1c36d10
  • Add Node 14 and Node 16 to CI test matrix: bc4f827
  • Update "string variadic" tests (#30): 74cefa6 Thank you @gingerrific~!
  • Enable GitHub Sponsors button: 400b848

Full Changelog: https://github.com/lukeed/clsx/compare/v1.1.1...v1.2.0

View original

Upgraded? How did it go?

Discussion