Skip to content

Commit

Permalink
build(deps): bump clsx from 2.0.0 to 2.1.0 (#1018)
Browse files Browse the repository at this point in the history
Bumps [clsx](https://github.com/lukeed/clsx) from 2.0.0 to 2.1.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/lukeed/clsx/releases">clsx's releases</a>.</em></p>
<blockquote>
<h2>v2.1.0</h2>
<h2>Features</h2>
<ul>
<li>
<p>Add new <code>clsx/lite</code> submodule for <code>string</code>-only usage: 1a49142</p>
<p><em>This is a <strong>140b</strong> version of <code>clsx</code> that is ideal for Tailwind and/or React contexts, which typically follow this <code>clsx</code> usage pattern:</em></p>
<pre lang="js"><code>clsx('foo bar', props.maybe &amp;&amp; 'conditional classes', props.className);
</code></pre>
<blockquote>
<p><strong>Important:</strong> This <code>clsx/lite</code> module <strong>ignores all non-string arguments</strong> and is therefore not a 1:1 replacement for <code>clsx</code> itself!</p>
</blockquote>
<pre lang="js"><code>import { clsx } from 'clsx';
import { clsx as lite } from 'clsx/lite';
<p>// strings-only usage is identical
clsx('foo', null, 'bar', true &amp;&amp; 'baz'); //=&gt; &quot;foo bar baz&quot;
lite('foo', null, 'bar', true &amp;&amp; 'baz'); //=&gt; &quot;foo bar baz&quot;</p>
<p>// clsx/lite ignores all non-strings
clsx('foo', { a: true, b: false, c: true }); //=&gt; &quot;foo a c&quot;
lite('foo', { a: true, b: false, c: true }); //=&gt; &quot;foo&quot;
</code></pre></p>
</li>
</ul>
<hr />
<blockquote>
<p><strong>Full Changelog</strong>: <a href="https://github.com/lukeed/clsx/compare/v2.0.1...v2.1.0">https://github.com/lukeed/clsx/compare/v2.0.1...v2.1.0</a></p>
</blockquote>
<h2>v2.0.1</h2>
<h2>Patches</h2>
<ul>
<li>(perf) Cache <code>arguments.length</code> &amp; <code>array.length</code> for 6% performance gain (<a href="https://redirect.github.com/lukeed/clsx/issues/26">#26</a>): deff09b
<em>Adds 5 bytes (+2%) for ~3% avg performance gain</em>
<em>Thank you <a href="https://github.com/jalalazimi"><code>@​jalalazimi</code></a></em></li>
</ul>
<h2>Chores</h2>
<ul>
<li>Update module size: bf64e71</li>
<li>Update benchmark results: 855eec2, 6e3b2b9,</li>
<li>Replace <code>nyc</code> with <code>c8</code> in CI: 6e2468e</li>
<li>Update Node CI matrix: 308a238</li>
<li>Fix readme typos (<a href="https://redirect.github.com/lukeed/clsx/issues/76">#76</a>, <a href="https://redirect.github.com/lukeed/clsx/issues/82">#82</a>): 42354d3, 4c9a55d
<em>Thank you <a href="https://github.com/andipaetzold"><code>@​andipaetzold</code></a> and <a href="https://github.com/acusti"><code>@​acusti</code></a></em></li>
</ul>
<hr />
<blockquote>
<p><strong>Full Changelog</strong>: <a href="https://github.com/lukeed/clsx/compare/v2.0.0...v2.0.1">https://github.com/lukeed/clsx/compare/v2.0.0...v2.0.1</a></p>
</blockquote>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/lukeed/clsx/commit/a60db12a53aee6a14218a62d8a0624f556b87032"><code>a60db12</code></a> 2.1.0</li>
<li><a href="https://github.com/lukeed/clsx/commit/1a491425ef048efbe07ccea2a80a308e9870926c"><code>1a49142</code></a> feat: add <code>clsx/lite</code> module</li>
<li><a href="https://github.com/lukeed/clsx/commit/5cac14c2c84d09f3e98a0a60bae765b8bc0e3812"><code>5cac14c</code></a> 2.0.1</li>
<li><a href="https://github.com/lukeed/clsx/commit/855eec2e9784bfb92bc71f957919aadcbbc4e1d0"><code>855eec2</code></a> chore(bench): include ≠ symbol</li>
<li><a href="https://github.com/lukeed/clsx/commit/bf64e71018dc0d1ba0a6adb4c15325a14290e6c1"><code>bf64e71</code></a> chore: update module size</li>
<li><a href="https://github.com/lukeed/clsx/commit/6e3b2b99cdb0e37cb5e1870a5a2e92b688b98d0b"><code>6e3b2b9</code></a> chore: update benchmarks;</li>
<li><a href="https://github.com/lukeed/clsx/commit/554ad31e92b27f45fb6d000e73deabf5ce84c925"><code>554ad31</code></a> chore: dedicated string vs number var usage;</li>
<li><a href="https://github.com/lukeed/clsx/commit/deff09b0fe40f5e79bda011c560e09d1428342c6"><code>deff09b</code></a> chore: cache arguments/array lengths (<a href="https://redirect.github.com/lukeed/clsx/issues/26">#26</a>)</li>
<li><a href="https://github.com/lukeed/clsx/commit/6e2468e7db5844164d8a48b77771de8be8fc8997"><code>6e2468e</code></a> fix(ci): replace nyc -&gt; c8</li>
<li><a href="https://github.com/lukeed/clsx/commit/308a2387b82219350d232832228cc108a6ea255b"><code>308a238</code></a> chore(ci): update node matrix</li>
<li>Additional commits viewable in <a href="https://github.com/lukeed/clsx/compare/v2.0.0...v2.1.0">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=clsx&package-manager=npm_and_yarn&previous-version=2.0.0&new-version=2.1.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

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)


</details>
  • Loading branch information
dependabot[bot] authored Feb 12, 2024
1 parent c36cf4c commit d23c14a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@docusaurus/preset-classic": "^2.4.3",
"@swc/core": "^1.4.0",
"@you54f/theme-github-codeblock": "^0.1.1",
"clsx": "^2.0.0",
"clsx": "^2.1.0",
"prism-react-renderer": "^2.3.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13886,7 +13886,7 @@ __metadata:
"@swc/core": ^1.4.0
"@tsconfig/docusaurus": ^2.0.2
"@you54f/theme-github-codeblock": ^0.1.1
clsx: ^2.0.0
clsx: ^2.1.0
docusaurus-plugin-typedoc: ^0.21.0
prism-react-renderer: ^2.3.1
react: ^18.2.0
Expand Down

0 comments on commit d23c14a

Please sign in to comment.