@pluv/client 0.6.0 → 0.6.1

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.6.0 build /home/runner/work/pluv/pluv/packages/client
2
+ > @pluv/client@0.6.1 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
- CJS dist/index.js 34.25 KB
12
- CJS ⚡️ Build success in 94ms
13
11
  ESM dist/index.mjs 33.09 KB
14
- ESM ⚡️ Build success in 97ms
12
+ ESM ⚡️ Build success in 127ms
13
+ CJS dist/index.js 34.25 KB
14
+ CJS ⚡️ Build success in 133ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 3737ms
17
- DTS dist/index.d.ts 11.49 KB
16
+ DTS ⚡️ Build success in 5189ms
17
+ DTS dist/index.d.ts 11.50 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @pluv/client
2
2
 
3
+ ## 0.6.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 19433af: updated MockedRoomProvider events to allow partial events
8
+ - 74870ee: bumped dependencies
9
+ - Updated dependencies [74870ee]
10
+ - @pluv/crdt-yjs@0.3.3
11
+ - @pluv/types@0.1.5
12
+
3
13
  ## 0.6.0
4
14
 
5
15
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -197,9 +197,9 @@ declare class PluvClient<TIO extends IOLike = IOLike> {
197
197
 
198
198
  declare const createClient: <TIO extends IOLike<_pluv_types.IOAuthorize<any, any>, {}, {}> = IOLike<_pluv_types.IOAuthorize<any, any>, {}, {}>>(options: PluvClientOptions<TIO>) => PluvClient<TIO>;
199
199
 
200
- type MockedRoomEvents<TIO extends IOLike> = {
200
+ type MockedRoomEvents<TIO extends IOLike> = Partial<{
201
201
  [P in keyof InferIOInput<TIO>]: (data: Id<InferIOInput<TIO>[P]>) => Partial<InferIOOutput<TIO>>;
202
- };
202
+ }>;
203
203
  type MockedRoomConfig<TIO extends IOLike, TPresence extends JsonObject = {}, TStorage extends Record<string, AbstractType<any>> = {}> = {
204
204
  events?: MockedRoomEvents<TIO>;
205
205
  } & Omit<CrdtManagerOptions<TStorage>, "encodedState"> & UsersManagerConfig<TPresence>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pluv/client",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "@pluv/io frontend client",
5
5
  "author": "leedavidcs",
6
6
  "license": "MIT",
@@ -17,19 +17,19 @@
17
17
  "access": "public"
18
18
  },
19
19
  "dependencies": {
20
- "wonka": "^6.2.5",
21
- "@pluv/crdt-yjs": "^0.3.2",
22
- "@pluv/types": "^0.1.4"
20
+ "wonka": "^6.3.1",
21
+ "@pluv/crdt-yjs": "^0.3.3",
22
+ "@pluv/types": "^0.1.5"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "yjs": "^13.0.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "tsup": "^6.7.0",
29
- "typescript": "^5.0.2",
29
+ "typescript": "^5.0.3",
30
30
  "yjs": "^13.5.51",
31
31
  "@pluv/tsconfig": "^0.1.4",
32
- "eslint-config-pluv": "^0.1.6"
32
+ "eslint-config-pluv": "^0.1.8"
33
33
  },
34
34
  "scripts": {
35
35
  "build": "tsup src/index.ts --format esm,cjs --dts",
package/src/MockedRoom.ts CHANGED
@@ -29,11 +29,11 @@ import { ConnectionState } from "./types";
29
29
  import type { UsersManagerConfig } from "./UsersManager";
30
30
  import { UsersManager } from "./UsersManager";
31
31
 
32
- export type MockedRoomEvents<TIO extends IOLike> = {
32
+ export type MockedRoomEvents<TIO extends IOLike> = Partial<{
33
33
  [P in keyof InferIOInput<TIO>]: (
34
34
  data: Id<InferIOInput<TIO>[P]>
35
35
  ) => Partial<InferIOOutput<TIO>>;
36
- };
36
+ }>;
37
37
 
38
38
  export type MockedRoomConfig<
39
39
  TIO extends IOLike,