Skip to content

Version Packages (next)#837

Open
github-actions[bot] wants to merge 1 commit intomainfrom
changeset-release/main
Open

Version Packages (next)#837
github-actions[bot] wants to merge 1 commit intomainfrom
changeset-release/main

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions bot commented Apr 1, 2026

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

⚠️⚠️⚠️⚠️⚠️⚠️

main is currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, run changeset pre exit on main.

⚠️⚠️⚠️⚠️⚠️⚠️

Releases

@weapp-tailwindcss/merge@2.2.0-next.0

Minor Changes

  • 新增 /slim/lite 子路径入口,优化小程序场景下 tailwind-merge 的包体积。 acc3907 by @sonofmagic
    • /slim:内置精简版冲突分组配置,覆盖小程序常用的布局、Flexbox、Grid、间距、尺寸、排版、背景、边框、效果、变换等类别,开箱即用,体积约 20-23KB。
    • /lite:不包含任何默认配置,仅导出 createTailwindMergetwJoinmergeConfigs 等工厂函数,用户自行提供配置,体积最小(<1KB + tailwind-merge 核心算法)。
    • 现有默认入口(.)行为完全不变,向后兼容。

@weapp-tailwindcss/merge-v3@0.2.0-next.0

Minor Changes

  • 新增 /slim/lite 子路径入口,优化小程序场景下 tailwind-merge 的包体积。 acc3907 by @sonofmagic
    • /slim:内置精简版冲突分组配置,覆盖小程序常用的布局、Flexbox、Grid、间距、尺寸、排版、背景、边框、效果、变换等类别,开箱即用,体积约 20-23KB。
    • /lite:不包含任何默认配置,仅导出 createTailwindMergetwJoinmergeConfigs 等工厂函数,用户自行提供配置,体积最小(<1KB + tailwind-merge 核心算法)。
    • 现有默认入口(.)行为完全不变,向后兼容。

@weapp-tailwindcss/postcss@2.2.0-next.0

Minor Changes

  • 新增 CSS 处理结果 LRU 缓存,对相同内容和配置的 CSS 直接返回缓存结果,跳过 PostCSS 处理流程。 e6d7e8c by @sonofmagic

    • createStyleHandler 内部新增基于 LRU 的结果缓存(最大 256 条目),缓存键由选项指纹 + 内容探测信号 + 内容哈希组成。
    • 使用 FNV-1a 哈希算法计算内容哈希,开销极低(不依赖 crypto 模块)。
    • HMR 场景下相同 CSS 文件的重复处理直接命中缓存,端到端处理速度提升 18~55 倍。
  • 新增 PostCSS 流水线按需裁剪能力,通过轻量级 CSS 内容探测自动跳过不必要的插件。 9a4a836 by @sonofmagic

    • 新增 content-probe 模块,使用正则/字符串匹配快速探测 CSS 内容特征(现代颜色函数、preset-env 特征等)。
    • createStylePipeline 支持可选的 FeatureSignal 参数,根据信号按需跳过 postcss-preset-envcolor-functional-fallback 插件。
    • StyleProcessorCache 将特征信号纳入缓存键计算,确保不同内容特征组合使用正确的处理器。
    • createStyleHandler 自动执行内容探测并传递信号,对外 API 签名不变,零配置即可获得优化。
    • 探测策略采用宽松匹配:宁可误报(多加载插件),不可漏报(遗漏需要的插件),确保处理结果等价。

Patch Changes

  • 🐛 修复 uni-app xuvue/nvue 样式目标会输出宿主不支持 CSS 的问题。 a835a94 by @sonofmagic
    • uvue 目标下过滤非 class selector,避免继续输出 space-x-*space-y-* 这类组合器选择器。
    • uvue 目标下过滤不兼容声明,例如 display: blockdisplay: inline-flexdisplay: gridgrid-template-columnsgapmin-height: 100vh
    • 新增 uniAppX.uvueUnsupported 配置,支持 error | warn | silent,默认 warn
    • 当策略为 warn 时,跳过不兼容 utility 并输出包含 class 名与来源文件的警告,避免 HBuilderX 因非法 CSS 直接报错。

weapp-tailwindcss@4.12.0-next.0

