@hzab/list-render 1.12.5 → 1.12.8

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/CHANGELOG.md CHANGED
@@ -1,5 +1,102 @@
1
+ # @hzab/list-render@1.12.6
2
+
3
+ ## 1.12.8
4
+
5
+ ### Patch Changes
6
+
7
+ - bb45682: 移除 `package.json` 的 `"type": "module"`,修复 webpack 消费方「升级即构建失败」。
8
+
9
+ **症状**:消费方用 webpack 构建时报一批 `Module not found`,并附带
10
+
11
+ ```
12
+ BREAKING CHANGE: The request '@hzab/utils/src/upload/ossUpload' failed to resolve only because
13
+ it was resolved as fully specified … The extension in the request is mandatory for it to be fully specified.
14
+ ```
15
+
16
+ **根因**:`"type": "module"` 让包内 `.js` 文件被 webpack 判为 **strict ESM**(`javascript/esm`,默认
17
+ `fullySpecified: true`)⇒ 这些文件里**所有省略扩展名的 import 都必须带扩展名**。而本仓源码大量使用
18
+ 无扩展名 import(`@hzab/utils/src/upload/ossUpload`、`./formily-utils`、`dayjs/plugin/advancedFormat` …)。
19
+
20
+ **关键事实**:这个字段是**本仓迁移时新增的**——源仓各包 `package.json` **都没有** `type`,消费线既有的
21
+ 老版本(`utils@1.1.6` / `form-render@1.7.17` / `list-render@1.12.1` …)也都没有。所以老消费方一直正常,
22
+ 只有升级到本仓版本的项目才撞上(webpack 5.111 实测复现)。
23
+
24
+ **改动**:**12 个 src 直出包**移除该字段,恢复到与源仓一致的语义(webpack 回落到 `javascript/auto`,
25
+ 无扩展名 import 照常解析)。**3 个 dist 发布包**(`biz-utils` / `formily-utils` / `data-model-core`)**保留**
26
+ 该字段——它们的 `exports` 直接引用 `./dist/index.cjs` / `./dist/index.js`,而 tsup 的输出扩展名受此字段影响。
27
+
28
+ **验证**:`check-package` 20 包全绿;`pnpm build` 18/18;`pnpm typecheck` 27/27;playground 模块图冒烟
29
+ (171 模块)通过。产物命名:vite 包(`createLibraryViteConfig` 硬编码 `index.cjs`)不变;tsup 包 ESM 由
30
+ `index.js` 变为 `index.mjs`,但无任何 `exports`/`main` 引用它,`types: ./dist/index.d.ts` 仍在。
31
+
32
+ **消费方提示**:升级到本版本前若暂时无法升级,可在 webpack 配置加
33
+ `{ test: /\.m?js$/, include: /[\\/]node_modules[\\/]@hzab[\\/]/, resolve: { fullySpecified: false } }` 兜底。
34
+ - Updated dependencies [bb45682]
35
+ - @hzab/utils@1.1.9
36
+ - @hzab/data-model@2.0.5
37
+ - @hzab/form-render@1.7.21
38
+ - @hzab/schema-descriptions@1.3.5
39
+ - @hzab/edit-table@0.1.7
40
+ - @hzab/formily-result-utils@1.2.6
41
+
42
+ ## 1.12.7
43
+
44
+ ### Patch Changes
45
+
46
+ - 0617135: 把源仓声明为 `peerDependencies` 的内部依赖整体回退(**12 处 / 7 个包**):由 `dependencies`
47
+ 改为 `peerDependencies` + `devDependencies`。
48
+
49
+ **为什么**:把这类包声明为 `dependencies` 会让 pnpm 为依赖方单独解析出一份实例(其 peer
50
+ 组合与消费方顶层那份不同),消费方在包根配置的模块级全局状态随之分裂:
51
+
52
+ - `@hzab/data-model`:axios `baseURL` / 401 路由守卫(`setAxios` / `setAxRequest` /
53
+ `setAxResponse`)对该包发出的请求**静默失效**——构建照常通过,只有运行期丢配置;
54
+ - `@hzab/utils`:`src/globalConfig.ts` 全局配置读写各持一份;
55
+ - `@hzab/form-render`:formily 全局组件注册表 / `formRenderPCGlobalServeConfig` 不同步。
56
+
57
+ **回归来源**:本仓迁移时按「跨包依赖统一改 `dependencies`」(`docs/iteration-publish-upgrade.md`
58
+ §13.7,动机是让 turbo `^build` 建边)把源仓的 peer 声明几乎全部改成了 deps。消费方实测:
59
+ `@hzab/utils` 降回 1.1.6 即恢复(1.1.6 声明为 peer)。
60
+
61
+ **turbo 建边不受影响**:`devDependencies` 同样让 turbo 建 `^build` 边——实测 `turbo run build
62
+ --dry` 中 `@hzab/list-render#build` 的 `Dependencies` 仍含全部 6 个 workspace 依赖,
63
+ `@hzab/data-model#build` 的 `Dependents` 含 `@hzab/utils#build`。
64
+
65
+ 架构已固化(§6.6):`MODULE_SINGLETON_PACKAGES`(A 类,不可 dist 化)+ `PEER_REQUIRED_PACKAGES`
66
+ (B 类,不得进 `dependencies`)/ `checkPeerRequiredNotInDependencies()` 全仓拦截;源仓参照规则
67
+ 见 `docs/source-sync.md` §2.1。
68
+
69
+ **peer 范围允许 1.x**(不强制升到 data-model 2.x):`@hzab/utils` 为 `>=1.2.0`(与 1.1.6 一致),
70
+ `@hzab/list-render` / `@hzab/list-render-mobile` / `@hzab/form-render-mobile` 为 `>=1.7.4`,其余
71
+ 为本仓原有下限。装 `data-model` 1.8.x 的消费方无需升级即可平滑升级本包。
72
+
73
+ **消费方注意**:升级后请确认这些内部依赖在 `node_modules` 中只有**一份**(如
74
+ `pnpm why @hzab/data-model`)——多版本并存(如 1.8.8 与 2.0.x)会触发同样的静默失效,排查方法见
75
+ `docs/consumer-access.md` §7。
76
+ - Updated dependencies [0617135]
77
+ - @hzab/utils@1.1.8
78
+ - @hzab/form-render@1.7.20
79
+ - @hzab/edit-table@0.1.6
80
+ - @hzab/schema-descriptions@1.3.4
81
+
82
+ chore: 本仓迁移版本首次发布(源码直出 `main: "src"` + 类型入口调整)
83
+
84
+ - `FilterTag` 去掉对自身的引用,改由 `@hzab/utils/src/formily/field` 提供
85
+ - 跨包依赖由 `peerDependencies` 调整为 `dependencies`(修正构建顺序)
86
+ - 组件运行时行为与 1.12.5 保持一致
87
+
1
88
  # @hzab/list-render@1.12.5
2
89
 
90
+ feat: 同步源仓 filterTag 优化(过滤空值项、同步 1.12.5)
91
+
92
+ # @hzab/list-render@1.12.4
93
+
94
+ ## 1.12.3-alpha.3
95
+
96
+ ### Patch Changes
97
+
98
+ - 测试发布流程
99
+
3
100
  feat: 新增 filterTag 配置
4
101
 
5
102
  # @hzab/list-render@1.12.3
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 CaiYansong
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.