Skip to content

Commit 7f6222f

Browse files
committed
feat: Replace classnames dependency with clsx
1 parent 452386d commit 7f6222f

File tree

3 files changed

+7
-15
lines changed

3 files changed

+7
-15
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
},
7171
"dependencies": {
7272
"@types/highlight.js": "^9.12.3",
73-
"classnames": "^2.2.3",
73+
"clsx": "^1.1.1",
7474
"prop-types": "^15.5.6"
7575
},
7676
"jest": {

src/BareHighlight.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as React from 'react';
22
import PropTypes from 'prop-types';
3-
import cx from 'classnames';
3+
import cx from 'clsx';
44
import type hljs from 'highlight.js';
55

66
interface Props {

yarn.lock

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2834,11 +2834,6 @@ class-utils@^0.3.5:
28342834
isobject "^3.0.0"
28352835
static-extend "^0.1.1"
28362836

2837-
classnames@^2.2.3:
2838-
version "2.2.6"
2839-
resolved "https://registry.yarnpkg.com/classnames/-/classnames-2.2.6.tgz#43935bffdd291f326dad0a205309b38d00f650ce"
2840-
integrity sha512-JR/iSQOSt+LQIWwrwEzJ9uk0xfN3mTVYMwt1Ir5mUcSN6pU+V4zQFFaJsclJbPuAUQH+yfWef6tm7l1quW3C8Q==
2841-
28422837
clean-stack@^2.0.0:
28432838
version "2.2.0"
28442839
resolved "https://registry.yarnpkg.com/clean-stack/-/clean-stack-2.2.0.tgz#ee8472dbb129e727b31e8a10a427dee9dfe4008b"
@@ -2938,6 +2933,11 @@ clone@^1.0.2:
29382933
resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.4.tgz#da309cc263df15994c688ca902179ca3c7cd7c7e"
29392934
integrity sha1-2jCcwmPfFZlMaIypAheco8fNfH4=
29402935

2936+
clsx@^1.1.1:
2937+
version "1.1.1"
2938+
resolved "https://registry.yarnpkg.com/clsx/-/clsx-1.1.1.tgz#98b3134f9abbdf23b2663491ace13c5c03a73188"
2939+
integrity sha512-6/bPho624p3S2pMyvP5kKBPXnI3ufHLObBFCfgx+LkeR5lg2XYy2hqZqUf45ypD8COn2bhgGJSUE+l5dhNBieA==
2940+
29412941
cmd-shim@^3.0.0, cmd-shim@^3.0.3:
29422942
version "3.0.3"
29432943
resolved "https://registry.yarnpkg.com/cmd-shim/-/cmd-shim-3.0.3.tgz#2c35238d3df37d98ecdd7d5f6b8dc6b21cadc7cb"
@@ -7567,7 +7567,6 @@ npm@^6.14.9:
75677567
cmd-shim "^3.0.3"
75687568
columnify "~1.5.4"
75697569
config-chain "^1.1.12"
7570-
debuglog "*"
75717570
detect-indent "~5.0.0"
75727571
detect-newline "^2.1.0"
75737572
dezalgo "~1.0.3"
@@ -7582,7 +7581,6 @@ npm@^6.14.9:
75827581
has-unicode "~2.0.1"
75837582
hosted-git-info "^2.8.8"
75847583
iferr "^1.0.2"
7585-
imurmurhash "*"
75867584
infer-owner "^1.0.4"
75877585
inflight "~1.0.6"
75887586
inherits "^2.0.4"
@@ -7601,14 +7599,8 @@ npm@^6.14.9:
76017599
libnpx "^10.2.4"
76027600
lock-verify "^2.1.0"
76037601
lockfile "^1.0.4"
7604-
lodash._baseindexof "*"
76057602
lodash._baseuniq "~4.6.0"
7606-
lodash._bindcallback "*"
7607-
lodash._cacheindexof "*"
7608-
lodash._createcache "*"
7609-
lodash._getnative "*"
76107603
lodash.clonedeep "~4.5.0"
7611-
lodash.restparam "*"
76127604
lodash.union "~4.6.0"
76137605
lodash.uniq "~4.5.0"
76147606
lodash.without "~4.4.0"

0 commit comments

Comments
 (0)