lukeed/clsxPublic

A tiny (239B) utility for constructing `className` strings conditionally.

v1.2.0

LUlukeed published 89407deImmutable

Release notes

## Features

- Add named `clsx` export alias (#43, #44): 56ab81f _Thank you @danikaze~!_<br> 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:

```js import clsx from 'clsx'; // or import { clsx } from 'clsx'; ``` > **Important:** Just to reiterate, both still work!

## Chores

- Migrate from `tape` to [`uvu`](https://github.com/lukeed/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](https://github.com/sponsors/lukeed) button: 400b848

---

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

Attached at publication

## Features

- Add named `clsx` export alias (#43, #44): 56ab81f _Thank you @danikaze~!_<br> 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:

```js import clsx from 'clsx'; // or import { clsx } from 'clsx'; ``` > **Important:** Just to reiterate, both still work!

## Chores

- Migrate from `tape` to [`uvu`](https://github.com/lukeed/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](https://github.com/sponsors/lukeed) button: 400b848

---

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

Assets 0
None were attached at publication.
No assets.

Shipped in this Release 0

None

Deployments 0

  • None

History 0

No Decisions yet.