Skip to content

Bump clsx from 1.2.1 to 2.1.1 #1238

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

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 19, 2024

Bumps clsx from 1.2.1 to 2.1.1.

Release notes

Sourced from clsx's releases.

v2.1.1

Patches

  • (types) Include bigint in ClassValue type: (#96): 3d960ab Accommodates recent @types/react changes to ReactNode. Thank you @​ViliamKopecky~!

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

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

Patches

  • (perf) Cache arguments.length & array.length for 6% performance gain (#26): deff09b

... (truncated)

Commits

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Dec 19, 2024
@dependabot dependabot bot requested a review from a team December 19, 2024 15:24
Copy link
Contributor

github-actions bot commented Dec 19, 2024

Bundle sizes [mpdx-react]

Compared against a5179c4

No significant changes found

@dependabot dependabot bot force-pushed the dependabot-npm_and_yarn-clsx-2.1.1 branch from fea8713 to 7353693 Compare January 6, 2025 16:35
@dr-bizz
Copy link
Contributor

dr-bizz commented Jan 6, 2025

We use non-string arguments so we can't use clsx/lite and need to continue to use the default clsx

Copy link
Contributor

@dr-bizz dr-bizz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is working as expected

@dr-bizz dr-bizz force-pushed the dependabot-npm_and_yarn-clsx-2.1.1 branch from cc9b175 to 57710ed Compare January 6, 2025 17:05
@dr-bizz dr-bizz enabled auto-merge January 6, 2025 17:06
@canac canac disabled auto-merge April 30, 2025 15:15
@canac
Copy link
Contributor

canac commented Apr 30, 2025

@dependabot rebase

Copy link
Contributor Author

dependabot bot commented on behalf of github Apr 30, 2025

Looks like this PR has been edited by someone other than Dependabot. That means Dependabot can't rebase it - sorry!

If you're happy for Dependabot to recreate it from scratch, overwriting any edits, you can request @dependabot recreate.

@canac
Copy link
Contributor

canac commented Apr 30, 2025

@dependabot recreate

Bumps [clsx](https://github.com/lukeed/clsx) from 1.2.1 to 2.1.1.
- [Release notes](https://github.com/lukeed/clsx/releases)
- [Commits](lukeed/clsx@v1.2.1...v2.1.1)

---
updated-dependencies:
- dependency-name: clsx
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dr-bizz <[email protected]>
@dependabot dependabot bot force-pushed the dependabot-npm_and_yarn-clsx-2.1.1 branch from 57710ed to 2d5d467 Compare April 30, 2025 15:17
@canac canac closed this May 2, 2025
Copy link
Contributor Author

dependabot bot commented on behalf of github May 2, 2025

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@canac canac deleted the dependabot-npm_and_yarn-clsx-2.1.1 branch May 2, 2025 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants