@pluv/crdt-loro 0.32.7 → 0.32.9
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 +6 -6
- package/CHANGELOG.md +15 -0
- package/dist/index.js +12 -15
- package/dist/index.mjs +12 -15
- package/package.json +6 -6
- package/src/doc/CrdtLoroDoc.ts +13 -17
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @pluv/crdt-loro@0.32.
|
|
2
|
+
> @pluv/crdt-loro@0.32.9 build /home/runner/work/pluv/pluv/packages/crdt-loro
|
|
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
|
-
[32mCJS[39m [1mdist/index.js [22m[32m9.
|
|
12
|
-
[32mCJS[39m ⚡️ Build success in
|
|
13
|
-
[32mESM[39m [1mdist/index.mjs [22m[32m8.
|
|
14
|
-
[32mESM[39m ⚡️ Build success in
|
|
11
|
+
[32mCJS[39m [1mdist/index.js [22m[32m9.16 KB[39m
|
|
12
|
+
[32mCJS[39m ⚡️ Build success in 67ms
|
|
13
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m8.10 KB[39m
|
|
14
|
+
[32mESM[39m ⚡️ Build success in 67ms
|
|
15
15
|
[34mDTS[39m Build start
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 1913ms
|
|
17
17
|
[32mDTS[39m [1mdist/index.d.mts [22m[32m3.51 KB[39m
|
|
18
18
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m3.51 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @pluv/crdt-loro
|
|
2
2
|
|
|
3
|
+
## 0.32.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- cef5911: Bump `loro-crdt` from `0.16.12` to `1.0.8`.
|
|
8
|
+
- @pluv/crdt@0.32.9
|
|
9
|
+
- @pluv/types@0.32.9
|
|
10
|
+
|
|
11
|
+
## 0.32.8
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- @pluv/crdt@0.32.8
|
|
16
|
+
- @pluv/types@0.32.8
|
|
17
|
+
|
|
3
18
|
## 0.32.7
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -172,21 +172,18 @@ var CrdtLoroDoc = class extends import_crdt.AbstractCrdtDoc {
|
|
|
172
172
|
update
|
|
173
173
|
});
|
|
174
174
|
};
|
|
175
|
-
const
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
container.unsubscribe(subscriptionId);
|
|
188
|
-
});
|
|
189
|
-
};
|
|
175
|
+
const unsubcribeAll = Object.values(this._storage).reduce(
|
|
176
|
+
(acc, crdtType) => {
|
|
177
|
+
const container = crdtType;
|
|
178
|
+
const unsubscribe = container.subscribe(fn);
|
|
179
|
+
return () => {
|
|
180
|
+
acc();
|
|
181
|
+
unsubscribe();
|
|
182
|
+
};
|
|
183
|
+
},
|
|
184
|
+
() => void 0
|
|
185
|
+
);
|
|
186
|
+
return unsubcribeAll;
|
|
190
187
|
}
|
|
191
188
|
/**
|
|
192
189
|
* TODO
|
package/dist/index.mjs
CHANGED
|
@@ -153,21 +153,18 @@ var CrdtLoroDoc = class extends AbstractCrdtDoc {
|
|
|
153
153
|
update
|
|
154
154
|
});
|
|
155
155
|
};
|
|
156
|
-
const
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
container.unsubscribe(subscriptionId);
|
|
169
|
-
});
|
|
170
|
-
};
|
|
156
|
+
const unsubcribeAll = Object.values(this._storage).reduce(
|
|
157
|
+
(acc, crdtType) => {
|
|
158
|
+
const container = crdtType;
|
|
159
|
+
const unsubscribe = container.subscribe(fn);
|
|
160
|
+
return () => {
|
|
161
|
+
acc();
|
|
162
|
+
unsubscribe();
|
|
163
|
+
};
|
|
164
|
+
},
|
|
165
|
+
() => void 0
|
|
166
|
+
);
|
|
167
|
+
return unsubcribeAll;
|
|
171
168
|
}
|
|
172
169
|
/**
|
|
173
170
|
* TODO
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pluv/crdt-loro",
|
|
3
|
-
"version": "0.32.
|
|
3
|
+
"version": "0.32.9",
|
|
4
4
|
"description": "loro for @pluv/io",
|
|
5
5
|
"author": "leedavidcs",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,19 +18,19 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"js-base64": "^3.7.7",
|
|
21
|
-
"@pluv/crdt": "^0.32.
|
|
22
|
-
"@pluv/types": "^0.32.
|
|
21
|
+
"@pluv/crdt": "^0.32.9",
|
|
22
|
+
"@pluv/types": "^0.32.9"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"loro-crdt": "^0.16.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"eslint": "^8.57.0",
|
|
29
|
-
"loro-crdt": "^0.
|
|
29
|
+
"loro-crdt": "^1.0.8",
|
|
30
30
|
"tsup": "^8.3.5",
|
|
31
31
|
"typescript": "^5.6.3",
|
|
32
|
-
"@pluv/tsconfig": "^0.32.
|
|
33
|
-
"eslint-config-pluv": "^0.32.
|
|
32
|
+
"@pluv/tsconfig": "^0.32.9",
|
|
33
|
+
"eslint-config-pluv": "^0.32.9"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build": "tsup src/index.ts --format esm,cjs --dts",
|
package/src/doc/CrdtLoroDoc.ts
CHANGED
|
@@ -170,24 +170,20 @@ export class CrdtLoroDoc<TStorage extends Record<string, LoroType<any, any>>> ex
|
|
|
170
170
|
});
|
|
171
171
|
};
|
|
172
172
|
|
|
173
|
-
const
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
throw new Error("Storage could not be found");
|
|
186
|
-
}
|
|
173
|
+
const unsubcribeAll = Object.values(this._storage).reduce<() => void>(
|
|
174
|
+
(acc, crdtType) => {
|
|
175
|
+
const container = crdtType as unknown as Container;
|
|
176
|
+
const unsubscribe = container.subscribe(fn);
|
|
177
|
+
|
|
178
|
+
return () => {
|
|
179
|
+
acc();
|
|
180
|
+
unsubscribe();
|
|
181
|
+
};
|
|
182
|
+
},
|
|
183
|
+
() => undefined,
|
|
184
|
+
);
|
|
187
185
|
|
|
188
|
-
|
|
189
|
-
});
|
|
190
|
-
};
|
|
186
|
+
return unsubcribeAll;
|
|
191
187
|
}
|
|
192
188
|
|
|
193
189
|
/**
|