ladunjexa / nextjs14-devoverflow

🧠 DevOverflow is a complex Next.js 14 app that exhibits Q&A platform for developers to ask questions, share knowledge, and learn from each other.
https://nextjs14-devoverflow.vercel.app
MIT License
63 stars 29 forks source link

[Snyk] Upgrade clsx from 2.0.0 to 2.1.0 #19

Closed ladunjexa closed 6 months ago

ladunjexa commented 6 months ago

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


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

:information_source: 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 **2 months ago**, on 2023-12-29.
Release notes
Package name: clsx
  • 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
Commit messages
Package name: clsx
  • a60db12 2.1.0
  • 1a49142 feat: add `clsx/lite` module
  • 5cac14c 2.0.1
  • 855eec2 chore(bench): include ≠ symbol
  • bf64e71 chore: update module size
  • 6e3b2b9 chore: update benchmarks;
  • 554ad31 chore: dedicated string vs number var usage;
  • deff09b chore: cache arguments/array lengths (#26)
  • 6e2468e fix(ci): replace nyc -> c8
  • 308a238 chore(ci): update node matrix
  • 42354d3 chore: fix readme bench links (#82)
  • 4c9a55d chore: readme typo (#76)
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](https://app.snyk.io/org/ladunjexa/project/18e3c3cf-cd62-4bc3-9e16-377f4559f279?utm_source=github&utm_medium=referral&page=upgrade-pr) 🛠 [Adjust upgrade PR settings](https://app.snyk.io/org/ladunjexa/project/18e3c3cf-cd62-4bc3-9e16-377f4559f279/settings/integration?utm_source=github&utm_medium=referral&page=upgrade-pr) 🔕 [Ignore this dependency or unsubscribe from future upgrade PRs](https://app.snyk.io/org/ladunjexa/project/18e3c3cf-cd62-4bc3-9e16-377f4559f279/settings/integration?pkg=clsx&utm_source=github&utm_medium=referral&page=upgrade-pr#auto-dep-upgrades)
vercel[bot] commented 6 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nextjs14-devoverflow ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 12, 2024 9:03pm