Minor Changes

  • 优化 JS Handler 结果缓存策略,提升 HMR 和 Bundler 场景下的缓存命中率。 790bc9f by @sonofmagic

    • 将缓存淘汰策略从 FIFO 替换为 LRU(复用已有 lru-cache 依赖),缓存上限从 256 提升到 512,确保高频访问的文件不被低频文件驱逐。
    • 使用内容哈希(MD5)替代原始源码字符串作为缓存键,移除 512 字符的源码长度限制,大文件也能被缓存。
    • 移除 Bundler 路径(含 filename/moduleGraph)的缓存排除逻辑,Webpack/Vite/Gulp 调用也能命中结果缓存。
    • 新增选项指纹(Options Fingerprint)机制,将影响转译结果的 16 个字段序列化为唯一标识符,确保不同配置下的缓存正确隔离。
    • 简化选项解析缓存从 4 层 WeakMap 嵌套到 2 层结构,保持引用稳定性。
    • linked(跨文件分析)或 error(解析失败)的结果不缓存,确保数据一致性。
  • 将 JS 快速预检查机制扩展到所有构建器路径(Webpack v5、Webpack v4、Gulp、核心 API)。 ac76d03 by @sonofmagic

    • 新增共享预检查模块 src/js/precheck.ts,通过正则快速判断 JS 文件是否需要转译,跳过不必要的 Babel AST 解析。
    • 原 Vite 专属的 shouldSkipViteJsTransform 改为从共享模块 re-export,保持向后兼容。
    • Webpack v5 的 processAssets 钩子、Webpack v4 的 emit 钩子、Gulp 的 transformJs 流、核心 createContext().transformJs() 均已集成预检查。
    • 新增环境变量 WEAPP_TW_DISABLE_JS_PRECHECK,设置为 '1' 时可禁用预检查,强制所有文件走完整转译流程。
    • 预检查开销极低:211KB 大文件仅需 ~171μs,小文件 <1μs,对需要转译的文件无性能影响。

Patch Changes

  • 🐛 修复 uni-app xuvue/nvue 样式目标会输出宿主不支持 CSS 的问题。 a835a94 by @sonofmagic
    • uvue 目标下过滤非 class selector,避免继续输出 space-x-*space-y-* 这类组合器选择器。
    • uvue 目标下过滤不兼容声明,例如 display: blockdisplay: inline-flexdisplay: gridgrid-template-columnsgapmin-height: 100vh
    • 新增 uniAppX.uvueUnsupported 配置,支持 error | warn | silent,默认 warn
    • 当策略为 warn 时,跳过不兼容 utility 并输出包含 class 名与来源文件的警告,避免 HBuilderX 因非法 CSS 直接报错。
  • 📦 Dependencies a835a94
    @weapp-tailwindcss/postcss@2.2.0-next.0

@weapp-tailwindcss/ui@0.0.8-next.0

Patch Changes

  • 📦 Dependencies acc3907
    @weapp-tailwindcss/merge@2.2.0-next.0, @weapp-tailwindcss/variants@0.2.2-next.0

@weapp-tailwindcss/variants@0.2.2-next.0

Patch Changes

  • 📦 Dependencies acc3907
    @weapp-tailwindcss/merge@2.2.0-next.0

@weapp-tailwindcss/variants-v3@0.1.2-next.0

Patch Changes

  • 📦 Dependencies acc3907
    @weapp-tailwindcss/merge-v3@0.2.0-next.0

vite-native@1.0.20-next.0

Patch Changes

  • 📦 Dependencies acc3907
    @weapp-tailwindcss/merge@2.2.0-next.0

benchmark-tailwindcss3@0.0.9-next.0

Patch Changes

  • 📦 Dependencies acc3907
    @weapp-tailwindcss/merge-v3@0.2.0-next.0, @weapp-tailwindcss/variants-v3@0.1.2-next.0

benchmark-tailwindcss4@0.0.7-next.0

Patch Changes

  • 📦 Dependencies acc3907
    @weapp-tailwindcss/merge@2.2.0-next.0, @weapp-tailwindcss/variants@0.2.2-next.0

@weapp-tailwindcss/build-all@0.0.25-next.0

Patch Changes

  • 📦 Dependencies a835a94
    @weapp-tailwindcss/postcss@2.2.0-next.0, weapp-tailwindcss@4.12.0-next.0

@weapp-tailwindcss/website@1.0.18-next.0

Patch Changes

  • 📦 Dependencies acc3907
    @weapp-tailwindcss/merge@2.2.0-next.0, @weapp-tailwindcss/variants@0.2.2-next.0

@github-actions github-actions bot force-pushed the changeset-release/main branch 11 times, most recently from 2539f63 to e9ccf03 Compare April 3, 2026 08:14
@github-actions github-actions bot force-pushed the changeset-release/main branch 5 times, most recently from 9c035d5 to 4019d50 Compare April 14, 2026 14:52
@sonarqubecloud
Copy link
Copy Markdown

@github-actions github-actions bot force-pushed the changeset-release/main branch from 4019d50 to 62b0021 Compare April 14, 2026 15:17
@github-actions github-actions bot changed the title Version Packages Version Packages (next) Apr 14, 2026
@github-actions github-actions bot force-pushed the changeset-release/main branch 2 times, most recently from 400ea84 to e428c53 Compare April 14, 2026 15:30
@github-actions github-actions bot force-pushed the changeset-release/main branch from e428c53 to fc0dea6 Compare April 14, 2026 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants