YHH
b95a46edaf
fix(workspace): add devtools to root workspaces config ( #428 )
...
Changesets uses package.json workspaces field, not pnpm-workspace.yaml.
This was causing the node-editor package to not be found during publish.
2026-01-03 01:23:26 +08:00
yhh
b38fe5ebf4
docs(editor): improve editor-app build documentation and add build:rapier2d script
...
- Add `pnpm build:rapier2d` command to automate Rapier2D WASM build process
- Fix gen-src.mjs path to correctly locate thirdparty/rapier.js
- Update init.ts to work with new wasm-pack web target (auto-initialization)
- Fix behavior-tree-editor build config for asset-system dependency
- Update README_CN.md and README.md with simplified build instructions
2025-12-30 22:33:06 +08:00
YHH
7940f581a6
feat(rpc,network): 新增 RPC 库并迁移网络模块 ( #364 )
...
* feat(rpc,network): 新增 RPC 库并迁移网络模块
## @esengine/rpc (新增)
- 新增类型安全的 RPC 库,支持 WebSocket 通信
- 新增 RpcClient 类:connect/disconnect, call/send/on/off/once 方法
- 新增 RpcServer 类:Node.js WebSocket 服务端
- 新增编解码系统:支持 JSON 和 MessagePack
- 新增 TextEncoder/TextDecoder polyfill,兼容微信小游戏平台
- 新增 WebSocketAdapter 接口,支持跨平台 WebSocket 抽象
## @esengine/network (重构)
- 重构 NetworkService:拆分为 RpcService 基类和 GameNetworkService
- 新增 gameProtocol:类型安全的 API 和消息定义
- 新增类型安全便捷方法:sendInput(), onSync(), onSpawn(), onDespawn()
- 更新 NetworkPlugin 使用新的服务架构
- 移除 TSRPC 依赖,改用 @esengine/rpc
## 文档
- 新增 RPC 模块文档(中英文)
- 更新 Network 模块文档(中英文)
- 更新侧边栏导航
* fix(network,cli): 修复 CI 构建和更新 CLI 适配器
## 修复
- 在 tsconfig.build.json 添加 rpc 引用,修复类型声明生成
## CLI 更新
- 更新 nodejs 适配器使用新的 @esengine/rpc
- 生成的服务器代码使用 RpcServer 替代旧的 GameServer
- 添加 ws 和 @types/ws 依赖
- 更新 README 模板中的客户端连接示例
* chore: 添加 CLI changeset
* fix(ci): add @esengine/rpc to build and check scripts
- Add rpc package to CI build step (must build before network)
- Add rpc to type-check:framework, lint:framework, test:ci:framework
* fix(rpc,network): fix tsconfig for declaration generation
- Remove composite mode from rpc (not needed, causes CI issues)
- Remove rpc from network project references (resolves via node_modules)
- Remove unused references from network tsconfig.build.json
2025-12-28 10:54:51 +08:00
YHH
d57a007a42
docs: split Entity docs into sub-modules and fix Starlight CI ( #362 )
...
* docs: split Entity docs into sub-modules and fix Starlight CI
- Split monolithic entity.md into 4 focused sub-documents:
- guide/entity/index.md - Overview and basic concepts
- guide/entity/component-operations.md - Component API operations
- guide/entity/entity-handle.md - EntityHandle system for safe references
- guide/entity/lifecycle.md - Lifecycle and persistence management
- Created bilingual versions (Chinese and English)
- Updated sidebar configuration in astro.config.mjs
- Fixed CI workflow for Starlight migration:
- Updated docs.yml to upload from docs/dist instead of .vitepress/dist
- Updated package.json scripts to use pnpm filter for docs
- Added docs directory to pnpm-workspace.yaml
- Renamed docs package to @esengine/docs
- Documented missing Entity APIs:
- createComponent() method
- addComponents() batch method
- getComponentByType() with inheritance support
- markDirty() for change detection
* docs: split Network docs and fix API errors
- Split network module into focused sub-documents:
- modules/network/index.md - Overview and quick start
- modules/network/client.md - Client-side usage
- modules/network/server.md - Server-side GameServer/Room
- modules/network/sync.md - Interpolation and prediction
- modules/network/api.md - Complete API reference
- Fixed incorrect API documentation:
- localClientId → clientId
- ENetworkState enum values (strings → numbers)
- connect() method signature
- Removed non-existent localPlayerId property
- Fixed onConnected callback signature
- Created bilingual versions (Chinese and English)
- Updated sidebar configuration
- Updated pnpm-lock.yaml for docs workspace
2025-12-27 13:28:49 +08:00
YHH
31fd34b221
fix: update Laya examples, add CLI docs, fix changesets workflow ( #340 )
...
* fix: update Laya examples, add CLI docs, fix changesets workflow
- Update Laya examples to use Laya 3.x Script pattern (@regClass)
- Add CLI tool quick start section to README (npx @esengine/cli init)
- Fix changesets workflow to only build framework packages
- Remove unnecessary Rust/WASM build steps from changesets workflow
- Remove redundant 'pnpm build' from changeset:publish script
* docs: add CLI documentation and update Laya examples
- Add CLI quick start section to getting-started.md (zh/en)
- Update Laya examples to use Laya 3.x Script pattern
2025-12-26 16:37:37 +08:00
YHH
155411e743
refactor: reorganize package structure and decouple framework packages ( #338 )
...
* refactor: reorganize package structure and decouple framework packages
## Package Structure Reorganization
- Reorganized 55 packages into categorized subdirectories:
- packages/framework/ - Generic framework (Laya/Cocos compatible)
- packages/engine/ - ESEngine core modules
- packages/rendering/ - Rendering modules (WASM dependent)
- packages/physics/ - Physics modules
- packages/streaming/ - World streaming
- packages/network-ext/ - Network extensions
- packages/editor/ - Editor framework and plugins
- packages/rust/ - Rust WASM engine
- packages/tools/ - Build tools and SDK
## Framework Package Decoupling
- Decoupled behavior-tree and blueprint packages from ESEngine dependencies
- Created abstracted interfaces (IBTAssetManager, IBehaviorTreeAssetContent)
- ESEngine-specific code moved to esengine/ subpath exports
- Framework packages now usable with Cocos/Laya without ESEngine
## CI Configuration
- Updated CI to only type-check and lint framework packages
- Added type-check:framework and lint:framework scripts
## Breaking Changes
- Package import paths changed due to directory reorganization
- ESEngine integrations now use subpath imports (e.g., '@esengine/behavior-tree/esengine')
* fix: update es-engine file path after directory reorganization
* docs: update README to focus on framework over engine
* ci: only build framework packages, remove Rust/WASM dependencies
* fix: remove esengine subpath from behavior-tree and blueprint builds
ESEngine integration code will only be available in full engine builds.
Framework packages are now purely engine-agnostic.
* fix: move network-protocols to framework, build both in CI
* fix: update workflow paths from packages/core to packages/framework/core
* fix: exclude esengine folder from type-check in behavior-tree and blueprint
* fix: update network tsconfig references to new paths
* fix: add test:ci:framework to only test framework packages in CI
* fix: only build core and math npm packages in CI
* fix: exclude test files from CodeQL and fix string escaping security issue
2025-12-26 14:50:35 +08:00
YHH
54038e3250
feat: 配置 changesets 版本管理和自动发布 ( #336 )
...
- 安装 @changesets/cli 和 @changesets/changelog-github
- 配置 .changeset/config.json
- 添加 npm scripts
- 创建 release-changesets.yml GitHub Action
2025-12-25 23:07:44 +08:00
yhh
ad96edfad0
fix: 恢复 @esengine/ecs-framework 包名
...
上一个提交错误地将 npm 包名也改了,这里恢复正确的包名。
只更新 GitHub 仓库 URL,不改变 npm 包名。
2025-12-08 21:26:35 +08:00
yhh
240b165970
chore: 更新仓库 URL (ecs-framework → esengine)
...
仓库已从 esengine/ecs-framework 重命名为 esengine/esengine
更新所有引用旧 URL 的文件
2025-12-08 21:23:37 +08:00
YHH
63f006ab62
feat: 添加跨平台运行时、资产系统和UI适配功能 ( #256 )
...
* feat(platform-common): 添加WASM加载器和环境检测API
* feat(rapier2d): 新增Rapier2D WASM绑定包
* feat(physics-rapier2d): 添加跨平台WASM加载器
* feat(asset-system): 添加运行时资产目录和bundle格式
* feat(asset-system-editor): 新增编辑器资产管理包
* feat(editor-core): 添加构建系统和模块管理
* feat(editor-app): 重构浏览器预览使用import maps
* feat(platform-web): 添加BrowserRuntime和资产读取
* feat(engine): 添加材质系统和着色器管理
* feat(material): 新增材质系统和着色器编辑器
* feat(tilemap): 增强tilemap编辑器和动画系统
* feat(modules): 添加module.json配置
* feat(core): 添加module.json和类型定义更新
* chore: 更新依赖和构建配置
* refactor(plugins): 更新插件模板使用ModuleManifest
* chore: 添加第三方依赖库
* chore: 移除BehaviourTree-ai和ecs-astar子模块
* docs: 更新README和文档主题样式
* fix: 修复Rust文档测试和添加rapier2d WASM绑定
* fix(tilemap-editor): 修复画布高DPI屏幕分辨率适配问题
* feat(ui): 添加UI屏幕适配系统(CanvasScaler/SafeArea)
* fix(ecs-engine-bindgen): 添加缺失的ecs-framework-math依赖
* fix: 添加缺失的包依赖修复CI构建
* fix: 修复CodeQL检测到的代码问题
* fix: 修复构建错误和缺失依赖
* fix: 修复类型检查错误
* fix(material-system): 修复tsconfig配置支持TypeScript项目引用
* fix(editor-core): 修复Rollup构建配置添加tauri external
* fix: 修复CodeQL检测到的代码问题
* fix: 修复CodeQL检测到的代码问题
2025-12-03 22:15:22 +08:00
YHH
b42a7b4e43
Feature/editor optimization ( #251 )
...
* refactor: 编辑器/运行时架构拆分与构建系统升级
* feat(core): 层级系统重构与UI变换矩阵修复
* refactor: 移除 ecs-components 聚合包并修复跨包组件查找问题
* fix(physics): 修复跨包组件类引用问题
* feat: 统一运行时架构与浏览器运行支持
* feat(asset): 实现浏览器运行时资产加载系统
* fix: 修复文档、CodeQL安全问题和CI类型检查错误
* fix: 修复文档、CodeQL安全问题和CI类型检查错误
* fix: 修复文档、CodeQL安全问题、CI类型检查和测试错误
* test: 补齐核心模块测试用例,修复CI构建配置
* fix: 修复测试用例中的类型错误和断言问题
* fix: 修复 turbo build:npm 任务的依赖顺序问题
* fix: 修复 CI 构建错误并优化构建性能
2025-12-01 22:28:51 +08:00
YHH
a3f7cc38b1
Feature/render pipeline ( #232 )
...
* refactor(engine): 重构2D渲染管线坐标系统
* feat(engine): 完善2D渲染管线和编辑器视口功能
* feat(editor): 实现Viewport变换工具系统
* feat(editor): 优化Inspector渲染性能并修复Gizmo变换工具显示
* feat(editor): 实现Run on Device移动预览功能
* feat(editor): 添加组件属性控制和依赖关系系统
* feat(editor): 实现动画预览功能和优化SpriteAnimator编辑器
* feat(editor): 修复SpriteAnimator动画预览功能并迁移CI到pnpm
* feat(editor): 修复SpriteAnimator动画预览并迁移到pnpm
* feat(editor): 修复SpriteAnimator动画预览并迁移到pnpm
* feat(editor): 修复SpriteAnimator动画预览并迁移到pnpm
* feat(editor): 修复SpriteAnimator动画预览并迁移到pnpm
* feat(ci): 迁移项目到pnpm并修复CI构建问题
* chore: 迁移CI工作流到pnpm并添加WASM构建支持
* chore: 迁移CI工作流到pnpm并添加WASM构建支持
* chore: 迁移CI工作流到pnpm并添加WASM构建支持
* chore: 迁移CI工作流到pnpm并添加WASM构建支持
* chore: 迁移CI工作流到pnpm并添加WASM构建支持
* chore: 迁移CI工作流到pnpm并添加WASM构建支持
* chore: 移除 network 相关包
* chore: 移除 network 相关包
2025-11-23 14:49:37 +08:00
YHH
c58e3411fd
feat(core): 启用 TypeScript 最严格的类型检查 ( #199 )
...
* feat(core): 启用 TypeScript 最严格的类型检查
* ci: 配置 Codecov 以适应类型安全改进
* fix(core): 修复 CodeQL 安全警告
* fix(core): eslint.config.mjs
2025-10-31 16:14:23 +08:00
YHH
2df501ec07
ci: 添加自动化工具提升项目质量
2025-10-18 22:32:39 +08:00
YHH
f4e3505d52
规范项目标准,更改为MIT协议
2025-10-18 21:48:44 +08:00
YHH
e04ac7c909
所有源代码文件使用 LF (Unix 风格)
...
prettier格式化
eslint代码质量检查
2025-10-16 20:24:45 +08:00
YHH
62bc6b547e
支持wx/browser的worker(由于wx限制默认不开启worker)
2025-09-29 13:21:08 +08:00
YHH
66dc9780b9
使用coi-serviceworker用于无法控制标头的情况
2025-09-28 21:11:17 +08:00
YHH
dedb91379f
worker系统不支持sab回退到普通worker
2025-09-28 20:22:06 +08:00
YHH
413ce93b31
更新文档
2025-09-28 12:26:51 +08:00
YHH
9f76d37a82
更新network库及core库优化
2025-08-12 09:39:07 +08:00
YHH
7daf352a25
更新库rollup配置
2025-08-11 10:25:28 +08:00
YHH
6a49f6a534
npm包发布配置更改
2025-08-11 10:03:19 +08:00
YHH
edc60fc3d8
添加发布core命令
2025-08-11 09:15:14 +08:00
YHH
1361fd8a90
导出soa装饰器
2025-08-11 09:01:01 +08:00
YHH
ea8523be35
使用Lerna 和 monorepo管理项目结构
2025-08-07 13:29:12 +08:00
YHH
8cfba4a166
新增protobuf依赖(为网络和序列化做准备)
...
更新readme
2025-08-06 17:04:02 +08:00
YHH
51e6bba2a7
2.1.29
2025-08-06 09:56:55 +08:00
YHH
01fa33e122
新增soastorage存储器
2025-07-30 14:14:04 +08:00
YHH
0411aa9aef
2.1.28
2025-07-30 11:14:26 +08:00
YHH
4c11fdc176
2.1.27
2025-07-29 16:10:09 +08:00
YHH
0edb2738a1
优化IdentifierPool - 世代式ID池管理器
2025-07-18 14:59:00 +08:00
YHH
d2b4455205
2.1.26
2025-07-07 11:49:57 +08:00
YHH
037c3d6a05
2.1.25
2025-07-02 23:49:28 +08:00
YHH
5596ba634e
2.1.24
2025-07-02 23:49:02 +08:00
YHH
6bd9c1055c
2.1.23
2025-07-01 11:48:41 +08:00
YHH
d29c9a96f4
新增热更新后台管理系统
2025-06-19 18:32:32 +08:00
YHH
37d75c3281
2.1.22
2025-06-19 15:43:48 +08:00
YHH
73a882f75e
2.1.21
2025-06-19 15:01:20 +08:00
YHH
e6789e49e4
2.1.20
2025-06-17 07:35:46 +08:00
YHH
1b5363611d
新增cocos-debug-profiler
2025-06-17 00:32:16 +08:00
YHH
d9ef0b587e
2.1.19
2025-06-16 09:36:59 +08:00
YHH
efcceaa898
2.1.18
2025-06-12 09:47:44 +08:00
YHH
e4aad11965
update readme
2025-06-12 09:47:25 +08:00
YHH
47207fad52
2.1.17
2025-06-12 09:44:05 +08:00
YHH
abb23a3c02
2.1.16
2025-06-10 13:12:22 +08:00
YHH
ef023d27bf
2.1.15
2025-06-10 09:50:05 +08:00
YHH
7a591825eb
先移除wasm后续再通过其他方式接入
2025-06-10 09:49:55 +08:00
YHH
e6ce8995ba
2.1.14
2025-06-09 18:01:34 +08:00
YHH
757eff2937
2.1.13
2025-06-09 15:55:26 +08:00