fix(deps): update dependency clsx to v2.1.0 #12

Open
Fascinated wants to merge 1 commits from renovate/clsx-2.x-lockfile into master
Owner

This PR contains the following updates:

Package Type Update Change
clsx dependencies minor 2.0.0 -> 2.1.0

Release Notes

lukeed/clsx (clsx)

v2.1.0

Compare Source

Features

  • Add new clsx/lite submodule for string-only usage: 1a49142

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

    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!

    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: https://github.com/lukeed/clsx/compare/v2.0.1...v2.1.0

v2.0.1

Compare Source

Patches

  • (perf) Cache arguments.length & array.length for 6% performance gain (#​26): deff09b
    Adds 5 bytes (+2%) for ~3% avg performance gain
    Thank you @​jalalazimi

Chores


Full Changelog: https://github.com/lukeed/clsx/compare/v2.0.0...v2.0.1


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), 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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [clsx](https://github.com/lukeed/clsx) | dependencies | minor | [`2.0.0` -> `2.1.0`](https://renovatebot.com/diffs/npm/clsx/2.0.0/2.1.0) | --- ### Release Notes <details> <summary>lukeed/clsx (clsx)</summary> ### [`v2.1.0`](https://github.com/lukeed/clsx/releases/tag/v2.1.0) [Compare Source](https://github.com/lukeed/clsx/compare/v2.0.1...v2.1.0) #### Features - Add new `clsx/lite` submodule for `string`-only usage: [`1a49142`](https://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**: https://github.com/lukeed/clsx/compare/v2.0.1...v2.1.0 ### [`v2.0.1`](https://github.com/lukeed/clsx/releases/tag/v2.0.1) [Compare Source](https://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://github.com/lukeed/clsx/issues/26)): [`deff09b`](https://github.com/lukeed/clsx/commit/deff09b) *Adds 5 bytes (+2%) for ~3% avg performance gain* *Thank you [@&#8203;jalalazimi](https://github.com/jalalazimi)* #### Chores - Update module size: [`bf64e71`](https://github.com/lukeed/clsx/commit/bf64e71) - Update benchmark results: [`855eec2`](https://github.com/lukeed/clsx/commit/855eec2), [`6e3b2b9`](https://github.com/lukeed/clsx/commit/6e3b2b9), - Replace `nyc` with `c8` in CI: [`6e2468e`](https://github.com/lukeed/clsx/commit/6e2468e) - Update Node CI matrix: [`308a238`](https://github.com/lukeed/clsx/commit/308a238) - Fix readme typos ([#&#8203;76](https://github.com/lukeed/clsx/issues/76), [#&#8203;82](https://github.com/lukeed/clsx/issues/82)): [`42354d3`](https://github.com/lukeed/clsx/commit/42354d3), [`4c9a55d`](https://github.com/lukeed/clsx/commit/4c9a55d) *Thank you [@&#8203;andipaetzold](https://github.com/andipaetzold) and [@&#8203;acusti](https://github.com/acusti)* *** > **Full Changelog**: https://github.com/lukeed/clsx/compare/v2.0.0...v2.0.1 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), 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 has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNzkuNCIsInVwZGF0ZWRJblZlciI6IjM3LjI3OS40IiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=-->
Fascinated added 1 commit 2024-04-17 00:50:10 +00:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin renovate/clsx-2.x-lockfile:renovate/clsx-2.x-lockfile
git checkout renovate/clsx-2.x-lockfile
Sign in to join this conversation.
No Reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Fascinated/personal-website#12
No description provided.