Skip to content

Commit

Permalink
Upgrade to clsx@2.0.0 (#185)
Browse files Browse the repository at this point in the history
* chore: upgrade to clsx@2.0.0

* chore: remove test string
  • Loading branch information
joe-bell authored Jul 17, 2023
1 parent 5d15fea commit dccc72b
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/class-variance-authority/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"test:size": "pnpm build && bundlesize -f 'dist/*.js' -s 850B"
},
"dependencies": {
"clsx": "1.2.1"
"clsx": "2.0.0"
},
"devDependencies": {
"@jest/types": "28.1.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/class-variance-authority/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from "clsx";
import { clsx } from "clsx";

import type {
ClassProp,
Expand Down
2 changes: 1 addition & 1 deletion packages/cva/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"test:size": "pnpm build && bundlesize -f 'dist/*.js' -s 900B"
},
"dependencies": {
"clsx": "1.2.1"
"clsx": "2.0.0"
},
"devDependencies": {
"@jest/types": "28.1.1",
Expand Down
3 changes: 1 addition & 2 deletions packages/cva/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from "clsx";
import { clsx } from "clsx";

/* Types
============================================ */
Expand All @@ -11,7 +11,6 @@ import clsx from "clsx";
// Should this project move to JSDoc, this workaround would no longer be needed.

type ClassValue =
| "test"
| ClassArray
| ClassDictionary
| string
Expand Down
13 changes: 9 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 comment on commit dccc72b

@vercel
Copy link

@vercel vercel bot commented on dccc72b Jul 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.