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

feat: [Snyk] Upgrade clsx from 1.1.1 to 1.2.1 #535

Merged
merged 1 commit into from
Dec 15, 2023

Conversation

stijnmoreels
Copy link
Member

This PR was automatically created by Snyk using the credentials of a real user.


Snyk has created this PR to upgrade clsx from 1.1.1 to 1.2.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 2 versions ahead of your current version.
  • The recommended version was released a year ago, on 2022-07-06.
Release notes
Package name: clsx
  • 1.2.1 - 2022-07-06

    Patches

    • Ensure CommonJS and UMD entrypoints have the named clsx export too

    Chores


    Full Changelog: v1.2.0...v1.2.1

  • 1.2.0 - 2022-07-02

    Features

    • Add named clsx export alias (#43, #44): 56ab81f
      Thank you @ danikaze~!

      This is purely an alias for the default export so that TypeScript users can avoid the esModuleInterop setting. In other words, the follow import statements are effectively identical, but the latter is preferred by TypeScript:

      import clsx from 'clsx';
      // or
      import { clsx } from 'clsx';

      Important: Just to reiterate, both still work!

    Chores


    Full Changelog: v1.1.1...v1.2.0

  • 1.1.1 - 2020-05-30

    Note: This is a performance-related patch only!
    Across all benchmarks, this version of clsx is ~1M ops/sec faster than clsx@1.1.0.
    ...It also happens to be 1 byte (gzip) smaller 😅🎉

    Patches

    • fix: Remove needless spacer on string/number condition: ff11464
    • fix: Remove unnecessary recursive caller for object keys: f43dd23
    • perf: Guard all toVal calls with truthy assertions: 4fa8811, 019ec02
    • perf: Reorder typeof checks for common case: 08a5a7f

    Chores

    Benchmarks

    Run on Node.js v10.13.0.
    You may find updated browser benchmarks here.

    The snippet below is comparing clsx@1.1.1 (this version) to the previous version, and to classnames for ballpark comparison. All candidates are functionally identical!

    # Strings
    classnames x 3,992,284 ops/sec ±1.64% (94 runs sampled)
    clsx@1.1.0 x 11,253,372 ops/sec ±0.35% (96 runs sampled)
    clsx@1.1.1 x 12,784,134 ops/sec ±0.42% (97 runs sampled)

    Objects

    classnames x 3,772,978 ops/sec ±0.46% (96 runs sampled)
    clsx@1.1.0 x 7,288,178 ops/sec ±0.31% (96 runs sampled)
    clsx@1.1.1 x 9,412,010 ops/sec ±0.42% (95 runs sampled)

    Arrays

    classnames x 1,665,275 ops/sec ±1.83% (93 runs sampled)
    clsx@1.1.0 x 8,340,174 ops/sec ±0.53% (96 runs sampled)
    clsx@1.1.1 x 9,141,916 ops/sec ±0.42% (95 runs sampled)

    Nested Arrays

    classnames x 1,164,706 ops/sec ±1.60% (95 runs sampled)
    clsx@1.1.0 x 6,284,485 ops/sec ±0.58% (90 runs sampled)
    clsx@1.1.1 x 7,165,151 ops/sec ±0.47% (91 runs sampled)

    Nested Arrays w/ Objects

    classnames x 1,597,180 ops/sec ±1.49% (93 runs sampled)
    clsx@1.1.0 x 6,345,248 ops/sec ±0.21% (95 runs sampled)
    clsx@1.1.1 x 7,651,411 ops/sec ±0.56% (95 runs sampled)

    Mixed

    classnames x 2,129,199 ops/sec ±1.46% (94 runs sampled)
    clsx@1.1.0 x 6,557,515 ops/sec ±0.73% (91 runs sampled)
    clsx@1.1.1 x 8,119,210 ops/sec ±0.42% (93 runs sampled)

    Mixed (Bad Data)

    classnames x 1,166,577 ops/sec ±0.84% (94 runs sampled)
    clsx@1.1.0 x 2,018,654 ops/sec ±0.15% (98 runs sampled)
    clsx@1.1.1 x 2,238,939 ops/sec ±0.34% (95 runs sampled)




from clsx GitHub release notes

Commit messages
Package name: clsx

Compare


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:

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs

@netlify
Copy link

netlify bot commented Jul 6, 2023

Deploy Preview for arcus-observability ready!

Name Link
🔨 Latest commit e1e5fbd
🔍 Latest deploy log https://app.netlify.com/sites/arcus-observability/deploys/64a74c0bbee1470008644192
😎 Deploy Preview https://deploy-preview-535--arcus-observability.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@stijnmoreels stijnmoreels changed the title [Snyk] Upgrade clsx from 1.1.1 to 1.2.1 feat: [Snyk] Upgrade clsx from 1.1.1 to 1.2.1 Dec 15, 2023
Copy link

codecov bot commented Dec 15, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (007c683) 86.37% compared to head (e1e5fbd) 86.37%.
Report is 16 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #535   +/-   ##
=======================================
  Coverage   86.37%   86.37%           
=======================================
  Files          76       76           
  Lines        3201     3201           
  Branches      220      220           
=======================================
  Hits         2765     2765           
  Misses        360      360           
  Partials       76       76           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@stijnmoreels stijnmoreels merged commit 2da9f0c into main Dec 15, 2023
13 checks passed
@stijnmoreels stijnmoreels deleted the snyk-upgrade-97fa78b975ccc015935c2a47407c2611 branch December 15, 2023 10:06
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.

3 participants