Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency clsx to v2 #111

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

we-renovate[bot]
Copy link
Contributor

@we-renovate we-renovate bot commented Oct 31, 2024

This PR contains the following updates:

Package Type Update Change OpenSSF
clsx dependencies major ^1.2.1 -> ^2.1.1 OpenSSF Scorecard

Release Notes

lukeed/clsx (clsx)

v2.1.1

Compare Source

Patches

Chores

  • Add licenses.dev badge: 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 and a larger astro example.

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

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: lukeed/clsx@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: lukeed/clsx@v2.0.0...v2.0.1

v2.0.0

Compare Source

Breaking

  • Add "exports" map for native ESM support (#​57): 3ec8e9f, 0949868
    Also supports TypeScript's node16/nodenext module resolution
    Maintains CommonJS support (with fixed TS definitions)
    Thank you @​remcohaszing~!

Chores


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

@we-renovate we-renovate bot force-pushed the renovate/clsx-2.x branch 17 times, most recently from 6287474 to d58cfb3 Compare November 1, 2024 23:07
@we-renovate we-renovate bot force-pushed the renovate/clsx-2.x branch 2 times, most recently from 9a2fdf8 to f7f1489 Compare November 8, 2024 10:44
@we-renovate we-renovate bot force-pushed the renovate/clsx-2.x branch from f7f1489 to c459588 Compare November 18, 2024 20:48
@we-renovate we-renovate bot force-pushed the renovate/clsx-2.x branch 2 times, most recently from 3514dc9 to d65b2dc Compare December 9, 2024 13:48
@we-renovate we-renovate bot force-pushed the renovate/clsx-2.x branch from d65b2dc to de3de2d Compare December 17, 2024 18:36
@we-renovate we-renovate bot force-pushed the renovate/clsx-2.x branch 2 times, most recently from 2009351 to d723aae Compare January 10, 2025 12:45
@we-renovate we-renovate bot force-pushed the renovate/clsx-2.x branch from d723aae to 912dd03 Compare January 12, 2025 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants