Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/add-cn-package.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/angry-wolves-look.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/cn-wrap-runtime-cache.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/fix-runtime-numeric-leading-variants.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/funny-deers-shine.md

This file was deleted.

29 changes: 29 additions & 0 deletions .changeset/ledger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
dir: packages/cli
intents:
- dx-vite-doctor-init
"@weapp-tailwindcss/cn@0.1.1":
dir: packages-runtime/cn
intents:
- add-cn-package
- cn-wrap-runtime-cache
"@weapp-tailwindcss/cva@0.1.9":
dir: packages-runtime/cva
intents:
Expand Down Expand Up @@ -70,6 +75,10 @@
dir: packages-runtime/merge
intents:
- bright-package-homepages
"@weapp-tailwindcss/merge@2.2.4":
dir: packages-runtime/merge
intents:
- fix-runtime-numeric-leading-variants
"@weapp-tailwindcss/postcss-calc@1.0.5":
dir: packages/postcss-calc
intents:
Expand Down Expand Up @@ -111,6 +120,13 @@
dir: packages/postcss
intents:
- bright-spacing-calc
"@weapp-tailwindcss/postcss@3.3.5":
dir: packages/postcss
intents:
- angry-wolves-look
- funny-deers-shine
- real-pens-wonder
- web-css-calc
"@weapp-tailwindcss/react-native@0.2.5":
dir: packages/react-native
intents:
Expand All @@ -127,6 +143,11 @@
dir: packages-runtime/runtime
intents:
- bright-package-homepages
"@weapp-tailwindcss/runtime@0.1.9":
dir: packages-runtime/runtime
intents:
- cn-wrap-runtime-cache
- fix-runtime-numeric-leading-variants
"@weapp-tailwindcss/shared@2.0.3":
dir: packages/shared
intents:
Expand Down Expand Up @@ -283,6 +304,14 @@ weapp-tailwindcss@5.5.5:
dir: packages/weapp-tailwindcss
intents:
- bright-spacing-calc
weapp-tailwindcss@5.5.6:
dir: packages/weapp-tailwindcss
intents:
- angry-wolves-look
- funny-deers-shine
- real-pens-wonder
- tidy-css-cleanup
- web-css-calc
weapp-tw@0.0.3:
dir: packages/weapp-tw
intents:
Expand Down
6 changes: 0 additions & 6 deletions .changeset/real-pens-wonder.md

This file was deleted.

11 changes: 0 additions & 11 deletions .changeset/tidy-css-cleanup.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/web-css-calc.md

This file was deleted.

10 changes: 10 additions & 0 deletions benchmark/runtime-cn-vs-merge/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# benchmark-runtime-cn-vs-merge

## 0.0.0

### Patch Changes

- Updated dependencies:
- @weapp-tailwindcss/cn@0.1.1
- @weapp-tailwindcss/merge@2.2.4
- @weapp-tailwindcss/runtime@0.1.9
9 changes: 9 additions & 0 deletions benchmark/tailwindcss4/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@

### Patch Changes

- Updated dependencies:
- @weapp-tailwindcss/cva@0.1.10
- @weapp-tailwindcss/merge@2.2.4
- @weapp-tailwindcss/variants@0.2.7

## 0.0.9

### Patch Changes

- Updated dependencies:
- @weapp-tailwindcss/variants@0.2.6

Expand Down
7 changes: 7 additions & 0 deletions demo/weapp-vite-tailwindcss-v4/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@

### Patch Changes

- Updated dependencies:
- @weapp-tailwindcss/merge@2.2.4

## 1.0.22

### Patch Changes

- Updated dependencies:
- @weapp-tailwindcss/merge@2.2.3

Expand Down
7 changes: 7 additions & 0 deletions examples/react-lynx-promo/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@

### Patch Changes

- Updated dependencies:
- @weapp-tailwindcss/lynx@0.3.15

## 0.0.0

### Patch Changes

- Updated dependencies:
- @weapp-tailwindcss/lynx@0.3.14

Expand Down
7 changes: 7 additions & 0 deletions examples/react-lynx/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@

### Patch Changes

- Updated dependencies:
- @weapp-tailwindcss/lynx@0.3.15

## 0.1.2

### Patch Changes

- Updated dependencies:
- @weapp-tailwindcss/lynx@0.3.14

Expand Down
7 changes: 7 additions & 0 deletions examples/react-native-expo/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@

### Patch Changes

- Updated dependencies:
- @weapp-tailwindcss/react-native@0.2.18

## 0.1.3

### Patch Changes

- Updated dependencies:
- @weapp-tailwindcss/react-native@0.2.17

Expand Down
12 changes: 12 additions & 0 deletions packages-runtime/cn/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# @weapp-tailwindcss/cn

## 0.1.1

### Patch Changes

- 新增基于 npm `cn` 引擎的面向小程序类名组合工具,兼容条件类名、Tailwind 冲突合并与 `rpx` 任意值,作为 `@weapp-tailwindcss/merge` 的后续替代入口。

- 导出 `wrapRuntimeAggregator`,让 `@weapp-tailwindcss/cn` 复用有界 LRU 与按需 unescape/escape,并接入与 merge 相同的 rpx 长度归一化,使 `text-red` 与 `text-[80rpx]` 等颜色 + 长度类可以共存。

