@pluv/client 0.27.0 → 0.29.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @pluv/client@0.27.0 build /home/runner/work/pluv/pluv/packages/client
2
+ > @pluv/client@0.29.0 build /home/runner/work/pluv/pluv/packages/client
3
3
  > tsup src/index.ts --format esm,cjs --dts
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -8,11 +8,11 @@
8
8
  CLI Target: es6
9
9
  ESM Build start
10
10
  CJS Build start
11
- CJS dist/index.js 47.68 KB
12
- CJS ⚡️ Build success in 129ms
13
- ESM dist/index.mjs 46.42 KB
14
- ESM ⚡️ Build success in 130ms
11
+ ESM dist/index.mjs 46.50 KB
12
+ ESM ⚡️ Build success in 106ms
13
+ CJS dist/index.js 47.76 KB
14
+ CJS ⚡️ Build success in 106ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 3681ms
17
- DTS dist/index.d.mts 21.97 KB
18
- DTS dist/index.d.ts 21.97 KB
16
+ DTS ⚡️ Build success in 3547ms
17
+ DTS dist/index.d.mts 22.06 KB
18
+ DTS dist/index.d.ts 22.06 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @pluv/client
2
2
 
3
+ ## 0.29.0
4
+
5
+ ### Patch Changes
6
+
7
+ - @pluv/crdt@0.29.0
8
+ - @pluv/types@0.29.0
9
+
10
+ ## 0.28.0
11
+
12
+ ### Patch Changes
13
+
14
+ - @pluv/crdt@0.28.0
15
+ - @pluv/types@0.28.0
16
+
3
17
  ## 0.27.0
4
18
 
5
19
  ### Minor Changes
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.27.0",
3
+ "version": "0.29.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.27.0",
22
- "@pluv/types": "^0.27.0"
21
+ "@pluv/crdt": "^0.29.0",
22
+ "@pluv/types": "^0.29.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.27.0",
29
- "eslint-config-pluv": "^0.27.0"
28
+ "@pluv/tsconfig": "^0.29.0",
29
+ "eslint-config-pluv": "^0.29.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
  }