Compare commits

...

2 Commits

Author SHA1 Message Date
github-actions[bot]
838cda91aa chore: release packages (#375)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-12-28 14:11:27 +08:00
YHH
a000cc07d7 feat(rpc): export RpcClient from main entry point (#374) 2025-12-28 14:09:16 +08:00
7 changed files with 37 additions and 3 deletions

View File

@@ -1,5 +1,12 @@
# @esengine/network # @esengine/network
## 2.1.1
### Patch Changes
- Updated dependencies [[`a000cc0`](https://github.com/esengine/esengine/commit/a000cc07d7cebe8ccbfa983fde610296bfba2f1b)]:
- @esengine/rpc@1.1.1
## 2.1.0 ## 2.1.0
### Minor Changes ### Minor Changes

View File

@@ -1,6 +1,6 @@
{ {
"name": "@esengine/network", "name": "@esengine/network",
"version": "2.1.0", "version": "2.1.1",
"description": "Network synchronization for multiplayer games", "description": "Network synchronization for multiplayer games",
"esengine": { "esengine": {
"plugin": true, "plugin": true,

View File

@@ -1,5 +1,21 @@
# @esengine/rpc # @esengine/rpc
## 1.1.1
### Patch Changes
- [#374](https://github.com/esengine/esengine/pull/374) [`a000cc0`](https://github.com/esengine/esengine/commit/a000cc07d7cebe8ccbfa983fde610296bfba2f1b) Thanks [@esengine](https://github.com/esengine)! - feat: export RpcClient and connect from main entry point
Re-export `RpcClient`, `connect`, and related types from the main entry point for better compatibility with bundlers (Cocos Creator, Vite, etc.) that may have issues with subpath exports.
```typescript
// Now works in all environments:
import { rpc, RpcClient, connect } from '@esengine/rpc';
// Subpath import still supported:
import { RpcClient } from '@esengine/rpc/client';
```
## 1.1.0 ## 1.1.0
### Minor Changes ### Minor Changes

View File

@@ -1,6 +1,6 @@
{ {
"name": "@esengine/rpc", "name": "@esengine/rpc",
"version": "1.1.0", "version": "1.1.1",
"description": "Elegant type-safe RPC library for ESEngine", "description": "Elegant type-safe RPC library for ESEngine",
"type": "module", "type": "module",
"main": "./dist/index.js", "main": "./dist/index.js",

View File

@@ -40,3 +40,7 @@
export { rpc } from './define' export { rpc } from './define'
export * from './types' export * from './types'
// Re-export client for browser/bundler compatibility
export { RpcClient, connect } from './client/index'
export type { RpcClientOptions, WebSocketAdapter, WebSocketFactory } from './client/index'

View File

@@ -1,5 +1,12 @@
# @esengine/server # @esengine/server
## 1.1.4
### Patch Changes
- Updated dependencies [[`a000cc0`](https://github.com/esengine/esengine/commit/a000cc07d7cebe8ccbfa983fde610296bfba2f1b)]:
- @esengine/rpc@1.1.1
## 1.1.3 ## 1.1.3
### Patch Changes ### Patch Changes

View File

@@ -1,6 +1,6 @@
{ {
"name": "@esengine/server", "name": "@esengine/server",
"version": "1.1.3", "version": "1.1.4",
"description": "Game server framework for ESEngine with file-based routing", "description": "Game server framework for ESEngine with file-based routing",
"type": "module", "type": "module",
"main": "./dist/index.js", "main": "./dist/index.js",