Skip to content

保持用户过滤的输入输出类型关系 - #87

Merged
tiye merged 1 commit into
mainfrom
improve/twig-user-type
Nov 21, 2026
Merged

tiye merged 1 commit into
mainfrom
improve/twig-user-type

Conversation

@tiye

@tiye tiye commented Nov 21, 2026

Copy link
Copy Markdown
Member

用户影响

用户数据仍按原样过滤密码字段,现有数据格式和运行行为不变。调用方使用具体值类型的 Map 时,类型检查现在能够保留该类型。

改动

  • 将 twig-user 的输入和输出关联为同一个泛型值类型,替代两处 Dynamic;函数实现不变。
  • 保留现有类型门禁和协议。默认入口所选动态类型指标从 51 降至 49。

验证

  • Calcit 0.44:服务端与页面完整 strict、dynamic-method 和 deprecated-call 检查通过;原工作流列出的 62 个服务端和 105 个页面定义检查通过。
  • 6 项 Calcit 测试、26 项 Node 测试、服务端和页面编译及前端生产构建通过。

风险

本次只调整类型声明,未修改密码过滤或运行时代码;CI 将继续验证原工作流。

@tiye
tiye merged commit 2b7dd50 into main Nov 21, 2026
1 check passed
@tiye
tiye deleted the improve/twig-user-type branch November 21, 2026 15:17
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.

1 participant