@fluojs/websockets 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.ko.md CHANGED
@@ -122,7 +122,9 @@ Gateway `@OnMessage()` handler는 지원 런타임 전반에서 하나의 정규
122
122
 
123
123
  ## 런타임별 서브패스
124
124
 
125
- 기본 루트 Node.js alias 대신 런타임을 명시적으로 고정하고 싶다면 런타임별 서브패스를 사용하세요. 서브패스는 해당 `*WebSocketModule.forRoot(...)` 진입점과 일치하는 런타임 lifecycle service export제공합니다.
125
+ 기본 루트 Node.js alias 대신 런타임을 명시적으로 고정하고 싶다면 런타임별 서브패스를 사용하세요. 루트 `@fluojs/websockets` 진입점은 Node.js 기본 module과 lifecycle-service alias유지합니다. Fetch-style 애플리케이션은 게이트웨이 데코레이터와 metadata helper를 선택한 런타임 서브패스에서 import할 수 있으므로 authoring code가 루트 Node.js 기반 진입점을 로드할 필요가 없습니다.
126
+
127
+ 각 서브패스는 해당 `*WebSocketModule.forRoot(...)` 진입점, 일치하는 런타임 lifecycle service export, 그리고 공유 gateway authoring primitive인 `WebSocketGateway`, `OnConnect`, `OnMessage`, `OnDisconnect`, `defineWebSocketGatewayMetadata`, `getWebSocketGatewayMetadata`, `defineWebSocketHandlerMetadata`, `getWebSocketHandlerMetadata`, `getWebSocketHandlerMetadataEntries`, `webSocketGatewayMetadataSymbol`, `webSocketHandlerMetadataSymbol`을 제공합니다.
126
128
 
127
129
  | 런타임 | 서브패스 | 모듈 | Lifecycle service |
128
130
  | --- | --- | --- | --- |
@@ -131,6 +133,10 @@ Gateway `@OnMessage()` handler는 지원 런타임 전반에서 하나의 정규
131
133
  | Deno | `@fluojs/websockets/deno` | `DenoWebSocketModule` | `DenoWebSocketGatewayLifecycleService` |
132
134
  | Workers | `@fluojs/websockets/cloudflare-workers` | `CloudflareWorkersWebSocketModule` | `CloudflareWorkersWebSocketGatewayLifecycleService` |
133
135
 
136
+ ```typescript
137
+ import { BunWebSocketModule, OnMessage, WebSocketGateway } from '@fluojs/websockets/bun';
138
+ ```
139
+
134
140
  ## 예제 소스
135
141
 
136
142
  - `packages/websockets/src/module.test.ts`
package/README.md CHANGED
@@ -122,7 +122,9 @@ Gateway `@OnMessage()` handlers receive one normalized payload contract across s
122
122
 
123
123
  ## Runtime-Specific Subpaths
124
124
 
125
- Use the runtime subpaths when you want an explicit runtime binding instead of the default root Node.js alias. Each subpath exposes its `*WebSocketModule.forRoot(...)` entrypoint plus the matching runtime lifecycle service export.
125
+ Use the runtime subpaths when you want an explicit runtime binding instead of the default root Node.js alias. The root `@fluojs/websockets` entrypoint preserves the Node.js default module and lifecycle-service aliases. Fetch-style applications can import gateway decorators and metadata helpers from their selected runtime subpath so authoring code does not need to load the root Node.js-backed entrypoint.
126
+
127
+ Each subpath exposes its `*WebSocketModule.forRoot(...)` entrypoint, the matching runtime lifecycle service export, and the shared gateway authoring primitives: `WebSocketGateway`, `OnConnect`, `OnMessage`, `OnDisconnect`, `defineWebSocketGatewayMetadata`, `getWebSocketGatewayMetadata`, `defineWebSocketHandlerMetadata`, `getWebSocketHandlerMetadata`, `getWebSocketHandlerMetadataEntries`, `webSocketGatewayMetadataSymbol`, and `webSocketHandlerMetadataSymbol`.
126
128
 
127
129
  | Runtime | Subpath | Module | Lifecycle service |
128
130
  | --- | --- | --- | --- |
@@ -131,6 +133,10 @@ Use the runtime subpaths when you want an explicit runtime binding instead of th
131
133
  | Deno | `@fluojs/websockets/deno` | `DenoWebSocketModule` | `DenoWebSocketGatewayLifecycleService` |
132
134
  | Workers | `@fluojs/websockets/cloudflare-workers` | `CloudflareWorkersWebSocketModule` | `CloudflareWorkersWebSocketGatewayLifecycleService` |
133
135
 
136
+ ```typescript
137
+ import { BunWebSocketModule, OnMessage, WebSocketGateway } from '@fluojs/websockets/bun';
138
+ ```
139
+
134
140
  ## Example Sources
135
141
 
136
142
  - `packages/websockets/src/module.test.ts`
package/dist/bun.d.ts CHANGED
@@ -1,2 +1,4 @@
1
+ export * from './decorators.js';
2
+ export * from './metadata.js';
1
3
  export * from './bun/bun.js';
2
4
  //# sourceMappingURL=bun.d.ts.map
package/dist/bun.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"bun.d.ts","sourceRoot":"","sources":["../src/bun.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"bun.d.ts","sourceRoot":"","sources":["../src/bun.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC"}
package/dist/bun.js CHANGED
@@ -1 +1,3 @@
1
+ export * from './decorators.js';
2
+ export * from './metadata.js';
1
3
  export * from './bun/bun.js';
@@ -1,2 +1,4 @@
1
+ export * from './decorators.js';
2
+ export * from './metadata.js';
1
3
  export * from './cloudflare-workers/cloudflare-workers.js';
2
4
  //# sourceMappingURL=cloudflare-workers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cloudflare-workers.d.ts","sourceRoot":"","sources":["../src/cloudflare-workers.ts"],"names":[],"mappings":"AAAA,cAAc,4CAA4C,CAAC"}
1
+ {"version":3,"file":"cloudflare-workers.d.ts","sourceRoot":"","sources":["../src/cloudflare-workers.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,4CAA4C,CAAC"}
@@ -1 +1,3 @@
1
+ export * from './decorators.js';
2
+ export * from './metadata.js';
1
3
  export * from './cloudflare-workers/cloudflare-workers.js';
package/dist/deno.d.ts CHANGED
@@ -1,2 +1,4 @@
1
+ export * from './decorators.js';
2
+ export * from './metadata.js';
1
3
  export * from './deno/deno.js';
2
4
  //# sourceMappingURL=deno.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"deno.d.ts","sourceRoot":"","sources":["../src/deno.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"deno.d.ts","sourceRoot":"","sources":["../src/deno.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC"}
package/dist/deno.js CHANGED
@@ -1 +1,3 @@
1
+ export * from './decorators.js';
2
+ export * from './metadata.js';
1
3
  export * from './deno/deno.js';
package/dist/node.d.ts CHANGED
@@ -1,2 +1,4 @@
1
+ export * from './decorators.js';
2
+ export * from './metadata.js';
1
3
  export * from './node/node.js';
2
4
  //# sourceMappingURL=node.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC"}
package/dist/node.js CHANGED
@@ -1 +1,3 @@
1
+ export * from './decorators.js';
2
+ export * from './metadata.js';
1
3
  export * from './node/node.js';
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "realtime",
10
10
  "upgrade"
11
11
  ],
12
- "version": "1.0.5",
12
+ "version": "1.0.6",
13
13
  "private": false,
14
14
  "license": "MIT",
15
15
  "repository": {
@@ -70,17 +70,17 @@
70
70
  "dependencies": {
71
71
  "ws": "^8.18.3",
72
72
  "@fluojs/core": "^1.0.3",
73
- "@fluojs/runtime": "^1.1.6",
74
- "@fluojs/http": "^1.1.0",
75
- "@fluojs/di": "^1.1.0"
73
+ "@fluojs/di": "^1.1.0",
74
+ "@fluojs/http": "^1.1.1",
75
+ "@fluojs/runtime": "^1.1.7"
76
76
  },
77
77
  "devDependencies": {
78
78
  "@types/ws": "^8.18.1",
79
79
  "vitest": "^3.2.4",
80
- "@fluojs/platform-express": "^1.0.5",
81
- "@fluojs/platform-bun": "^1.0.5",
82
- "@fluojs/testing": "^1.0.5",
83
- "@fluojs/platform-fastify": "^1.0.6"
80
+ "@fluojs/platform-bun": "^1.0.6",
81
+ "@fluojs/platform-express": "^1.0.6",
82
+ "@fluojs/platform-fastify": "^1.0.7",
83
+ "@fluojs/testing": "^1.0.5"
84
84
  },
85
85
  "scripts": {
86
86
  "prebuild": "node ../../tooling/scripts/clean-dist.mjs",