@weapp-tailwindcss/cn 0.1.5 → 0.2.0

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
@@ -9,3 +9,5 @@ import { cn } from '@weapp-tailwindcss/cn'
9
9
 
10
10
  cn('p-4', enabled && 'p-2')
11
11
  ```
12
+
13
+ 需要 Node.js 22.12.0 或更高版本;`cn` 0.5.2 起的引擎要求不再包含 Node.js 20。
package/README.zh-CN.md CHANGED
@@ -9,3 +9,5 @@ import { cn } from '@weapp-tailwindcss/cn'
9
9
 
10
10
  cn('p-4', enabled && 'p-2')
11
11
  ```
12
+
13
+ 需要 Node.js 22.12.0 或更高版本;`cn` 0.5.2 起的引擎要求不再包含 Node.js 20。
package/dist/index.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  let _weapp_tailwindcss_runtime = require("@weapp-tailwindcss/runtime");
3
3
  let cn = require("cn");
4
- //#region src/index.ts
4
+ // src/index.ts
5
5
  const transformers = (0, _weapp_tailwindcss_runtime.resolveTransformers)();
6
6
  const rpxTransform = (0, _weapp_tailwindcss_runtime.createRpxLengthTransform)();
7
7
  /**
@@ -9,5 +9,4 @@ const rpxTransform = (0, _weapp_tailwindcss_runtime.createRpxLengthTransform)();
9
9
  * 经 runtime 聚合包装:有界 LRU、rpx 长度归一化、按需 unescape/escape。
10
10
  */
11
11
  const cn$1 = (0, _weapp_tailwindcss_runtime.wrapRuntimeAggregator)(cn.twMerge, transformers, rpxTransform.prepareValue, rpxTransform.restoreValue);
12
- //#endregion
13
12
  exports.cn = cn$1;
package/dist/index.d.cts CHANGED
@@ -1,9 +1,7 @@
1
1
  import { ClassValue } from "@weapp-tailwindcss/runtime";
2
- //#region src/index.d.ts
3
2
  /**
4
3
  * 组合条件类名,并按 Tailwind 冲突规则保留最后一个类名。
5
4
  * 经 runtime 聚合包装:有界 LRU、rpx 长度归一化、按需 unescape/escape。
6
5
  */
7
6
  export declare const cn: import("@weapp-tailwindcss/runtime").TailwindMergeRuntime;
8
- //#endregion
9
7
  export type { ClassValue };
package/dist/index.d.mts CHANGED
@@ -1,9 +1,7 @@
1
1
  import { ClassValue } from "@weapp-tailwindcss/runtime";
2
- //#region src/index.d.ts
3
2
  /**
4
3
  * 组合条件类名,并按 Tailwind 冲突规则保留最后一个类名。
5
4
  * 经 runtime 聚合包装:有界 LRU、rpx 长度归一化、按需 unescape/escape。
6
5
  */
7
6
  export declare const cn: import("@weapp-tailwindcss/runtime").TailwindMergeRuntime;
8
- //#endregion
9
7
  export type { ClassValue };
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { createRpxLengthTransform, resolveTransformers, wrapRuntimeAggregator } from "@weapp-tailwindcss/runtime";
2
2
  import { twMerge } from "cn";
3
- //#region src/index.ts
3
+ // src/index.ts
4
4
  const transformers = resolveTransformers();
5
5
  const rpxTransform = createRpxLengthTransform();
6
6
  /**
@@ -8,5 +8,4 @@ const rpxTransform = createRpxLengthTransform();
8
8
  * 经 runtime 聚合包装:有界 LRU、rpx 长度归一化、按需 unescape/escape。
9
9
  */
10
10
  const cn = wrapRuntimeAggregator(twMerge, transformers, rpxTransform.prepareValue, rpxTransform.restoreValue);
11
- //#endregion
12
11
  export { cn };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@weapp-tailwindcss/cn",
3
3
  "type": "module",
4
- "version": "0.1.5",
4
+ "version": "0.2.0",
5
5
  "description": "Cross-platform Tailwind CSS class name utility for mini-programs. 面向小程序的跨端 Tailwind CSS 类名组合工具。",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -40,14 +40,14 @@
40
40
  "dist"
41
41
  ],
42
42
  "engines": {
43
- "node": "^20.19.0 || >=22.12.0"
43
+ "node": ">=22.12.0"
44
44
  },
45
45
  "publishConfig": {
46
46
  "access": "public"
47
47
  },
48
48
  "dependencies": {
49
49
  "@weapp-tailwindcss/runtime": "0.1.11",
50
- "cn": "^0.4.0"
50
+ "cn": "^0.5.2"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@weapp-tailwindcss/escape": "0.0.2",