From e43fec2de6509a1f0476f08c397e4a4eacd18d73 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 1 Jan 2024 05:19:52 +0000
Subject: [PATCH] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20Bump=20clsx=20from=202.0.0?=
=?UTF-8?q?=20to=202.1.0=20in=20/website=20(#4956)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Bumps [clsx](https://github.com/lukeed/clsx) from 2.0.0 to 2.1.0.
Release notes
Sourced from clsx's releases.
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: https://github.com/lukeed/clsx/compare/v2.0.1...v2.1.0
v2.0.1
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
- Update module size: bf64e71
- Update benchmark results: 855eec2, 6e3b2b9,
- Replace
nyc with c8 in CI: 6e2468e
- Update Node CI matrix: 308a238
- Fix readme typos (#76, #82): 42354d3, 4c9a55d
Thank you
@andipaetzold and @acusti
Full Changelog: https://github.com/lukeed/clsx/compare/v2.0.0...v2.0.1
Commits
[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
You can trigger a rebase of this PR by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
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 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)
---
website/package-lock.json | 8 ++++----
website/package.json | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/website/package-lock.json b/website/package-lock.json
index 31470358a..49abc396e 100644
--- a/website/package-lock.json
+++ b/website/package-lock.json
@@ -14,7 +14,7 @@
"@loadable/component": "^5.16.2",
"@mdx-js/react": "^3.0.0",
"animate.css": "^4.1.1",
- "clsx": "2.0.0",
+ "clsx": "2.1.0",
"docusaurus-plugin-image-zoom": "^1.0.1",
"docusaurus-plugin-sass": "^0.2.5",
"feather-icons": "^4.29.1",
@@ -5040,9 +5040,9 @@
}
},
"node_modules/clsx": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.0.0.tgz",
- "integrity": "sha512-rQ1+kcj+ttHG0MKVGBUXwayCCF1oh39BF5COIpRzuCEv8Mwjv0XucrI2ExNTOn9IlLifGClWQcU9BrZORvtw6Q==",
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.0.tgz",
+ "integrity": "sha512-m3iNNWpd9rl3jvvcBnu70ylMdrXt8Vlq4HYadnU5fwcOtvkSQWPmj7amUcDT2qYI7risszBjI5AUIUox9D16pg==",
"engines": {
"node": ">=6"
}
diff --git a/website/package.json b/website/package.json
index 9b228b080..c29540d5c 100644
--- a/website/package.json
+++ b/website/package.json
@@ -20,7 +20,7 @@
"@loadable/component": "^5.16.2",
"@mdx-js/react": "^3.0.0",
"animate.css": "^4.1.1",
- "clsx": "2.0.0",
+ "clsx": "2.1.0",
"docusaurus-plugin-image-zoom": "^1.0.1",
"docusaurus-plugin-sass": "^0.2.5",
"feather-icons": "^4.29.1",