Skip to content
Merged
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
7 changes: 6 additions & 1 deletion .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,10 @@
"wetw": "0.1.1",
"@weapp-tailwindcss/website": "1.0.17"
},
"changesets": []
"changesets": [
"bright-horses-clean",
"honest-hounds-hug",
"perf-hot-path-caching",
"weapp-tailwindcss-alias"
]
}
7 changes: 7 additions & 0 deletions packages-runtime/ui/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @weapp-tailwindcss/ui

## 0.0.7-alpha.0

### Patch Changes

- 🐛 **修复 Vite 集成在 dts 构建阶段替换 postcss 插件时触发的类型递归比较问题,避免 TS2321 与 TS2345 导致构建失败。** [`c8860fa`](https://github.com/sonofmagic/weapp-tailwindcss/commit/c8860fa202e202833f2c503fd7ea53af824a76fe) by @sonofmagic
- 同时升级部分依赖与工作区 catalog 版本(包括 postcss、fs-extra、storybook 等),并同步更新锁文件以保持依赖解析一致性。

## 0.0.6

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages-runtime/ui/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@weapp-tailwindcss/ui",
"type": "module",
"version": "0.0.6",
"version": "0.0.7-alpha.0",
"description": "Atomic utility-first CSS component library for WeChat mini programs.",
"author": "ice breaker <1324318532@qq.com>",
"license": "ISC",
Expand Down
11 changes: 11 additions & 0 deletions packages/build-all/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# @weapp-tailwindcss/build-all

## 0.0.22-alpha.0

### Patch Changes

- 📦 Updated 8 dependencies [`c8860fa`](https://github.com/sonofmagic/weapp-tailwindcss/commit/c8860fa202e202833f2c503fd7ea53af824a76fe)
<details><summary>Details</summary>

`weapp-tailwindcss@4.11.0-alpha.0`, `@weapp-tailwindcss/init@1.0.11-alpha.0`, `@weapp-tailwindcss/postcss@2.1.6-alpha.0`, `tailwindcss-injector@1.0.11-alpha.0`, `@weapp-tailwindcss/shared@1.1.3-alpha.0`, `tailwindcss-config@1.1.5-alpha.0`, `weapp-style-injector@0.0.2-alpha.0`, `wetw@0.1.2-alpha.0`

</details>

## 0.0.21

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/build-all/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@weapp-tailwindcss/build-all",
"type": "module",
"version": "0.0.21",
"version": "0.0.22-alpha.0",
"private": true,
"engines": {
"node": "^20.19.0 || >=22.12.0"
Expand Down
9 changes: 9 additions & 0 deletions packages/init/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @weapp-tailwindcss/init

## 1.0.11-alpha.0

### Patch Changes

- 🐛 **修复 Vite 集成在 dts 构建阶段替换 postcss 插件时触发的类型递归比较问题,避免 TS2321 与 TS2345 导致构建失败。** [`c8860fa`](https://github.com/sonofmagic/weapp-tailwindcss/commit/c8860fa202e202833f2c503fd7ea53af824a76fe) by @sonofmagic
- 同时升级部分依赖与工作区 catalog 版本(包括 postcss、fs-extra、storybook 等),并同步更新锁文件以保持依赖解析一致性。
- 📦 **Dependencies** [`49e50d8`](https://github.com/sonofmagic/weapp-tailwindcss/commit/49e50d8bde7327d47e9ba649537092ea57bcdf16)
→ `@weapp-tailwindcss/shared@1.1.3-alpha.0`

## 1.0.10

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/init/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@weapp-tailwindcss/init",
"version": "1.0.10",
"version": "1.0.11-alpha.0",
"description": "@weapp-tailwindcss/init",
"author": "ice breaker <1324318532@qq.com>",
"license": "MIT",
Expand Down
16 changes: 16 additions & 0 deletions packages/postcss/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# @weapp-tailwindcss/postcss

## 2.1.6-alpha.0

### Patch Changes

- 🐛 **修复 Vite 集成在 dts 构建阶段替换 postcss 插件时触发的类型递归比较问题,避免 TS2321 与 TS2345 导致构建失败。** [`c8860fa`](https://github.com/sonofmagic/weapp-tailwindcss/commit/c8860fa202e202833f2c503fd7ea53af824a76fe) by @sonofmagic
- 同时升级部分依赖与工作区 catalog 版本(包括 postcss、fs-extra、storybook 等),并同步更新锁文件以保持依赖解析一致性。

- 🐛 **性能优化:针对 CSS 选择器转换、JS 处理器、WXML 模板处理等热路径进行多项缓存与计算优化。** [`49e50d8`](https://github.com/sonofmagic/weapp-tailwindcss/commit/49e50d8bde7327d47e9ba649537092ea57bcdf16) by @sonofmagic
- JS 处理器:复用 `resolveClassNameTransformWithResult` 返回的 `escapedValue` 避免重复 escape 计算;引入 `getReplacement` 缓存消除重复 `replaceWxml` 调用;移除 `escapeStringRegexp` + `new RegExp` 正则编译开销
- `createJsHandler`:预构建默认 `defaults` 对象,无覆盖选项时跳过 `defuOverrideArray` 合并
- WXML 模板:`templateReplacer` 支持复用模块级 tokenizer 实例;`createTemplateHandler` 预构建 attribute matcher 并传递给 `customTemplateHandler`
- PostCSS fallback 选择器解析:为 `transform` 函数添加 selector 级别缓存,避免重复解析相同选择器
- `splitCode`:为默认和 allowDoubleQuotes 两种模式分别添加结果缓存,预编译分割正则
- 📦 **Dependencies** [`49e50d8`](https://github.com/sonofmagic/weapp-tailwindcss/commit/49e50d8bde7327d47e9ba649537092ea57bcdf16)
→ `@weapp-tailwindcss/shared@1.1.3-alpha.0`

## 2.1.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/postcss/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@weapp-tailwindcss/postcss",
"version": "2.1.5",
"version": "2.1.6-alpha.0",
"description": "@weapp-tailwindcss/postcss",
"author": "ice breaker <1324318532@qq.com>",
"license": "MIT",
Expand Down
11 changes: 11 additions & 0 deletions packages/shared/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# @weapp-tailwindcss/shared

## 1.1.3-alpha.0

### Patch Changes

- 🐛 **性能优化:针对 CSS 选择器转换、JS 处理器、WXML 模板处理等热路径进行多项缓存与计算优化。** [`49e50d8`](https://github.com/sonofmagic/weapp-tailwindcss/commit/49e50d8bde7327d47e9ba649537092ea57bcdf16) by @sonofmagic
- JS 处理器:复用 `resolveClassNameTransformWithResult` 返回的 `escapedValue` 避免重复 escape 计算;引入 `getReplacement` 缓存消除重复 `replaceWxml` 调用;移除 `escapeStringRegexp` + `new RegExp` 正则编译开销
- `createJsHandler`:预构建默认 `defaults` 对象,无覆盖选项时跳过 `defuOverrideArray` 合并
- WXML 模板:`templateReplacer` 支持复用模块级 tokenizer 实例;`createTemplateHandler` 预构建 attribute matcher 并传递给 `customTemplateHandler`
- PostCSS fallback 选择器解析:为 `transform` 函数添加 selector 级别缓存,避免重复解析相同选择器
- `splitCode`:为默认和 allowDoubleQuotes 两种模式分别添加结果缓存,预编译分割正则

## 1.1.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@weapp-tailwindcss/shared",
"version": "1.1.2",
"version": "1.1.3-alpha.0",
"description": "@weapp-tailwindcss/shared",
"author": "ice breaker <1324318532@qq.com>",
"license": "MIT",
Expand Down
7 changes: 7 additions & 0 deletions packages/tailwindcss-config/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# tailwindcss-config

## 1.1.5-alpha.0

### Patch Changes

- 📦 **Dependencies** [`49e50d8`](https://github.com/sonofmagic/weapp-tailwindcss/commit/49e50d8bde7327d47e9ba649537092ea57bcdf16)
→ `@weapp-tailwindcss/shared@1.1.3-alpha.0`

## 1.1.4

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/tailwindcss-config/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tailwindcss-config",
"type": "module",
"version": "1.1.4",
"version": "1.1.5-alpha.0",
"description": "load tailwindcss config function",
"author": "ice breaker <1324318532@qq.com>",
"license": "MIT",
Expand Down
9 changes: 9 additions & 0 deletions packages/tailwindcss-injector/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# tailwindcss-injector

## 1.0.11-alpha.0

### Patch Changes

- 🐛 **修复 Vite 集成在 dts 构建阶段替换 postcss 插件时触发的类型递归比较问题,避免 TS2321 与 TS2345 导致构建失败。** [`c8860fa`](https://github.com/sonofmagic/weapp-tailwindcss/commit/c8860fa202e202833f2c503fd7ea53af824a76fe) by @sonofmagic
- 同时升级部分依赖与工作区 catalog 版本(包括 postcss、fs-extra、storybook 等),并同步更新锁文件以保持依赖解析一致性。
- 📦 **Dependencies** [`49e50d8`](https://github.com/sonofmagic/weapp-tailwindcss/commit/49e50d8bde7327d47e9ba649537092ea57bcdf16)
→ `@weapp-tailwindcss/shared@1.1.3-alpha.0`, `tailwindcss-config@1.1.5-alpha.0`

## 1.0.10

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/tailwindcss-injector/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tailwindcss-injector",
"type": "module",
"version": "1.0.10",
"version": "1.0.11-alpha.0",
"description": "tsup(esbuild) build package template",
"author": "ice breaker <1324318532@qq.com>",
"license": "MIT",
Expand Down
7 changes: 7 additions & 0 deletions packages/weapp-style-injector/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# weapp-style-injector

## 0.0.2-alpha.0

### Patch Changes

- 📦 **Dependencies** [`49e50d8`](https://github.com/sonofmagic/weapp-tailwindcss/commit/49e50d8bde7327d47e9ba649537092ea57bcdf16)
→ `@weapp-tailwindcss/shared@1.1.3-alpha.0`

## 0.0.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/weapp-style-injector/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "weapp-style-injector",
"version": "0.0.1",
"version": "0.0.2-alpha.0",
"description": "weapp-style-injector",
"author": "ice breaker <1324318532@qq.com>",
"license": "MIT",
Expand Down
27 changes: 27 additions & 0 deletions packages/weapp-tailwindcss/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@
# weapp-tailwindcss

## 4.11.0-alpha.0

### Minor Changes

- ✨ **为所有编译插件入口新增 `weappTailwindcss` 别名导出,方便用户统一简写引用:** [#819](https://github.com/sonofmagic/weapp-tailwindcss/pull/819) by @sonofmagic
- `weapp-tailwindcss/webpack` → `UnifiedWebpackPluginV5` 的别名
- `weapp-tailwindcss/webpack4` → `UnifiedWebpackPluginV4` 的别名
- `weapp-tailwindcss/vite` → `UnifiedViteWeappTailwindcssPlugin` 的别名
- `weapp-tailwindcss/gulp` → `createPlugins` 的别名

### Patch Changes

- 🐛 **修复 Vite 集成在 dts 构建阶段替换 postcss 插件时触发的类型递归比较问题,避免 TS2321 与 TS2345 导致构建失败。** [`c8860fa`](https://github.com/sonofmagic/weapp-tailwindcss/commit/c8860fa202e202833f2c503fd7ea53af824a76fe) by @sonofmagic
- 同时升级部分依赖与工作区 catalog 版本(包括 postcss、fs-extra、storybook 等),并同步更新锁文件以保持依赖解析一致性。

- 🐛 **增强多平台热更新回归覆盖,补齐 `uni-app`、`uni-app-vue3-vite`、`mpx` 的 comment-carrier 场景,并新增汇总断言校验 same-class 稳定性、comment-carrier 命中数量与热更新时间指标。** [#819](https://github.com/sonofmagic/weapp-tailwindcss/pull/819) by @sonofmagic
- 修复 `uni-app-vue3-vite` 在 comment-carrier 场景下 marker 无法进入运行时输出导致 watch-hmr 卡住的问题,同时将关键 HMR 用例接入 `E2E Watch` 工作流,确保 PR 与夜间任务都能持续校验多平台热更新链路。

- 🐛 **性能优化:针对 CSS 选择器转换、JS 处理器、WXML 模板处理等热路径进行多项缓存与计算优化。** [`49e50d8`](https://github.com/sonofmagic/weapp-tailwindcss/commit/49e50d8bde7327d47e9ba649537092ea57bcdf16) by @sonofmagic
- JS 处理器:复用 `resolveClassNameTransformWithResult` 返回的 `escapedValue` 避免重复 escape 计算;引入 `getReplacement` 缓存消除重复 `replaceWxml` 调用;移除 `escapeStringRegexp` + `new RegExp` 正则编译开销
- `createJsHandler`:预构建默认 `defaults` 对象,无覆盖选项时跳过 `defuOverrideArray` 合并
- WXML 模板:`templateReplacer` 支持复用模块级 tokenizer 实例;`createTemplateHandler` 预构建 attribute matcher 并传递给 `customTemplateHandler`
- PostCSS fallback 选择器解析:为 `transform` 函数添加 selector 级别缓存,避免重复解析相同选择器
- `splitCode`:为默认和 allowDoubleQuotes 两种模式分别添加结果缓存,预编译分割正则
- 📦 **Dependencies** [`c8860fa`](https://github.com/sonofmagic/weapp-tailwindcss/commit/c8860fa202e202833f2c503fd7ea53af824a76fe)
→ `@weapp-tailwindcss/postcss@2.1.6-alpha.0`, `@weapp-tailwindcss/shared@1.1.3-alpha.0`

## 4.10.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/weapp-tailwindcss/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "weapp-tailwindcss",
"version": "4.10.3",
"version": "4.11.0-alpha.0",
"description": "把 tailwindcss 原子化样式思想,带给小程序开发者们! bring tailwindcss to miniprogram developers!",
"author": "ice breaker <1324318532@qq.com>",
"license": "MIT",
Expand Down
7 changes: 7 additions & 0 deletions packages/wetw/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# wetw

## 0.1.2-alpha.0

### Patch Changes

- 📦 **Dependencies** [`49e50d8`](https://github.com/sonofmagic/weapp-tailwindcss/commit/49e50d8bde7327d47e9ba649537092ea57bcdf16)
→ `@weapp-tailwindcss/shared@1.1.3-alpha.0`

## 0.1.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/wetw/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "wetw",
"type": "module",
"version": "0.1.1",
"version": "0.1.2-alpha.0",
"description": "tsdown bundler template",
"author": "ice breaker <1324318532@qq.com>",
"license": "MIT",
Expand Down