@liveblocks/core 1.9.0 → 1.9.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.
- package/dist/index.d.mts +21 -3
- package/dist/index.d.ts +21 -3
- package/dist/index.js +11 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -1
- 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.
|
|
9
|
+
var PKG_VERSION = "1.9.1";
|
|
10
10
|
var PKG_FORMAT = "esm";
|
|
11
11
|
|
|
12
12
|
// src/dupe-detection.ts
|
|
@@ -2452,6 +2452,14 @@ var OpCode = /* @__PURE__ */ ((OpCode2) => {
|
|
|
2452
2452
|
OpCode2[OpCode2["CREATE_REGISTER"] = 8] = "CREATE_REGISTER";
|
|
2453
2453
|
return OpCode2;
|
|
2454
2454
|
})(OpCode || {});
|
|
2455
|
+
function ackOp(opId) {
|
|
2456
|
+
return {
|
|
2457
|
+
type: 5 /* DELETE_CRDT */,
|
|
2458
|
+
id: "ACK",
|
|
2459
|
+
// (H)ACK
|
|
2460
|
+
opId
|
|
2461
|
+
};
|
|
2462
|
+
}
|
|
2455
2463
|
function isAckOp(op) {
|
|
2456
2464
|
return op.type === 5 /* DELETE_CRDT */ && op.id === "ACK";
|
|
2457
2465
|
}
|
|
@@ -7135,6 +7143,7 @@ export {
|
|
|
7135
7143
|
OpCode,
|
|
7136
7144
|
ServerMsgCode,
|
|
7137
7145
|
WebsocketCloseCodes,
|
|
7146
|
+
ackOp,
|
|
7138
7147
|
asPos,
|
|
7139
7148
|
assert,
|
|
7140
7149
|
assertNever,
|