发布日期: 2025-11-02
版本号: v1.31.1

本次更新包含多个功能改进和错误修复。在Schema.LookUpField中添加了基于Namer的列查找功能;修复了结构体标签解析器,允许转义双引号;解决了slog日志记录器调用者帧检测以输出正确源文件的问题;调整了文档中的徽章测试;修复了AutoMigrate中字符串字段默认值比较的错误;避免了UnixSecondSerializer.Value处理无符号整数值时的恐慌;修复了一些注释;并重命名IsValidDBNameChar为IsInvalidDBNameChar。

更新内容 (中文)

变更

  • 在 Schema.LookUpField 中添加基于 Namer 的列查找 @cmmoran (#7619)
  • 修复:允许结构体标签解析器中的转义双引号 @kankankanp (#7631)
  • 修复 slog 日志记录器调用帧检测,以输出正确的源文件 @ifooth (#7610)
  • 文档维护:编辑徽章测试 @Olexandr88 (#7635)
  • 修复 AutoMigrate 字符串字段的默认值比较(问题 #7590)@nowindexman (#7591)
  • 修复 (UnixSecondSerializer.Value):处理无符号整数值时避免 panic @dushaoshuai (#7608)
  • 维护:修复部分注释 @wyrapeseed (#7615)
  • 将 IsValidDBNameChar 重命名为 IsInvalidDBNameChar @mengxunQAQ (#7582)

更新内容 (原始)

Changes

  • Add Namer-based column lookup to Schema.LookUpField @cmmoran (#7619)
  • fix: Allow escaped double quotes in struct tag parser @kankankanp (#7631)
  • Fix slog logger caller frame detection to output correct source file @ifooth (#7610)
  • chore(docs): edited the badge test @Olexandr88 (#7635)
  • Fix AutoMigrate default value comparison for string fields (issue #7590) @nowindexman (#7591)
  • fix(UnixSecondSerializer.Value): Avoid panic when handling unsigned integer values @dushaoshuai (#7608)
  • chore: fix some comments @wyrapeseed (#7615)
  • Rename IsValidDBNameChar to IsInvalidDBNameChar @mengxunQAQ (#7582)

下载链接