diff --git a/docs/changelog.md b/docs/changelog.md index 709a19b9..89297f7a 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -4,6 +4,30 @@ --- +## v2.3.2 (2025-12-08) + +### Features + +- **微信小游戏 Worker 支持**: 添加对微信小游戏平台 Worker 的完整支持 (#297) + - 新增 `workerScriptPath` 配置项,支持预编译 Worker 脚本路径 + - 修复微信小游戏 Worker 消息格式差异(`res` 直接是数据,无需 `.data`) + - 适用于微信小游戏等不支持动态脚本的平台 + +### New Package + +- **@esengine/worker-generator** `v1.0.0`: CLI 工具,从 `WorkerEntitySystem` 子类自动生成 Worker 文件 + - 自动扫描并提取 `workerProcess` 方法体 + - 支持 `--wechat` 模式,使用 TypeScript 编译器转换为 ES5 语法 + - 读取代码中的 `workerScriptPath` 配置,生成到指定路径 + - 生成 `worker-mapping.json` 映射文件 + +### Documentation + +- 更新 Worker 系统文档,添加微信小游戏支持章节 +- 新增英文版 Worker 系统文档 (`docs/en/guide/worker-system.md`) + +--- + ## v2.3.1 (2025-12-07) ### Bug Fixes diff --git a/docs/en/changelog.md b/docs/en/changelog.md index 11746197..e9f35524 100644 --- a/docs/en/changelog.md +++ b/docs/en/changelog.md @@ -4,6 +4,30 @@ This document records the version update history of the `@esengine/ecs-framework --- +## v2.3.2 (2025-12-08) + +### Features + +- **WeChat Mini Game Worker Support**: Add complete Worker support for WeChat Mini Game platform (#297) + - New `workerScriptPath` config option for pre-compiled Worker script path + - Fix WeChat Mini Game Worker message format difference (`res` is data directly, no `.data` wrapper) + - Applicable to WeChat Mini Game and other platforms that don't support dynamic scripts + +### New Package + +- **@esengine/worker-generator** `v1.0.0`: CLI tool to auto-generate Worker files from `WorkerEntitySystem` subclasses + - Automatically scan and extract `workerProcess` method body + - Support `--wechat` mode, use TypeScript compiler to convert to ES5 syntax + - Read `workerScriptPath` config from code, generate to specified path + - Generate `worker-mapping.json` mapping file + +### Documentation + +- Updated Worker system documentation with WeChat Mini Game support section +- Added English Worker system documentation (`docs/en/guide/worker-system.md`) + +--- + ## v2.3.1 (2025-12-07) ### Bug Fixes diff --git a/packages/core/package.json b/packages/core/package.json index 0a2de490..5b25503d 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@esengine/ecs-framework", - "version": "2.3.0", + "version": "2.3.2", "description": "用于Laya、Cocos Creator等JavaScript游戏引擎的高性能ECS框架", "main": "bin/index.js", "types": "bin/index.d.ts",