Skip to content

Commit

Permalink
Update dependency clsx to v2 (#206)
Browse files Browse the repository at this point in the history
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [clsx](https://redirect.github.com/lukeed/clsx) | [`^1.2.1` ->
`^2.0.0`](https://renovatebot.com/diffs/npm/clsx/1.2.1/2.1.1) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/clsx/2.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/clsx/2.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/clsx/1.2.1/2.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/clsx/1.2.1/2.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>lukeed/clsx (clsx)</summary>

###
[`v2.1.1`](https://redirect.github.com/lukeed/clsx/releases/tag/v2.1.1)

[Compare
Source](https://redirect.github.com/lukeed/clsx/compare/v2.1.0...v2.1.1)

#### Patches

- (types) Include `bigint` in `ClassValue` type:
([#&#8203;96](https://redirect.github.com/lukeed/clsx/issues/96)):
[`3d960ab`](https://redirect.github.com/lukeed/clsx/commit/3d960ab)
    *Accommodates recent `@types/react` changes to `ReactNode`.*
*Thank you
[@&#8203;ViliamKopecky](https://redirect.github.com/ViliamKopecky)~!*

#### Chores

- Add [`licenses.dev`](https://licenses.dev) badge:
[`684509c`](https://redirect.github.com/lukeed/clsx/commit/684509c)
*This service recursively analyzes entire dependency graphs to ensure
that a package (or your project) is using permissive licenses. For
example, here's a results table for
[`polka@next`](https://licenses.dev/npm/polka/1.0.0-next.24) and a
larger [`astro`](https://licenses.dev/npm/astro) example.*

***

> **Full Changelog**:
lukeed/clsx@v2.1.0...v2.1.1

###
[`v2.1.0`](https://redirect.github.com/lukeed/clsx/releases/tag/v2.1.0)

[Compare
Source](https://redirect.github.com/lukeed/clsx/compare/v2.0.1...v2.1.0)

#### Features

- Add new `clsx/lite` submodule for `string`-only usage:
[`1a49142`](https://redirect.github.com/lukeed/clsx/commit/1a49142)

*This is a **140b** version of `clsx` that is ideal for Tailwind and/or
React contexts, which typically follow this `clsx` usage pattern:*

    ```js
clsx('foo bar', props.maybe && 'conditional classes', props.className);
    ```

> **Important:** This `clsx/lite` module **ignores all non-string
arguments** and is therefore not a 1:1 replacement for `clsx` itself!

    ```js
    import { clsx } from 'clsx';
    import { clsx as lite } from 'clsx/lite';

    // strings-only usage is identical
    clsx('foo', null, 'bar', true && 'baz'); //=> "foo bar baz"
    lite('foo', null, 'bar', true && 'baz'); //=> "foo bar baz"

    // clsx/lite ignores all non-strings
    clsx('foo', { a: true, b: false, c: true }); //=> "foo a c"
    lite('foo', { a: true, b: false, c: true }); //=> "foo"
    ```

***

> **Full Changelog**:
lukeed/clsx@v2.0.1...v2.1.0

###
[`v2.0.1`](https://redirect.github.com/lukeed/clsx/releases/tag/v2.0.1)

[Compare
Source](https://redirect.github.com/lukeed/clsx/compare/v2.0.0...v2.0.1)

#### Patches

- (perf) Cache `arguments.length` & `array.length` for 6% performance
gain ([#&#8203;26](https://redirect.github.com/lukeed/clsx/issues/26)):
[`deff09b`](https://redirect.github.com/lukeed/clsx/commit/deff09b)
    *Adds 5 bytes (+2%) for ~3% avg performance gain*
*Thank you [@&#8203;jalalazimi](https://redirect.github.com/jalalazimi)*

#### Chores

- Update module size:
[`bf64e71`](https://redirect.github.com/lukeed/clsx/commit/bf64e71)
- Update benchmark results:
[`855eec2`](https://redirect.github.com/lukeed/clsx/commit/855eec2),
[`6e3b2b9`](https://redirect.github.com/lukeed/clsx/commit/6e3b2b9),
- Replace `nyc` with `c8` in CI:
[`6e2468e`](https://redirect.github.com/lukeed/clsx/commit/6e2468e)
- Update Node CI matrix:
[`308a238`](https://redirect.github.com/lukeed/clsx/commit/308a238)
- Fix readme typos
([#&#8203;76](https://redirect.github.com/lukeed/clsx/issues/76),
[#&#8203;82](https://redirect.github.com/lukeed/clsx/issues/82)):
[`42354d3`](https://redirect.github.com/lukeed/clsx/commit/42354d3),
[`4c9a55d`](https://redirect.github.com/lukeed/clsx/commit/4c9a55d)
*Thank you
[@&#8203;andipaetzold](https://redirect.github.com/andipaetzold) and
[@&#8203;acusti](https://redirect.github.com/acusti)*

***

> **Full Changelog**:
lukeed/clsx@v2.0.0...v2.0.1

###
[`v2.0.0`](https://redirect.github.com/lukeed/clsx/releases/tag/v2.0.0)

[Compare
Source](https://redirect.github.com/lukeed/clsx/compare/v1.2.1...v2.0.0)

#### Breaking

- Add `"exports"` map for native ESM support
([#&#8203;57](https://redirect.github.com/lukeed/clsx/issues/57)):
[`3ec8e9f`](https://redirect.github.com/lukeed/clsx/commit/3ec8e9f),
[`0949868`](https://redirect.github.com/lukeed/clsx/commit/0949868)
    *Also supports TypeScript's `node16`/`nodenext` module resolution*
    *Maintains CommonJS support (with fixed TS definitions)*
*Thank you
[@&#8203;remcohaszing](https://redirect.github.com/remcohaszing)~!*

#### Chores

- Add [Tailwind
Support](https://redirect.github.com/lukeed/clsx#tailwind-support)
section to README
([#&#8203;65](https://redirect.github.com/lukeed/clsx/issues/65),
[#&#8203;68](https://redirect.github.com/lukeed/clsx/issues/68)):
[`496db1d`](https://redirect.github.com/lukeed/clsx/commit/496db1d),
[`4a4eadd`](https://redirect.github.com/lukeed/clsx/commit/4a4eadd)
*Thank you
[@&#8203;kevinlowe0x3F7](https://redirect.github.com/kevinlowe0x3F7) &
[@&#8203;kevinlowe0x3F7](https://redirect.github.com/kevinlowe0x3F7)*
- Add tests for numbers & variadic number arguments:
[`c520353`](https://redirect.github.com/lukeed/clsx/commit/c520353)
- Update package module size:
[`03e1cf9`](https://redirect.github.com/lukeed/clsx/commit/03e1cf9)

***

> **Full Changelog**:
lukeed/clsx@v1.2.1...v2.0.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 8am every weekday" in timezone
America/New_York, Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/pixee/docs).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMS41IiwidXBkYXRlZEluVmVyIjoiMzkuMTEuNSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
renovate[bot] authored Nov 13, 2024
1 parent 24e5577 commit ad101d8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@docusaurus/plugin-client-redirects": "^3.1.1",
"@docusaurus/preset-classic": "^3.1.1",
"@mdx-js/react": "^3.0.0",
"clsx": "^1.2.1",
"clsx": "^2.0.0",
"prism-react-renderer": "^2.3.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3077,11 +3077,6 @@ clone-response@^1.0.2:
dependencies:
mimic-response "^1.0.0"

clsx@^1.2.1:
version "1.2.1"
resolved "https://registry.npmjs.org/clsx/-/clsx-1.2.1.tgz"
integrity sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg==

clsx@^2.0.0:
version "2.1.1"
resolved "https://registry.yarnpkg.com/clsx/-/clsx-2.1.1.tgz#eed397c9fd8bd882bfb18deab7102049a2f32999"
Expand Down

0 comments on commit ad101d8

Please sign in to comment.