- Updated dependencies:
- @weapp-tailwindcss/runtime@0.1.9
64 changes: 53 additions & 11 deletions packages-runtime/cn/package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,65 @@
{
"name": "@weapp-tailwindcss/cn",
"type": "module",
"version": "0.1.0",
"version": "0.1.1",
"description": "Cross-platform Tailwind CSS class name utility for mini-programs. 面向小程序的跨端 Tailwind CSS 类名组合工具。",
"author": "ice breaker <1324318532@qq.com>",
"license": "MIT",
"homepage": "https://tw.weapp.dev/docs/community/merge/overview",
"repository": { "type": "git", "url": "git+https://github.com/sonofmagic/weapp-tailwindcss.git", "directory": "packages-runtime/cn" },
"bugs": { "url": "https://github.com/sonofmagic/weapp-tailwindcss/issues" },
"keywords": ["tailwindcss", "cn", "classnames", "mini-program"],
"repository": {
"type": "git",
"url": "git+https://github.com/sonofmagic/weapp-tailwindcss.git",
"directory": "packages-runtime/cn"
},
"bugs": {
"url": "https://github.com/sonofmagic/weapp-tailwindcss/issues"
},
"keywords": [
"tailwindcss",
"cn",
"classnames",
"mini-program"
],
"sideEffects": false,
"exports": { ".": { "import": { "types": "./dist/index.d.mts", "default": "./dist/index.mjs" }, "require": { "types": "./dist/index.d.cts", "default": "./dist/index.cjs" } } },
"exports": {
".": {
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
}
},
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.mts",
"files": ["dist"],
"engines": { "node": "^20.19.0 || >=22.12.0" },
"scripts": { "dev": "tsdown -w", "build": "tsdown", "test": "vitest run", "test:dev": "vitest", "tsd": "tsd", "release": "pnpm publish", "lint": "eslint ." },
"publishConfig": { "access": "public" },
"dependencies": { "@weapp-tailwindcss/runtime": "workspace:*", "cn": "^0.3.0" },
"devDependencies": { "@weapp-core/escape": "^8.0.0", "tsd": "^0.33.0" }
"files": [
"dist"
],
"engines": {
"node": "^20.19.0 || >=22.12.0"
},
"scripts": {
"dev": "tsdown -w",
"build": "tsdown",
"test": "vitest run",
"test:dev": "vitest",
"tsd": "tsd",
"release": "pnpm publish",
"lint": "eslint ."
},
"publishConfig": {
"access": "public"
},
"dependencies": {
"@weapp-tailwindcss/runtime": "workspace:*",
"cn": "^0.3.0"
},
"devDependencies": {
"@weapp-core/escape": "^8.0.0",
"tsd": "^0.33.0"
}
}
7 changes: 7 additions & 0 deletions packages-runtime/cva/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @weapp-tailwindcss/cva

## 0.1.10

### Patch Changes

- Updated dependencies:
- @weapp-tailwindcss/runtime@0.1.9

## 0.1.9

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages-runtime/cva/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@weapp-tailwindcss/cva",
"type": "module",
"version": "0.1.9",
"version": "0.1.10",
"description": "Cross-platform class-variance-authority runtime for Tailwind CSS. 面向跨端 Tailwind CSS 的 class-variance-authority 运行时封装。",
"author": "ice breaker <1324318532@qq.com>",
"license": "MIT",
Expand Down
12 changes: 12 additions & 0 deletions packages-runtime/merge/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# @weapp-tailwindcss/merge

## 2.2.4

### Patch Changes

- 修复 `twMerge` 处理以数字开头的变体类名(如 `2xl:` 等)时的转义与冲突消解问题。

- 在 `wrapClassAggregator` 中对包含空格的多类名字符串进行分词处理,使每个类名 Token 都能独立应用完整的 escape/unescape 前缀逻辑。
- 解决数字开头变体类名在小程序运行时冲突未消解、或因丢失下划线前缀导致样式在真机及模拟器中失效的问题。

- Updated dependencies:
- @weapp-tailwindcss/runtime@0.1.9

## 2.2.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages-runtime/merge/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@weapp-tailwindcss/merge",
"type": "module",
"version": "2.2.3",
"version": "2.2.4",
"description": "Cross-platform Tailwind CSS class merging runtime with mini-program compatibility. 兼容小程序的跨端 Tailwind CSS 类名合并运行时。",
"author": "ice breaker <1324318532@qq.com>",
"license": "MIT",
Expand Down
11 changes: 11 additions & 0 deletions packages-runtime/runtime/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# @weapp-tailwindcss/runtime

## 0.1.9

### Patch Changes

- 导出 `wrapRuntimeAggregator`,让 `@weapp-tailwindcss/cn` 复用有界 LRU 与按需 unescape/escape,并接入与 merge 相同的 rpx 长度归一化,使 `text-red` 与 `text-[80rpx]` 等颜色 + 长度类可以共存。

- 修复 `twMerge` 处理以数字开头的变体类名(如 `2xl:` 等)时的转义与冲突消解问题。

- 在 `wrapClassAggregator` 中对包含空格的多类名字符串进行分词处理,使每个类名 Token 都能独立应用完整的 escape/unescape 前缀逻辑。
- 解决数字开头变体类名在小程序运行时冲突未消解、或因丢失下划线前缀导致样式在真机及模拟器中失效的问题。

## 0.1.8

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages-runtime/runtime/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@weapp-tailwindcss/runtime",
"type": "module",
"version": "0.1.8",
"version": "0.1.9",
"description": "Shared runtime adapters for cross-platform Tailwind CSS class utilities. 跨端 Tailwind CSS 类名工具的共享运行时适配层。",
"author": "ice breaker <1324318532@qq.com>",
"license": "MIT",
Expand Down
8 changes: 8 additions & 0 deletions packages-runtime/ui/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @weapp-tailwindcss/ui

## 0.0.14

### Patch Changes

- Updated dependencies:
- @weapp-tailwindcss/merge@2.2.4
- @weapp-tailwindcss/variants@0.2.7

## 0.0.13

### Patch Changes
Expand Down
Loading
Loading