@hzab/list-render 1.12.10 → 1.12.11

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,27 @@
1
1
  # @hzab/list-render@1.12.6
2
2
 
3
+ ## 1.12.11
4
+
5
+ ### Patch Changes
6
+
7
+ - 30f0042: `@hzab/data-model` peer 下限回落至源仓基线 `>=1.7.4`(原 `>=2.0.0`),不再让仍使用 `data-model@1.8.x`
8
+ 的消费方在 `npm install` 阶段直接撞上 ERESOLVE。
9
+
10
+ **根因**:`src/list-render.jsx` 原以**具名导入**取 `isCancel`,而该具名导出自 `@hzab/data-model` 2.0.0 才有。
11
+ 具名导入 1.x 不存在的导出,vite/esbuild 会直接报 `No matching export`(webpack 为 warning),
12
+ 因此当时把下限抬到 `>=2.0.0` 并在 `source-deps-baseline.json` 登记豁免。
13
+
14
+ **取证与修法**(源仓 `data-model` 是独立 git 仓,带版本 tag):
15
+
16
+ - list-render 真正用到的 `getCancelTokenSource` 自 **v1.7.4** 起存在 —— 这正是源仓 `>=1.7.4` 下限的由来;
17
+ - v1.7.4 / v1.8.8 无 `isCancel` 具名导出,但 `export default axios` 是 **axios 本体**(带 `isCancel`);
18
+ - v2.0.0+ 的 default 改为 `axiosDef.create()` 实例(实例上无 `isCancel`),另加具名 `isCancel`。
19
+
20
+ 改为命名空间导入,两代通吃:`dataModelAxios.isCancel || axiosI.isCancel` —— 2.x 走命名空间上的具名导出,
21
+ 1.7.4~1.8.x 走 default(axios 本体)上的 `isCancel`,取消识别不降级、也不再触发打包器告警。
22
+
23
+ **无 API 变更**;`source-deps-baseline.json` 中该条豁免已删除,`docs/source-sync.md` §2.2 同步。
24
+
3
25
  ## 1.12.10
4
26
 
5
27
  ### Patch Changes