Skip to content

postcss-pxtrans@1.0.0

Choose a tag to compare

@github-actions github-actions released this 18 Dec 08:50
· 68 commits to main since this release

Major Changes

  • 524f957 Thanks @sonofmagic! - 优化 pxtrans 性能:缓存默认 rootValue 计算、复用正则与选择器黑名单匹配结果,减少每次声明的重复开销,并记录新的基准数据。

Patch Changes

  • a93567c Thanks @sonofmagic! - Extract common utilities into postcss-plugin-shared and refactor related plugins to reuse them.

  • 92f38a5 Thanks @sonofmagic! - 提炼并统一多个插件的公共能力到 postcss-plugin-shared:

    • 新增 createUnitRegex(可配置单位/跳过规则)并用其生成默认的 pxRegex/remRegex
    • 新增 createAdvancedPropListMatcher 支持 pxtrans 的高级 propList 语法(包含/排除、前后缀、contains)
    • 新增 maybeBlacklistedSelector(非字符串 selector 返回 undefined)
    • 新增 createConfigGetter 用于构建 getConfig(基于 mergeOptions,数组覆盖而非合并)
  • Updated dependencies [a93567c, 92f38a5]:

    • postcss-plugin-shared@1.0.0