@calcit/procs 0.13.65 → 0.13.66
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/.yarn/install-state.gz +0 -0
- package/editing-history/202608301729-dynamic-nominal-method-receiver.md +17 -0
- package/editing-history/202608301737-review-dynamic-method-kind.md +15 -0
- package/editing-history/202608301742-release-01366.md +11 -0
- package/lib/package.json +1 -1
- package/package.json +1 -1
package/.yarn/install-state.gz
CHANGED
|
Binary file
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Dynamic nominal method receiver diagnostics / Dynamic nominal method 接收者诊断
|
|
2
|
+
|
|
3
|
+
## 中文
|
|
4
|
+
|
|
5
|
+
- 修复 #527:当 postfix Option/Result method(如 `.unwrap-or`)的接收者仍为 `Dynamic` 时,预处理器不再静默回退为普通参数调用。
|
|
6
|
+
- 新增 `W_DYNAMIC_NOMINAL_METHOD_RECEIVER`,要求先通过 schema/assertion 收窄接收者;有意保留的 Dynamic 边界可显式使用对应 `option:*` / `result:*` 函数。
|
|
7
|
+
- 诊断只覆盖 Option/Result 的 nominal container methods,其他 Dynamic postfix methods 继续由现有 `--warn-dyn-method` / `analyze dynamic-methods` 策略审计,避免无关兼容性扩大。
|
|
8
|
+
- 补充单元测试、完整 snippet 预处理回归,以及 upgrade/polymorphism 文档。
|
|
9
|
+
- 验证通过:strict rustfmt/clippy、全部 Rust tests、Calcit core 223/223、native/JS/IR/WASM、Agent interface 17/17;使用新编译器检查最新 copyboard 与 calcium-workflow main 均通过。
|
|
10
|
+
|
|
11
|
+
## English
|
|
12
|
+
|
|
13
|
+
- Fix #527: when a postfix Option/Result method such as `.unwrap-or` still has a `Dynamic` receiver, preprocessing no longer silently falls back to treating the method token as an ordinary argument.
|
|
14
|
+
- Add `W_DYNAMIC_NOMINAL_METHOD_RECEIVER`, requiring a schema/assertion-based narrowing step; an intentionally Dynamic boundary may explicitly call the corresponding `option:*` / `result:*` function.
|
|
15
|
+
- Scope the unconditional diagnostic to nominal Option/Result container methods. Other Dynamic postfix methods remain under the existing `--warn-dyn-method` / `analyze dynamic-methods` policy to avoid broad unrelated compatibility changes.
|
|
16
|
+
- Add a unit regression, a full snippet preprocessing regression, and upgrade/polymorphism documentation.
|
|
17
|
+
- Verification passes strict rustfmt/clippy, all Rust tests, Calcit core 223/223, native/JS/IR/WASM, and Agent interface 17/17; the new compiler also checks the latest copyboard and calcium-workflow main branches successfully.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Review: keep JS member kinds outside nominal methods / Review:区分 JS member 与 nominal method
|
|
2
|
+
|
|
3
|
+
## 中文
|
|
4
|
+
|
|
5
|
+
- 根据 PR #530 review,将 `W_DYNAMIC_NOMINAL_METHOD_RECEIVER` 严格限制为普通 `MethodKind::Invoke`。
|
|
6
|
+
- `.-field` 与 `.!method` 即使命名碰巧是 `unwrap-or`,也属于 JavaScript property/native operation,不应按 Option/Result method 诊断。
|
|
7
|
+
- 增加 Access/InvokeNative 反例测试,并将文档中的 `option:*` / `result:*` 明确描述为 Dynamic 边界支持的低层 API;类型化代码仍优先使用 method。
|
|
8
|
+
- 目标测试、strict clippy 与格式检查通过。
|
|
9
|
+
|
|
10
|
+
## English
|
|
11
|
+
|
|
12
|
+
- Follow PR #530 review by restricting `W_DYNAMIC_NOMINAL_METHOD_RECEIVER` to ordinary `MethodKind::Invoke` calls.
|
|
13
|
+
- `.-field` and `.!method` remain JavaScript property/native operations even when their names happen to be `unwrap-or`; they must not be diagnosed as Option/Result methods.
|
|
14
|
+
- Add Access/InvokeNative negative regressions and describe `option:*` / `result:*` as supported lower-level Dynamic-boundary APIs while retaining method syntax as the typed-code preference.
|
|
15
|
+
- Targeted tests, strict clippy, and formatting checks pass.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Release 0.13.66 / 发布 0.13.66
|
|
2
|
+
|
|
3
|
+
## 中文
|
|
4
|
+
|
|
5
|
+
- 发布 Calcit 0.13.66,包含 #530 / #527 的 Dynamic Option/Result method 接收者检查期诊断。
|
|
6
|
+
- 同步更新 Cargo crate 与 `@calcit/procs` 版本;功能变更已通过完整 Rust、Calcit、JS、IR、WASM、Agent 与真实 copyboard/calcium-workflow 回归。
|
|
7
|
+
|
|
8
|
+
## English
|
|
9
|
+
|
|
10
|
+
- Release Calcit 0.13.66 with the preprocessing diagnostic for Dynamic Option/Result method receivers from #530 / #527.
|
|
11
|
+
- Keep the Cargo crate and `@calcit/procs` versions aligned; the feature change passed the full Rust, Calcit, JS, IR, WASM, Agent, and real copyboard/calcium-workflow regressions.
|
package/lib/package.json
CHANGED