From 18af48a0fc22b612f3560d268db6a331b7b31c5c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 29 Dec 2025 11:08:46 +0800 Subject: [PATCH] chore: release packages (#382) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- .changeset/transaction-system.md | 51 --------------------- packages/framework/transaction/CHANGELOG.md | 45 ++++++++++++++++++ packages/framework/transaction/package.json | 2 +- 3 files changed, 46 insertions(+), 52 deletions(-) delete mode 100644 .changeset/transaction-system.md create mode 100644 packages/framework/transaction/CHANGELOG.md diff --git a/.changeset/transaction-system.md b/.changeset/transaction-system.md deleted file mode 100644 index cb7dff56..00000000 --- a/.changeset/transaction-system.md +++ /dev/null @@ -1,51 +0,0 @@ ---- -"@esengine/transaction": minor ---- - -feat(transaction): 添加游戏事务系统 | add game transaction system - -**@esengine/transaction** - 游戏事务系统 | Game transaction system - -### 核心功能 | Core Features - -- **TransactionManager** - 事务生命周期管理 | Transaction lifecycle management - - begin()/run() 创建事务 | Create transactions - - 分布式锁支持 | Distributed lock support - - 自动恢复未完成事务 | Auto-recover pending transactions - -- **TransactionContext** - 事务上下文 | Transaction context - - 操作链式添加 | Chain operation additions - - 上下文数据共享 | Context data sharing - - 超时控制 | Timeout control - -- **Saga 模式** - 补偿式事务 | Compensating transactions - - execute/compensate 成对操作 | Paired execute/compensate - - 自动回滚失败事务 | Auto-rollback on failure - -### 存储实现 | Storage Implementations - -- **MemoryStorage** - 内存存储,用于开发测试 | In-memory for dev/testing -- **RedisStorage** - Redis 分布式锁和缓存 | Redis distributed lock & cache -- **MongoStorage** - MongoDB 持久化事务日志 | MongoDB persistent transaction logs - -### 内置操作 | Built-in Operations - -- **CurrencyOperation** - 货币增减操作 | Currency add/deduct -- **InventoryOperation** - 背包物品操作 | Inventory item operations -- **TradeOperation** - 玩家交易操作 | Player trade operations - -### 分布式事务 | Distributed Transactions - -- **SagaOrchestrator** - 跨服务器 Saga 编排 | Cross-server Saga orchestration -- 完整的 Saga 日志记录 | Complete Saga logging -- 未完成 Saga 恢复 | Incomplete Saga recovery - -### Room 集成 | Room Integration - -- **withTransactions()** - Room mixin 扩展 | Room mixin extension -- **TransactionRoom** - 预配置的事务 Room 基类 | Pre-configured transaction Room base - -### 文档 | Documentation - -- 完整的中英文文档 | Complete bilingual documentation -- 核心概念、存储层、操作、分布式事务 | Core concepts, storage, operations, distributed diff --git a/packages/framework/transaction/CHANGELOG.md b/packages/framework/transaction/CHANGELOG.md new file mode 100644 index 00000000..f405f17a --- /dev/null +++ b/packages/framework/transaction/CHANGELOG.md @@ -0,0 +1,45 @@ +# @esengine/transaction + +## 1.1.0 + +### Minor Changes + +- [#381](https://github.com/esengine/esengine/pull/381) [`d4cef82`](https://github.com/esengine/esengine/commit/d4cef828e1dc1475e8483d40eb1d800c607cf3b6) Thanks [@esengine](https://github.com/esengine)! - feat(transaction): 添加游戏事务系统 | add game transaction system + + **@esengine/transaction** - 游戏事务系统 | Game transaction system + + ### 核心功能 | Core Features + - **TransactionManager** - 事务生命周期管理 | Transaction lifecycle management + - begin()/run() 创建事务 | Create transactions + - 分布式锁支持 | Distributed lock support + - 自动恢复未完成事务 | Auto-recover pending transactions + - **TransactionContext** - 事务上下文 | Transaction context + - 操作链式添加 | Chain operation additions + - 上下文数据共享 | Context data sharing + - 超时控制 | Timeout control + - **Saga 模式** - 补偿式事务 | Compensating transactions + - execute/compensate 成对操作 | Paired execute/compensate + - 自动回滚失败事务 | Auto-rollback on failure + + ### 存储实现 | Storage Implementations + - **MemoryStorage** - 内存存储,用于开发测试 | In-memory for dev/testing + - **RedisStorage** - Redis 分布式锁和缓存 | Redis distributed lock & cache + - **MongoStorage** - MongoDB 持久化事务日志 | MongoDB persistent transaction logs + + ### 内置操作 | Built-in Operations + - **CurrencyOperation** - 货币增减操作 | Currency add/deduct + - **InventoryOperation** - 背包物品操作 | Inventory item operations + - **TradeOperation** - 玩家交易操作 | Player trade operations + + ### 分布式事务 | Distributed Transactions + - **SagaOrchestrator** - 跨服务器 Saga 编排 | Cross-server Saga orchestration + - 完整的 Saga 日志记录 | Complete Saga logging + - 未完成 Saga 恢复 | Incomplete Saga recovery + + ### Room 集成 | Room Integration + - **withTransactions()** - Room mixin 扩展 | Room mixin extension + - **TransactionRoom** - 预配置的事务 Room 基类 | Pre-configured transaction Room base + + ### 文档 | Documentation + - 完整的中英文文档 | Complete bilingual documentation + - 核心概念、存储层、操作、分布式事务 | Core concepts, storage, operations, distributed diff --git a/packages/framework/transaction/package.json b/packages/framework/transaction/package.json index 151dae9f..bcdf9334 100644 --- a/packages/framework/transaction/package.json +++ b/packages/framework/transaction/package.json @@ -1,6 +1,6 @@ { "name": "@esengine/transaction", - "version": "1.0.0", + "version": "1.1.0", "description": "Game transaction system with distributed support | 游戏事务系统,支持分布式事务", "type": "module", "main": "./dist/index.js",