classix 2.1.2 → 2.1.5

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
@@ -75,7 +75,7 @@ cx(isPrimary && isLarge ? "class-1" : "class-2");
75
75
  - Zero dependencies
76
76
  - Fully typed (with TypeScript)
77
77
  - Fully tested
78
- - Follows [semantic versioning](https://semver.org/)
78
+ - [Semver](https://semver.org/) compliant
79
79
 
80
80
  ## Changelog
81
81
 
@@ -0,0 +1 @@
1
+ function t(){let t,e="",r=0;for(;r<arguments.length;)(t=arguments[r++])&&"string"==typeof t&&(e&&(e+=" "),e+=t);return e}exports.cx=t,exports.default=t;
@@ -0,0 +1 @@
1
+ function t(){let t,e="",n=0;for(;n<arguments.length;)(t=arguments[n++])&&"string"==typeof t&&(e&&(e+=" "),e+=t);return e}export{t as cx,t as default};
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "classix",
3
- "version": "2.1.2",
3
+ "version": "2.1.5",
4
4
  "description": "The fastest and tiniest utility for conditionally joining classNames.",
5
- "main": "dist/classix.cjs.js",
6
- "module": "dist/classix.mjs.js",
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,15 @@
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
  ],
32
+ "sideEffects": false,
31
33
  "devDependencies": {
34
+ "@size-limit/preset-small-lib": "^7.0.8",
32
35
  "@types/jest": "^28.0.0",
33
36
  "@typescript-eslint/eslint-plugin": "^5.30.5",
34
37
  "@typescript-eslint/parser": "^5.30.5",
@@ -44,7 +47,9 @@
44
47
  "rollup": "^2.77.0",
45
48
  "rollup-plugin-dts": "^4.2.2",
46
49
  "rollup-plugin-esbuild": "^4.9.1",
50
+ "rollup-plugin-terser": "^7.0.2",
47
51
  "semantic-release": "^19.0.3",
52
+ "size-limit": "^7.0.8",
48
53
  "ts-jest": "^28.0.0",
49
54
  "typescript": "^4.7.4"
50
55
  }
@@ -1,13 +0,0 @@
1
- function cx() {
2
- let str = "", i = 0, arg;
3
- while (i < arguments.length) {
4
- if ((arg = arguments[i++]) && typeof arg === "string") {
5
- str && (str += " ");
6
- str += arg;
7
- }
8
- }
9
- return str;
10
- }
11
-
12
- exports.cx = cx;
13
- exports["default"] = cx;
@@ -1,12 +0,0 @@
1
- function cx() {
2
- let str = "", i = 0, arg;
3
- while (i < arguments.length) {
4
- if ((arg = arguments[i++]) && typeof arg === "string") {
5
- str && (str += " ");
6
- str += arg;
7
- }
8
- }
9
- return str;
10
- }
11
-
12
- export { cx, cx as default };