@pluv/client 0.6.0 → 0.6.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.
- package/.turbo/turbo-build.log +7 -7
- package/CHANGELOG.md +18 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -10
- package/dist/index.mjs +0 -5
- package/package.json +7 -7
- package/src/MockedRoom.ts +2 -2
- package/src/PluvRoom.ts +0 -3
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @pluv/client@0.6.
|
|
2
|
+
> @pluv/client@0.6.2 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,10 +8,10 @@
|
|
|
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[32m32.97 KB[39m
|
|
12
|
+
[32mESM[39m ⚡️ Build success in 84ms
|
|
13
|
+
[32mCJS[39m [1mdist/index.js [22m[32m34.11 KB[39m
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 86ms
|
|
15
15
|
[34mDTS[39m Build start
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
17
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m11.
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 3449ms
|
|
17
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m11.50 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @pluv/client
|
|
2
2
|
|
|
3
|
+
## 0.6.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 9ae251d: bumped dependencies
|
|
8
|
+
- Updated dependencies [9ae251d]
|
|
9
|
+
- @pluv/crdt-yjs@0.3.4
|
|
10
|
+
|
|
11
|
+
## 0.6.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 19433af: updated MockedRoomProvider events to allow partial events
|
|
16
|
+
- 74870ee: bumped dependencies
|
|
17
|
+
- Updated dependencies [74870ee]
|
|
18
|
+
- @pluv/crdt-yjs@0.3.3
|
|
19
|
+
- @pluv/types@0.1.5
|
|
20
|
+
|
|
3
21
|
## 0.6.0
|
|
4
22
|
|
|
5
23
|
### 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/dist/index.js
CHANGED
|
@@ -74,9 +74,6 @@ var AbstractRoom = class {
|
|
|
74
74
|
}
|
|
75
75
|
};
|
|
76
76
|
|
|
77
|
-
// src/PluvRoom.ts
|
|
78
|
-
var import_crdt_yjs2 = require("@pluv/crdt-yjs");
|
|
79
|
-
|
|
80
77
|
// src/CrdtManager.ts
|
|
81
78
|
var import_crdt_yjs = require("@pluv/crdt-yjs");
|
|
82
79
|
var CrdtManager = class {
|
|
@@ -695,8 +692,6 @@ var PluvRoom = class extends AbstractRoom {
|
|
|
695
692
|
const data = message.data;
|
|
696
693
|
if (!this._crdtManager)
|
|
697
694
|
return;
|
|
698
|
-
const test = (0, import_crdt_yjs2.doc)({});
|
|
699
|
-
test.applyUpdate(data.state);
|
|
700
695
|
this._crdtManager.doc.applyUpdate(data.state, "$STORAGE_UPDATED");
|
|
701
696
|
const sharedTypes = this._crdtManager.doc.getSharedTypes();
|
|
702
697
|
Object.keys(sharedTypes).forEach((key) => {
|
|
@@ -1135,12 +1130,12 @@ var MockedRoom = class extends AbstractRoom {
|
|
|
1135
1130
|
// src/y.ts
|
|
1136
1131
|
var y_exports = {};
|
|
1137
1132
|
__export(y_exports, {
|
|
1138
|
-
array: () =>
|
|
1139
|
-
map: () =>
|
|
1140
|
-
object: () =>
|
|
1141
|
-
text: () =>
|
|
1133
|
+
array: () => import_crdt_yjs2.array,
|
|
1134
|
+
map: () => import_crdt_yjs2.map,
|
|
1135
|
+
object: () => import_crdt_yjs2.object,
|
|
1136
|
+
text: () => import_crdt_yjs2.text
|
|
1142
1137
|
});
|
|
1143
|
-
var
|
|
1138
|
+
var import_crdt_yjs2 = require("@pluv/crdt-yjs");
|
|
1144
1139
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1145
1140
|
0 && (module.exports = {
|
|
1146
1141
|
AbstractRoom,
|
package/dist/index.mjs
CHANGED
|
@@ -49,9 +49,6 @@ var AbstractRoom = class {
|
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
51
|
|
|
52
|
-
// src/PluvRoom.ts
|
|
53
|
-
import { doc as doc2 } from "@pluv/crdt-yjs";
|
|
54
|
-
|
|
55
52
|
// src/CrdtManager.ts
|
|
56
53
|
import { doc } from "@pluv/crdt-yjs";
|
|
57
54
|
var CrdtManager = class {
|
|
@@ -670,8 +667,6 @@ var PluvRoom = class extends AbstractRoom {
|
|
|
670
667
|
const data = message.data;
|
|
671
668
|
if (!this._crdtManager)
|
|
672
669
|
return;
|
|
673
|
-
const test = doc2({});
|
|
674
|
-
test.applyUpdate(data.state);
|
|
675
670
|
this._crdtManager.doc.applyUpdate(data.state, "$STORAGE_UPDATED");
|
|
676
671
|
const sharedTypes = this._crdtManager.doc.getSharedTypes();
|
|
677
672
|
Object.keys(sharedTypes).forEach((key) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pluv/client",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
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.
|
|
21
|
-
"@pluv/crdt-yjs": "^0.3.
|
|
22
|
-
"@pluv/types": "^0.1.
|
|
20
|
+
"wonka": "^6.3.1",
|
|
21
|
+
"@pluv/crdt-yjs": "^0.3.4",
|
|
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.
|
|
30
|
-
"yjs": "^13.5.
|
|
29
|
+
"typescript": "^5.0.3",
|
|
30
|
+
"yjs": "^13.5.52",
|
|
31
31
|
"@pluv/tsconfig": "^0.1.4",
|
|
32
|
-
"eslint-config-pluv": "^0.1.
|
|
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,
|
package/src/PluvRoom.ts
CHANGED
|
@@ -662,9 +662,6 @@ export class PluvRoom<
|
|
|
662
662
|
|
|
663
663
|
if (!this._crdtManager) return;
|
|
664
664
|
|
|
665
|
-
const test = doc({});
|
|
666
|
-
test.applyUpdate(data.state);
|
|
667
|
-
|
|
668
665
|
this._crdtManager.doc.applyUpdate(data.state, "$STORAGE_UPDATED");
|
|
669
666
|
|
|
670
667
|
const sharedTypes = this._crdtManager.doc.getSharedTypes();
|