@liveblocks/core 1.5.3 → 1.6.0-subdocs1
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/dist/index.d.mts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +8 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ var __export = (target, all) => {
|
|
|
6
6
|
|
|
7
7
|
// src/version.ts
|
|
8
8
|
var PKG_NAME = "@liveblocks/core";
|
|
9
|
-
var PKG_VERSION = "1.
|
|
9
|
+
var PKG_VERSION = "1.6.0-subdocs1";
|
|
10
10
|
var PKG_FORMAT = "esm";
|
|
11
11
|
|
|
12
12
|
// src/dupe-detection.ts
|
|
@@ -5570,10 +5570,11 @@ ${Array.from(traces).join("\n\n")}`
|
|
|
5570
5570
|
}
|
|
5571
5571
|
return messages;
|
|
5572
5572
|
}
|
|
5573
|
-
function updateYDoc(update) {
|
|
5573
|
+
function updateYDoc(update, guid) {
|
|
5574
5574
|
const clientMsg = {
|
|
5575
5575
|
type: 301 /* UPDATE_YDOC */,
|
|
5576
|
-
update
|
|
5576
|
+
update,
|
|
5577
|
+
guid
|
|
5577
5578
|
};
|
|
5578
5579
|
context.buffer.messages.push(clientMsg);
|
|
5579
5580
|
eventHub.ydoc.notify(clientMsg);
|
|
@@ -5636,13 +5637,14 @@ ${Array.from(traces).join("\n\n")}`
|
|
|
5636
5637
|
root: nn(context.root)
|
|
5637
5638
|
};
|
|
5638
5639
|
}
|
|
5639
|
-
function fetchYDoc(vector) {
|
|
5640
|
+
function fetchYDoc(vector, guid) {
|
|
5640
5641
|
if (!context.buffer.messages.find((m) => {
|
|
5641
|
-
return m.type === 300 /* FETCH_YDOC */ && m.vector === vector;
|
|
5642
|
+
return m.type === 300 /* FETCH_YDOC */ && m.vector === vector && m.guid === guid;
|
|
5642
5643
|
})) {
|
|
5643
5644
|
context.buffer.messages.push({
|
|
5644
5645
|
type: 300 /* FETCH_YDOC */,
|
|
5645
|
-
vector
|
|
5646
|
+
vector,
|
|
5647
|
+
guid
|
|
5646
5648
|
});
|
|
5647
5649
|
}
|
|
5648
5650
|
flushNowOrSoon();
|