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

[Snyk] Upgrade clsx from 2.0.0 to 2.1.1 #147

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

Conversation

wierza
Copy link
Owner

@wierza wierza commented Sep 30, 2024

snyk-top-banner

Snyk has created this PR to upgrade clsx from 2.0.0 to 2.1.1.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 3 versions ahead of your current version.

  • The recommended version was released on 5 months ago.

Issues fixed by the recommended upgrade:

Issue Score Exploit Maturity
high severity Server-side Request Forgery (SSRF)
SNYK-JS-IP-6240864
524 Proof of Concept
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-PATHTOREGEXP-7925106
524 Proof of Concept
critical severity Improper Verification of Cryptographic Signature
SNYK-JS-ELLIPTIC-7577916
524 Proof of Concept
critical severity Improper Verification of Cryptographic Signature
SNYK-JS-ELLIPTIC-7577917
524 Proof of Concept
critical severity Improper Verification of Cryptographic Signature
SNYK-JS-ELLIPTIC-7577918
524 Proof of Concept
high severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-ES5EXT-6095076
524 Proof of Concept
high severity Improper Input Validation
SNYK-JS-FOLLOWREDIRECTS-6141137
524 Proof of Concept
high severity Denial of Service (DoS)
SNYK-JS-WS-7266574
524 Proof of Concept
high severity Denial of Service (DoS)
SNYK-JS-WS-7266574
524 Proof of Concept
high severity Asymmetric Resource Consumption (Amplification)
SNYK-JS-BODYPARSER-7926860
524 No Known Exploit
high severity Improper Verification of Cryptographic Signature
SNYK-JS-BROWSERIFYSIGN-6037026
524 No Known Exploit
medium severity Open Redirect
SNYK-JS-EXPRESS-6474509
524 No Known Exploit
medium severity Cross-site Scripting
SNYK-JS-EXPRESS-7926867
524 No Known Exploit
medium severity Information Exposure
SNYK-JS-FOLLOWREDIRECTS-6444610
524 Proof of Concept
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-PATHTOREGEXP-7925106
524 Proof of Concept
low severity Cross-site Scripting
SNYK-JS-SEND-7926862
524 No Known Exploit
low severity Cross-site Scripting
SNYK-JS-SERVESTATIC-7926865
524 No Known Exploit
critical severity Incomplete List of Disallowed Inputs
SNYK-JS-BABELTRAVERSE-5962462
524 Proof of Concept
Release notes
Package name: clsx
  • 2.1.1 - 2024-04-23

    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: v2.1.0...v2.1.1

  • 2.1.0 - 2023-12-29

    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: v2.0.1...v2.1.0

  • 2.0.1 - 2023-12-29

    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: v2.0.0...v2.0.1

  • 2.0.0 - 2023-07-15

    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: v1.2.1...v2.0.0

from clsx GitHub release notes

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

Snyk has created this PR to upgrade clsx from 2.0.0 to 2.1.1.

See this package in npm:
clsx

See this project in Snyk:
https://app.snyk.io/org/davidwierzycki/project/6c01c349-f5dc-4e4c-8cda-113559ee9639?utm_source=github&utm_medium=referral&page=upgrade-pr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants