@pluv/platform-node 0.21.0 → 0.22.0
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/.turbo/turbo-build.log +8 -8
- package/CHANGELOG.md +15 -0
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -0
- package/dist/index.mjs +3 -0
- package/package.json +5 -5
- package/src/NodePlatform.ts +1 -1
- package/src/NodeWebSocket.ts +4 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @pluv/platform-node@0.
|
|
2
|
+
> @pluv/platform-node@0.22.0 build /home/runner/work/pluv/pluv/packages/platform-node
|
|
3
3
|
> tsup src/index.ts --format esm,cjs --dts
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
[34mCLI[39m Target: es6
|
|
9
9
|
[34mESM[39m Build start
|
|
10
10
|
[34mCJS[39m Build start
|
|
11
|
-
[
|
|
12
|
-
[
|
|
13
|
-
[
|
|
14
|
-
[
|
|
11
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m7.63 KB[39m
|
|
12
|
+
[32mESM[39m ⚡️ Build success in 102ms
|
|
13
|
+
[32mCJS[39m [1mdist/index.js [22m[32m9.40 KB[39m
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 102ms
|
|
15
15
|
[34mDTS[39m Build start
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
17
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[32m3.
|
|
18
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m3.
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 4150ms
|
|
17
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m3.60 KB[39m
|
|
18
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m3.60 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @pluv/platform-node
|
|
2
2
|
|
|
3
|
+
## 0.22.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [650e577]
|
|
8
|
+
- @pluv/io@0.22.0
|
|
9
|
+
- @pluv/types@0.22.0
|
|
10
|
+
|
|
11
|
+
## 0.21.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- @pluv/io@0.21.1
|
|
16
|
+
- @pluv/types@0.21.1
|
|
17
|
+
|
|
3
18
|
## 0.21.0
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -12,6 +12,7 @@ declare class NodeWebSocket extends AbstractWebSocket<WebSocket> {
|
|
|
12
12
|
get readyState(): 0 | 1 | 2 | 3;
|
|
13
13
|
get sessionId(): string;
|
|
14
14
|
get state(): WebSocketSerializedState;
|
|
15
|
+
set state(state: WebSocketSerializedState);
|
|
15
16
|
constructor(webSocket: WebSocket, config: NodeWebSocketConfig);
|
|
16
17
|
addEventListener<TType extends keyof AbstractEventMap>(type: TType, handler: AbstractListener<TType>): void;
|
|
17
18
|
close(code?: number | undefined, reason?: string | undefined): void;
|
|
@@ -34,7 +35,7 @@ declare class NodePlatform extends AbstractPlatform<NodeWebSocket> {
|
|
|
34
35
|
acceptWebSocket(webSocket: NodeWebSocket): Promise<void>;
|
|
35
36
|
convertWebSocket(webSocket: WebSocket, config: ConvertWebSocketConfig): NodeWebSocket;
|
|
36
37
|
getLastPing(webSocket: NodeWebSocket): number | null;
|
|
37
|
-
getSerializedState(webSocket:
|
|
38
|
+
getSerializedState(webSocket: WebSocket): WebSocketSerializedState | null;
|
|
38
39
|
getSessionId(webSocket: WebSocket): string | null;
|
|
39
40
|
getWebSockets(): readonly WebSocket[];
|
|
40
41
|
initialize(config: AbstractPlatformConfig<{}, {}>): this;
|
package/dist/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ declare class NodeWebSocket extends AbstractWebSocket<WebSocket> {
|
|
|
12
12
|
get readyState(): 0 | 1 | 2 | 3;
|
|
13
13
|
get sessionId(): string;
|
|
14
14
|
get state(): WebSocketSerializedState;
|
|
15
|
+
set state(state: WebSocketSerializedState);
|
|
15
16
|
constructor(webSocket: WebSocket, config: NodeWebSocketConfig);
|
|
16
17
|
addEventListener<TType extends keyof AbstractEventMap>(type: TType, handler: AbstractListener<TType>): void;
|
|
17
18
|
close(code?: number | undefined, reason?: string | undefined): void;
|
|
@@ -34,7 +35,7 @@ declare class NodePlatform extends AbstractPlatform<NodeWebSocket> {
|
|
|
34
35
|
acceptWebSocket(webSocket: NodeWebSocket): Promise<void>;
|
|
35
36
|
convertWebSocket(webSocket: WebSocket, config: ConvertWebSocketConfig): NodeWebSocket;
|
|
36
37
|
getLastPing(webSocket: NodeWebSocket): number | null;
|
|
37
|
-
getSerializedState(webSocket:
|
|
38
|
+
getSerializedState(webSocket: WebSocket): WebSocketSerializedState | null;
|
|
38
39
|
getSessionId(webSocket: WebSocket): string | null;
|
|
39
40
|
getWebSockets(): readonly WebSocket[];
|
|
40
41
|
initialize(config: AbstractPlatformConfig<{}, {}>): this;
|
package/dist/index.js
CHANGED
|
@@ -176,6 +176,9 @@ var NodeWebSocket = class extends import_io.AbstractWebSocket {
|
|
|
176
176
|
get state() {
|
|
177
177
|
return this._state;
|
|
178
178
|
}
|
|
179
|
+
set state(state) {
|
|
180
|
+
this._state = state;
|
|
181
|
+
}
|
|
179
182
|
constructor(webSocket, config) {
|
|
180
183
|
const { room } = config;
|
|
181
184
|
super(webSocket, config);
|
package/dist/index.mjs
CHANGED
|
@@ -142,6 +142,9 @@ var NodeWebSocket = class extends AbstractWebSocket {
|
|
|
142
142
|
get state() {
|
|
143
143
|
return this._state;
|
|
144
144
|
}
|
|
145
|
+
set state(state) {
|
|
146
|
+
this._state = state;
|
|
147
|
+
}
|
|
145
148
|
constructor(webSocket, config) {
|
|
146
149
|
const { room } = config;
|
|
147
150
|
super(webSocket, config);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pluv/platform-node",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"description": "@pluv/io adapter for node.js",
|
|
5
5
|
"author": "leedavidcs",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,16 +20,16 @@
|
|
|
20
20
|
"@types/node": "^22.2.0",
|
|
21
21
|
"@types/ws": "^8.5.12",
|
|
22
22
|
"path-to-regexp": "^7.1.0",
|
|
23
|
-
"@pluv/io": "^0.
|
|
24
|
-
"@pluv/types": "^0.
|
|
23
|
+
"@pluv/io": "^0.22.0",
|
|
24
|
+
"@pluv/types": "^0.22.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"eslint": "^8.57.0",
|
|
28
28
|
"tsup": "^8.2.4",
|
|
29
29
|
"typescript": "^5.5.4",
|
|
30
30
|
"ws": "^8.18.0",
|
|
31
|
-
"@pluv/tsconfig": "^0.
|
|
32
|
-
"eslint-config-pluv": "^0.
|
|
31
|
+
"@pluv/tsconfig": "^0.22.0",
|
|
32
|
+
"eslint-config-pluv": "^0.22.0"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"ws": "^8.0.0"
|
package/src/NodePlatform.ts
CHANGED
|
@@ -42,7 +42,7 @@ export class NodePlatform extends AbstractPlatform<NodeWebSocket> {
|
|
|
42
42
|
return null;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
public getSerializedState(webSocket:
|
|
45
|
+
public getSerializedState(webSocket: WebSocket): WebSocketSerializedState | null {
|
|
46
46
|
return null;
|
|
47
47
|
}
|
|
48
48
|
|
package/src/NodeWebSocket.ts
CHANGED
|
@@ -40,6 +40,10 @@ export class NodeWebSocket extends AbstractWebSocket<WebSocket> {
|
|
|
40
40
|
return this._state;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
+
public set state(state: WebSocketSerializedState) {
|
|
44
|
+
this._state = state;
|
|
45
|
+
}
|
|
46
|
+
|
|
43
47
|
constructor(webSocket: WebSocket, config: NodeWebSocketConfig) {
|
|
44
48
|
const { room } = config;
|
|
45
49
|
|