### 2.0.0
版本变更 # Seata-go 2.0.0 Seata-go 2.0.0 已发布。 Seata-go 是一个易于使用、高性能的开源分布式事务解决方案。 本版本更新内容如下: ## 新增特性(feature): - [[#761](https://github.com/apache/incubator-seata-go/pull/761)] 支持 Update join。 - [[#806](https://github.com/apache/incubator-seata-go/pull/806)] 新增 Release Drafter 配置文件。 - [[#659](https://github.com/apache/incubator-seata-go/pull/659)] 为 AT undo log 支持压缩。 - [[#574](https://github.com/apache/incubator-seata-go/pull/574)] 支持基于文件(file)和 Nacos 的服务注册。 - [[#584](https://github.com/apache/incubator-seata-go/pull/584)] 在 remoting 模块中支持 ConsistentHash 负载均衡策略。 - [[#585](https://github.com/apache/incubator-seata-go/pull/585)] 在 remoting 模块中支持 LeastActive 负载均衡策略。 - [[#605](https://github.com/apache/incubator-seata-go/pull/605)] 支持 Etcd 的服务发现。 - [[#622](https://github.com/apache/incubator-seata-go/pull/622)] 为远程调用新增轮询(round robin)策略。 - [[#691](https://github.com/apache/incubator-seata-go/pull/691)] 支持 protobuf 格式的 undo log 解析器。 - [[#738](https://github.com/apache/incubator-seata-go/pull/738)] 在发送心跳消息失败时移除会话。 - [[#739](https://github.com/apache/incubator-seata-go/pull/739)] 支持表元数据缓存的自动刷新功能。 ## 修复(bugfix): - [[#877](https://github.com/apache/incubator-seata-go/pull/857)] 删除 metadatacache 的 uppertablenamekey,并在 tablemeta 中增加 uppertablename 字段。 - [[#861](https://github.com/apache/incubator-seata-go/pull/861)] 更新 README 中的项目图标。 - [[#834](https://github.com/apache/incubator-seata-go/pull/834)] 解决引入多个版本 knadh 导致的冲突问题。 - [[#839](https://github.com/apache/incubator-seata-go/pull/839)] 修复 Action 错误。 - [[#850](https://github.com/apache/incubator-seata-go/pull/850)] 修复删除类 SQL 的表解析失败问题。 - [[#823](https://github.com/apache/incubator-seata-go/pull/823)] 移除 issue 翻译工作流。 - [[#820](https://github.com/apache/incubator-seata-go/pull/820)] 修复由通用库引起的潜在安全漏洞。 - [[#810](https://github.com/apache/incubator-seata-go/pull/810)] 修复在使用 queryContext 时导致事务失败的问题。 - [[#813](https://github.com/apache/incubator-seata-go/pull/813)] 为若干文件添加许可头。 - [[#771](https://github.com/apache/incubator-seata-go/pull/771)] 修复 MySQL `INSERT ... ON DUPLICATE UPDATE` 在大小写敏感场景下匹配不正确的问题。 - [[#797](https://github.com/apache/incubator-seata-go/pull/797)] 为部分文件添加 ASF 头。 - [[#781](https://github.com/apache/incubator-seata-go/pull/781)] 修复因表名大小写混合导致相同记录出现不同 lowkeys 的问题。 - [[#780](https://github.com/apache/incubator-seata-go/pull/780)] 修复无法通过 JSON 解码 MySQL `TEXT` 类型的 ColumnImage 的问题。 - [[#782](https://github.com/apache/incubator-seata-go/pull/782)] 修复无法通过 JSON 解码 MySQL `TEXT` 类型的 ColumnImage 的问题(重复修复项)。 - [[#789](https://github.com/apache/incubator-seata-go/pull/789)] 在 NOTICE 中添加 2025 年。 - [[#776](https://github.com/apache/incubator-seata-go/pull/776)] 修复 CI lint 类型检查错误。 - [[#540](https://github.com/apache/incubator-seata-go/pull/540)] 修复初始化 XA 时的 panic 错误。 - [[#590](https://github.com/apache/incubator-seata-go/pull/590)] 修复若干仓库错误。 - [[#595](https://github.com/apache/incubator-seata-go/pull/595)] 在提交(commit)或回滚(rollback)时检查响应错误是否为 nil。 - [[#607](https://github.com/apache/incubator-seata-go/pull/607)] 修复 Jackson 序列化的相关 bug。 - [[#665](https://github.com/apache/incubator-seata-go/pull/665)] 回收心跳响应消息,以避免 GettyRemoting.future 的内存泄漏。 - [[#672](https://github.com/apache/incubator-seata-go/pull/672)] 修复 AT 回滚的错误。 - [[#674](https://github.com/apache/incubator-seata-go/pull/674)] 修复 XA 回滚的错误。 - [[#690](https://github.com/apache/incubator-seata-go/pull/690)] 修复 AT undo log 的 Jackson 解析器未找到的问题。 - [[#701](https://github.com/apache/incubator-seata-go/pull/701)] 修复 InsertOnDuplicateUpdate 绕过主键修改所导致的问题。 - [[#717](https://github.com/apache/incubator-seata-go/pull/717)] 支持 XA 向 TC 报告状态。 - [[#724](https://github.com/apache/incubator-seata-go/pull/724)] 为 SQL 解析器支持 ParenthesesExpr(括号表达式)。 - [[#736](https://github.com/apache/incubator-seata-go/pull/736)] 修复 SQL 语句未正确关闭的问题。 - [[#743](https://github.com/apache/incubator-seata-go/pull/743)] 修复 gomonkey 相关的 bug。 - [[#749](https://github.com/apache/incubator-seata-go/pull/749)] 修复心跳相关的 bug。 ## 优化(optimize): - [[#837](https://github.com/apache/incubator-seata-go/pull/837)] 优化 AT 模型中构建锁键的性能。 - [[#824](https://github.com/apache/incubator-seata-go/pull/824)] 更新 Makefile 中的 SHA256 校验命令以兼容跨平台。 - [[#777](https://github.com/apache/incubator-seata-go/pull/777)] 优化事务超时判断逻辑。 - [[#786](https://github.com/apache/incubator-seata-go/pull/786)] 支持 IPv6。 - [[#802](https://github.com/apache/incubator-seata-go/pull/802)] 在连接中支持获取数据库版本。 - [[#745](https://github.com/apache/incubator-seata-go/pull/745)] 优化 fence 日志的每日删除策略。 - [[#767](https://github.com/apache/incubator-seata-go/pull/767)] 升级若干依赖包以消除对部分已归档仓库的依赖。 - [[#768](https://github.com/apache/incubator-seata-go/pull/768)] 将解析器更新至 v0.2.17。 - [[#576](https://github.com/apache/incubator-seata-go/pull/576)] 在 CI 中使用 mirromutth/mysql-action 替换 icomponent/mysql-action。 - [[#594](https://github.com/apache/incubator-seata-go/pull/594)] 优化分支提交处理器的日志。 - [[#621](https://github.com/apache/incubator-seata-go/pull/621)] 为 CI 添加 CodeQL。 - [[#631](https://github.com/apache/incubator-seata-go/pull/631)] 将 crypto 版本从 0.9.0 升级至 0.17.0。 - [[#652](https://github.com/apache/incubator-seata-go/pull/652)] 将 gRPC 版本从 1.51.0 升级至 1.56.3。 - [[#667](https://github.com/apache/incubator-seata-go/pull/667)] 将 issue 与 pull request 的邮箱由 dev 更改为 notifications。 - [[#678](https://github.com/apache/incubator-seata-go/pull/678)] 将模块名重命名为 `seata.apache.org/seata-go`。 - [[#679](https://github.com/apache/incubator-seata-go/pull/679)] 将 getty 版本从 1.4.9 升级至 1.4.10。 - [[#714](https://github.com/apache/incubator-seata-go/pull/714)] 优化构建锁键的速度。 - [[#719](https://github.com/apache/incubator-seata-go/pull/719)] 在 AT 执行 INSERT SQL 时仅保存被插入的字段。 - [[#721](https://github.com/apache/incubator-seata-go/pull/721)] 修复翻译机器人不可用的问题。 - [[#758](https://github.com/apache/incubator-seata-go/pull/758)] 移除未使用的文件。 ## 测试(test): - [[#570](https://github.com/apache/incubator-seata-go/pull/570)] 添加 collection 单元测试。 - [[#571](https://github.com/apache/incubator-seata-go/pull/571)] 添加 convert 单元测试。 - [[#572](https://github.com/apache/incubator-seata-go/pull/572)] 添加 reflectx 单元测试。 - [[#5835f0](https://github.com/apache/incubator-seata-go/commit/5835f09ecfd6edeb04c2961163bc4460f578e942)] 添加 random loadbalance 单元测试。 - [[#599](https://github.com/apache/incubator-seata-go/pull/599)] 添加 xid loadbalance 单元测试。 ## 文档(doc): - [[#844](https://github.com/apache/incubator-seata-go/pull/844)] 丰富项目 README。 - [[#760](https://github.com/apache/incubator-seata-go/pull/760)] V2.0.0 发布更新器。 - [[#614](https://github.com/apache/incubator-seata-go/pull/614)] 升级具有未知许可证的依赖。 - [[#632](https://github.com/apache/incubator-seata-go/pull/632)] 添加 ASF 基本配置。 - [[#633](https://github.com/apache/incubator-seata-go/pull/633)] 优化 ASF 基本配置以移除上下文检查。 - [[#644](https://github.com/apache/incubator-seata-go/pull/644)] 优化 README 文件。 - [[#686](https://github.com/apache/incubator-seata-go/pull/686)] 在 CI 中添加更多 linter。 - [[#737](https://github.com/apache/incubator-seata-go/pull/737)] 修改 README 并更新当前已完成的工作项。 - [[#756](https://github.com/apache/incubator-seata-go/pull/756)] 更新许可检查器。 ## 贡献者(contributors): 感谢以下贡献者的代码提交。若有遗漏请告知。 - [luky116](https://github.com/luky116) - [Code-Fight](https://github.com/Code-Fight) - [wt-better](https://github.com/wt-better) - [luweiqianyi](https://github.com/luweiqianyi) - [wang1309](https://github.com/wang1309) - [576470954](https://github.com/576470954) - [No-SilverBullet](https://github.com/No-SilverBullet) - [solisamicus](https://github.com/solisamicus) - [marsevilspirit](https://github.com/marsevilspirit) - [lxfeng1997](https://github.com/lxfeng1997) - [AlexStocks](https://github.com/AlexStocks) - [smiletrl](https://github.com/smiletrl) - [ptyin](https://github.com/ptyin) - [yizhibian](https://github.com/yizhibian) - [oldmee](https://github.com/oldmee) - [air-3](https://github.com/air-3) - [slievrly](https://github.com/slievrly) - [xjlgod](https://github.com/xjlgod) - [baerwang](https://github.com/baerwang) - [xyombo](https://github.com/xyombo) - [testwill](https://github.com/testwill) - [jasondeng1997](https://github.com/jasondeng1997) - [jsbxyyx](https://github.com/jsbxyyx) - [iSuperCoder](https://github.com/iSuperCoder) - [georgehao](https://github.com/georgehao) - [liuyuecai](https://github.com/liuyuecai) - [106umao](https://github.com/106umao) - [FinnTew](https://github.com/FinnTew) - [funky-eyes](https://github.com/funky-eyes) - [tanzegen](https://github.com/tanzegen) - [lovepoem](https://github.com/lovepoem) - [MinatoWu](https://github.com/MinatoWu) - [LucienShen-Liu](https://github.com/LucienShen-Liu) - [panlei-coder](https://github.com/panlei-coder) - [lixingjia77](https://github.com/lixingjia77) - [Road2Melon](https://github.com/Road2Melon) - [Similarityoung](https://github.com/Similarityoung) - [YvCeung](https://github.com/YvCeung) - [pjfanning](https://github.com/pjfanning) - [hokkine](https://github.com/hokkine) - [zhangymPerson](https://github.com/zhangymPerson) - [ForestLH](https://github.com/ForestLH) 此外,我们从社区收到了许多有价值的问题、提问与建议,特此致谢。