@pluv/client 0.1.0 → 0.1.2

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.1.0 build /home/runner/work/pluv/pluv/packages/client
2
+ > @pluv/client@0.1.2 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,10 +8,10 @@
8
8
  CLI Target: es6
9
9
  ESM Build start
10
10
  CJS Build start
11
- ESM dist/index.mjs 29.33 KB
12
- ESM ⚡️ Build success in 157ms
13
11
  CJS dist/index.js 30.41 KB
14
- CJS ⚡️ Build success in 165ms
12
+ CJS ⚡️ Build success in 110ms
13
+ ESM dist/index.mjs 29.33 KB
14
+ ESM ⚡️ Build success in 115ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 3438ms
17
- DTS dist/index.d.ts 8.21 KB
16
+ DTS ⚡️ Build success in 3241ms
17
+ DTS dist/index.d.ts 8.23 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @pluv/client
2
2
 
3
+ ## 0.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [b45d642]
8
+ - @pluv/crdt-yjs@0.1.2
9
+
10
+ ## 0.1.1
11
+
12
+ ### Patch Changes
13
+
14
+ - 23a7382: Omitted unused `encodedState` param from PluvRoom.
15
+ - 24016e6: Updated dependencies
16
+ - Updated dependencies [24016e6]
17
+ - @pluv/crdt-yjs@0.1.1
18
+ - @pluv/types@0.1.1
19
+
3
20
  ## 0.1.0
4
21
 
5
22
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -8,7 +8,7 @@ export { AbstractType } from 'yjs';
8
8
  import { Subject } from 'wonka';
9
9
 
10
10
  interface CrdtManagerOptions<TStorage extends Record<string, AbstractType<any>> = {}> {
11
- encodedState?: string | Uint8Array;
11
+ encodedState?: string | Uint8Array | null;
12
12
  initialStorage?: () => TStorage;
13
13
  }
14
14
 
@@ -83,7 +83,7 @@ type PluvRoomDebug<TIO extends IOLike> = Id<{
83
83
  type PluvRoomOptions<TIO extends IOLike, TPresence extends JsonObject = {}, TStorage extends Record<string, AbstractType<any>> = {}> = {
84
84
  debug?: boolean | PluvRoomDebug<TIO>;
85
85
  onAuthorizationFail?: (error: Error) => void;
86
- } & CrdtManagerOptions<TStorage> & UsersManagerConfig<TPresence>;
86
+ } & Omit<CrdtManagerOptions<TStorage>, "encodedState"> & UsersManagerConfig<TPresence>;
87
87
  type RoomConfig<TIO extends IOLike, TPresence extends JsonObject = {}, TStorage extends Record<string, AbstractType<any>> = {}> = RoomEndpoints<TIO> & PluvRoomOptions<TIO, TPresence, TStorage>;
88
88
  declare class PluvRoom<TIO extends IOLike, TPresence extends JsonObject = {}, TStorage extends Record<string, AbstractType<any>> = {}> {
89
89
  readonly _endpoints: RoomEndpoints<TIO>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pluv/client",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "@pluv/io frontend client",
5
5
  "author": "leedavidcs",
6
6
  "license": "MIT",
@@ -17,16 +17,16 @@
17
17
  "access": "public"
18
18
  },
19
19
  "dependencies": {
20
- "@pluv/crdt-yjs": "^0.1.0",
21
- "@pluv/types": "^0.1.0",
20
+ "@pluv/crdt-yjs": "^0.1.2",
21
+ "@pluv/types": "^0.1.1",
22
22
  "wonka": "^6.1.2"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "yjs": "^13.0.0"
26
26
  },
27
27
  "devDependencies": {
28
- "@pluv/tsconfig": "^0.1.0",
29
- "eslint-config-pluv": "^0.1.0",
28
+ "@pluv/tsconfig": "^0.1.1",
29
+ "eslint-config-pluv": "^0.1.1",
30
30
  "tsup": "^6.5.0",
31
31
  "typescript": "^4.9.4",
32
32
  "yjs": "^13.5.44"
@@ -5,7 +5,7 @@ import type { AbstractType } from "yjs";
5
5
  export interface CrdtManagerOptions<
6
6
  TStorage extends Record<string, AbstractType<any>> = {}
7
7
  > {
8
- encodedState?: string | Uint8Array;
8
+ encodedState?: string | Uint8Array | null;
9
9
  initialStorage?: () => TStorage;
10
10
  }
11
11
 
package/src/PluvRoom.ts CHANGED
@@ -105,7 +105,7 @@ export type PluvRoomOptions<
105
105
  > = {
106
106
  debug?: boolean | PluvRoomDebug<TIO>;
107
107
  onAuthorizationFail?: (error: Error) => void;
108
- } & CrdtManagerOptions<TStorage> &
108
+ } & Omit<CrdtManagerOptions<TStorage>, "encodedState"> &
109
109
  UsersManagerConfig<TPresence>;
110
110
 
111
111
  export type RoomConfig<