@pluv/client 0.27.0 → 0.28.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 +7 -0
- package/dist/index.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +5 -0
- package/dist/index.mjs +5 -0
- package/package.json +5 -5
- package/src/PluvClient.ts +6 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @pluv/client@0.
|
|
2
|
+
> @pluv/client@0.28.0 build /home/runner/work/pluv/pluv/packages/client
|
|
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[32m46.50 KB[39m
|
|
12
|
+
[32mESM[39m ⚡️ Build success in 141ms
|
|
13
|
+
[32mCJS[39m [1mdist/index.js [22m[32m47.76 KB[39m
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 141ms
|
|
15
15
|
[34mDTS[39m Build start
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
17
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[
|
|
18
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 3500ms
|
|
17
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m22.06 KB[39m
|
|
18
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m22.06 KB[39m
|
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -317,6 +317,9 @@ declare class PluvClient<TIO extends IOLike = IOLike, TPresence extends JsonObje
|
|
|
317
317
|
private _presence?;
|
|
318
318
|
private _wsEndpoint;
|
|
319
319
|
private _rooms;
|
|
320
|
+
get _defs(): {
|
|
321
|
+
initialStorage: AbstractCrdtDocFactory<TStorage> | undefined;
|
|
322
|
+
};
|
|
320
323
|
get procedure(): PluvProcedure<TIO, {}, {}, TPresence, TStorage>;
|
|
321
324
|
constructor(options: PluvClientOptions<TIO, TPresence, TStorage, TMetadata>);
|
|
322
325
|
createRoom: <TEvents extends PluvRouterEventConfig<TIO, TPresence, TStorage> = {}>(room: string, options: CreateRoomOptions<TIO, TPresence, TStorage, TMetadata, TEvents>) => PluvRoom<TIO, TMetadata, TPresence, TStorage>;
|
package/dist/index.d.ts
CHANGED
|
@@ -317,6 +317,9 @@ declare class PluvClient<TIO extends IOLike = IOLike, TPresence extends JsonObje
|
|
|
317
317
|
private _presence?;
|
|
318
318
|
private _wsEndpoint;
|
|
319
319
|
private _rooms;
|
|
320
|
+
get _defs(): {
|
|
321
|
+
initialStorage: AbstractCrdtDocFactory<TStorage> | undefined;
|
|
322
|
+
};
|
|
320
323
|
get procedure(): PluvProcedure<TIO, {}, {}, TPresence, TStorage>;
|
|
321
324
|
constructor(options: PluvClientOptions<TIO, TPresence, TStorage, TMetadata>);
|
|
322
325
|
createRoom: <TEvents extends PluvRouterEventConfig<TIO, TPresence, TStorage> = {}>(room: string, options: CreateRoomOptions<TIO, TPresence, TStorage, TMetadata, TEvents>) => PluvRoom<TIO, TMetadata, TPresence, TStorage>;
|
package/dist/index.js
CHANGED
|
@@ -1229,6 +1229,11 @@ var PluvClient = class {
|
|
|
1229
1229
|
this._presence = presence;
|
|
1230
1230
|
this._wsEndpoint = wsEndpoint;
|
|
1231
1231
|
}
|
|
1232
|
+
get _defs() {
|
|
1233
|
+
return {
|
|
1234
|
+
initialStorage: this._initialStorage
|
|
1235
|
+
};
|
|
1236
|
+
}
|
|
1232
1237
|
get procedure() {
|
|
1233
1238
|
return new PluvProcedure();
|
|
1234
1239
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -1200,6 +1200,11 @@ var PluvClient = class {
|
|
|
1200
1200
|
this._presence = presence;
|
|
1201
1201
|
this._wsEndpoint = wsEndpoint;
|
|
1202
1202
|
}
|
|
1203
|
+
get _defs() {
|
|
1204
|
+
return {
|
|
1205
|
+
initialStorage: this._initialStorage
|
|
1206
|
+
};
|
|
1207
|
+
}
|
|
1203
1208
|
get procedure() {
|
|
1204
1209
|
return new PluvProcedure();
|
|
1205
1210
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pluv/client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.28.0",
|
|
4
4
|
"description": "@pluv/io frontend client",
|
|
5
5
|
"author": "leedavidcs",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,15 +18,15 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"wonka": "^6.3.4",
|
|
21
|
-
"@pluv/crdt": "^0.
|
|
22
|
-
"@pluv/types": "^0.
|
|
21
|
+
"@pluv/crdt": "^0.28.0",
|
|
22
|
+
"@pluv/types": "^0.28.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"eslint": "^8.57.0",
|
|
26
26
|
"tsup": "^8.3.0",
|
|
27
27
|
"typescript": "^5.6.2",
|
|
28
|
-
"@pluv/tsconfig": "^0.
|
|
29
|
-
"eslint-config-pluv": "^0.
|
|
28
|
+
"@pluv/tsconfig": "^0.28.0",
|
|
29
|
+
"eslint-config-pluv": "^0.28.0"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
32
|
"build": "tsup src/index.ts --format esm,cjs --dts",
|
package/src/PluvClient.ts
CHANGED
|
@@ -53,6 +53,12 @@ export class PluvClient<
|
|
|
53
53
|
|
|
54
54
|
private _rooms = new Map<string, PluvRoom<TIO, TMetadata, TPresence, TStorage, any>>();
|
|
55
55
|
|
|
56
|
+
public get _defs() {
|
|
57
|
+
return {
|
|
58
|
+
initialStorage: this._initialStorage,
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
56
62
|
public get procedure(): PluvProcedure<TIO, {}, {}, TPresence, TStorage> {
|
|
57
63
|
return new PluvProcedure<TIO, {}, {}, TPresence, TStorage>();
|
|
58
64
|
}
|