classix 2.1.0 → 2.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# classix
|
|
2
2
|
|
|
3
|
+

|
|
4
|
+

|
|
5
|
+

|
|
6
|
+
|
|
3
7
|
The [fastest](#comparison) and [tiniest](#comparison) utility for conditionally joining classNames.
|
|
4
8
|
|
|
5
9
|
## Installation
|
|
@@ -56,7 +60,7 @@ Sources: [classix](https://bundlephobia.com/package/classix), [clsx](https://bun
|
|
|
56
60
|
|
|
57
61
|
Sources: Ran [benchmark](benchmark/) on an AMD Ryzen 5 5600x.
|
|
58
62
|
|
|
59
|
-
Compared to other
|
|
63
|
+
Compared to other libraries, classix simplifies its API by omitting the use of object arguments, which it considers less ergonomic than string expressions:
|
|
60
64
|
|
|
61
65
|
```js
|
|
62
66
|
// 🚫
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "classix",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.3",
|
|
4
4
|
"description": "The fastest and tiniest utility for conditionally joining classNames.",
|
|
5
|
-
"main": "dist/classix.
|
|
6
|
-
"module": "dist/classix.
|
|
5
|
+
"main": "dist/cjs/classix.js",
|
|
6
|
+
"module": "dist/esm/classix.js",
|
|
7
7
|
"types": "dist/classix.d.ts",
|
|
8
8
|
"author": "Alex Nault",
|
|
9
9
|
"keywords": [
|
|
@@ -23,12 +23,14 @@
|
|
|
23
23
|
"build": "rm -rf ./dist && rollup -c",
|
|
24
24
|
"format": "prettier --write \"{src,benchmark}/**/*.{js,ts}\"",
|
|
25
25
|
"lint": "eslint src/ --max-warnings=0",
|
|
26
|
+
"size": "size-limit",
|
|
26
27
|
"test": "jest"
|
|
27
28
|
},
|
|
28
29
|
"files": [
|
|
29
30
|
"dist"
|
|
30
31
|
],
|
|
31
32
|
"devDependencies": {
|
|
33
|
+
"@size-limit/preset-small-lib": "^7.0.8",
|
|
32
34
|
"@types/jest": "^28.0.0",
|
|
33
35
|
"@typescript-eslint/eslint-plugin": "^5.30.5",
|
|
34
36
|
"@typescript-eslint/parser": "^5.30.5",
|
|
@@ -45,6 +47,7 @@
|
|
|
45
47
|
"rollup-plugin-dts": "^4.2.2",
|
|
46
48
|
"rollup-plugin-esbuild": "^4.9.1",
|
|
47
49
|
"semantic-release": "^19.0.3",
|
|
50
|
+
"size-limit": "^7.0.8",
|
|
48
51
|
"ts-jest": "^28.0.0",
|
|
49
52
|
"typescript": "^4.7.4"
|
|
50
53
|
}
|