@pluv/platform-node 0.41.6 → 0.42.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 +16 -0
- package/dist/index.d.mts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +7 -7
- package/src/NodePlatform.ts +1 -1
- package/src/createPluvHandler.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.42.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[32m9.47 KB[39m
|
|
12
|
+
[32mESM[39m ⚡️ Build success in 80ms
|
|
13
|
+
[32mCJS[39m [1mdist/index.js [22m[32m11.26 KB[39m
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 80ms
|
|
15
15
|
[34mDTS[39m Build start
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
17
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[32m6.
|
|
18
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m6.
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 5451ms
|
|
17
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m6.50 KB[39m
|
|
18
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m6.50 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @pluv/platform-node
|
|
2
2
|
|
|
3
|
+
## 0.42.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- a47e171: Deprecated `createPluvHandler`. Instead, documentation will be provided on how to host pluv.io yourself on Node.js and Cloudflare Workers.
|
|
8
|
+
- Updated dependencies [cf1529a]
|
|
9
|
+
- @pluv/io@0.42.0
|
|
10
|
+
- @pluv/types@0.42.0
|
|
11
|
+
|
|
12
|
+
## 0.41.7
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- @pluv/io@0.41.7
|
|
17
|
+
- @pluv/types@0.41.7
|
|
18
|
+
|
|
3
19
|
## 0.41.6
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -110,6 +110,10 @@ interface CreatePluvHandlerResult {
|
|
|
110
110
|
handler: RequestHandler;
|
|
111
111
|
wsHandler: WebSocketHandler;
|
|
112
112
|
}
|
|
113
|
+
/**
|
|
114
|
+
* @deprecated Instructions will be provided on https://pluv.io on how to host this yourself instead.
|
|
115
|
+
* @date April 27, 2025
|
|
116
|
+
*/
|
|
113
117
|
declare const createPluvHandler: <TPluvServer extends PluvServer<NodePlatform<any>, any, any, any>>(config: CreatePluvHandlerConfig<TPluvServer>) => CreatePluvHandlerResult;
|
|
114
118
|
|
|
115
119
|
declare const identity: <T extends unknown>(x: T) => T;
|
package/dist/index.d.ts
CHANGED
|
@@ -110,6 +110,10 @@ interface CreatePluvHandlerResult {
|
|
|
110
110
|
handler: RequestHandler;
|
|
111
111
|
wsHandler: WebSocketHandler;
|
|
112
112
|
}
|
|
113
|
+
/**
|
|
114
|
+
* @deprecated Instructions will be provided on https://pluv.io on how to host this yourself instead.
|
|
115
|
+
* @date April 27, 2025
|
|
116
|
+
*/
|
|
113
117
|
declare const createPluvHandler: <TPluvServer extends PluvServer<NodePlatform<any>, any, any, any>>(config: CreatePluvHandlerConfig<TPluvServer>) => CreatePluvHandlerResult;
|
|
114
118
|
|
|
115
119
|
declare const identity: <T extends unknown>(x: T) => T;
|
package/dist/index.js
CHANGED
|
@@ -323,7 +323,7 @@ var NodePlatform = class _NodePlatform extends import_io2.AbstractPlatform {
|
|
|
323
323
|
return new _NodePlatform({
|
|
324
324
|
roomContext: config.roomContext,
|
|
325
325
|
mode: this._config.registrationMode,
|
|
326
|
-
persistence: this.persistence,
|
|
326
|
+
persistence: this.persistence.initialize(config.roomContext),
|
|
327
327
|
pubSub: this.pubSub
|
|
328
328
|
})._initialize();
|
|
329
329
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -288,7 +288,7 @@ var NodePlatform = class _NodePlatform extends AbstractPlatform {
|
|
|
288
288
|
return new _NodePlatform({
|
|
289
289
|
roomContext: config.roomContext,
|
|
290
290
|
mode: this._config.registrationMode,
|
|
291
|
-
persistence: this.persistence,
|
|
291
|
+
persistence: this.persistence.initialize(config.roomContext),
|
|
292
292
|
pubSub: this.pubSub
|
|
293
293
|
})._initialize();
|
|
294
294
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pluv/platform-node",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.42.0",
|
|
4
4
|
"description": "@pluv/io adapter for node.js",
|
|
5
5
|
"author": "leedavidcs",
|
|
6
6
|
"license": "MIT",
|
|
@@ -17,19 +17,19 @@
|
|
|
17
17
|
"access": "public"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@types/node": "^22.
|
|
20
|
+
"@types/node": "^22.15.2",
|
|
21
21
|
"@types/ws": "^8.18.1",
|
|
22
22
|
"path-to-regexp": "^8.2.0",
|
|
23
|
-
"@pluv/io": "^0.
|
|
24
|
-
"@pluv/types": "^0.
|
|
23
|
+
"@pluv/io": "^0.42.0",
|
|
24
|
+
"@pluv/types": "^0.42.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"eslint": "^9.25.
|
|
27
|
+
"eslint": "^9.25.1",
|
|
28
28
|
"tsup": "^8.4.0",
|
|
29
29
|
"typescript": "^5.8.3",
|
|
30
30
|
"ws": "^8.18.1",
|
|
31
|
-
"@pluv/tsconfig": "^0.
|
|
32
|
-
"eslint-config-pluv": "^0.
|
|
31
|
+
"@pluv/tsconfig": "^0.42.0",
|
|
32
|
+
"eslint-config-pluv": "^0.42.0"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"ws": "^8.0.0"
|
package/src/NodePlatform.ts
CHANGED
|
@@ -106,7 +106,7 @@ export class NodePlatform<
|
|
|
106
106
|
return new NodePlatform({
|
|
107
107
|
roomContext: config.roomContext,
|
|
108
108
|
mode: this._config.registrationMode,
|
|
109
|
-
persistence: this.persistence,
|
|
109
|
+
persistence: this.persistence.initialize(config.roomContext),
|
|
110
110
|
pubSub: this.pubSub,
|
|
111
111
|
} as NodePlatformConfig<TMeta>)._initialize() as this;
|
|
112
112
|
}
|
package/src/createPluvHandler.ts
CHANGED
|
@@ -55,6 +55,10 @@ export interface CreatePluvHandlerResult {
|
|
|
55
55
|
wsHandler: WebSocketHandler;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
+
/**
|
|
59
|
+
* @deprecated Instructions will be provided on https://pluv.io on how to host this yourself instead.
|
|
60
|
+
* @date April 27, 2025
|
|
61
|
+
*/
|
|
58
62
|
export const createPluvHandler = <TPluvServer extends PluvServer<NodePlatform<any>, any, any, any>>(
|
|
59
63
|
config: CreatePluvHandlerConfig<TPluvServer>,
|
|
60
64
|
): CreatePluvHandlerResult => {
|