@ai-matrx/records 0.99.18 → 0.99.20
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/CHANGELOG.md +14 -0
- package/dist/core/index.cjs +10 -0
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.js +10 -0
- package/dist/core/index.js.map +1 -1
- package/dist/data/index.cjs +10 -0
- package/dist/data/index.cjs.map +1 -1
- package/dist/data/index.js +10 -0
- package/dist/data/index.js.map +1 -1
- package/dist/react/index.cjs +10 -0
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.js +10 -0
- package/dist/react/index.js.map +1 -1
- package/dist/setup/index.cjs +10 -0
- package/dist/setup/index.cjs.map +1 -1
- package/dist/setup/index.js +10 -0
- package/dist/setup/index.js.map +1 -1
- package/dist/typed-table/index.cjs +10 -0
- package/dist/typed-table/index.cjs.map +1 -1
- package/dist/typed-table/index.js +10 -0
- package/dist/typed-table/index.js.map +1 -1
- package/package.json +4 -4
package/dist/core/index.js
CHANGED
|
@@ -5453,6 +5453,10 @@ function takePrimedTablePageBundle(organizationId, tableId, viewId) {
|
|
|
5453
5453
|
primed.delete(key);
|
|
5454
5454
|
return Date.now() - held.at < PRIMED_TTL_MS ? held.answer : null;
|
|
5455
5455
|
}
|
|
5456
|
+
function forgetPrimedTablePageBundlesOf(tableId) {
|
|
5457
|
+
const primed = registry();
|
|
5458
|
+
for (const key of [...primed.keys()]) if (tableId === null || key.split("|")[1] === tableId) primed.delete(key);
|
|
5459
|
+
}
|
|
5456
5460
|
function forgetPrimedTablePageBundles() {
|
|
5457
5461
|
registry().clear();
|
|
5458
5462
|
}
|
|
@@ -7366,6 +7370,12 @@ function createRecordsClient(given) {
|
|
|
7366
7370
|
else scream({ code: refusal.code, message: refusal.message, ...refusal.hint ? { hint: refusal.hint } : {}, where });
|
|
7367
7371
|
return err(refusal);
|
|
7368
7372
|
}
|
|
7373
|
+
if (isWritingDoor(door) || LOOK_WRITES[door]) {
|
|
7374
|
+
const tableId = args["p_table_id"];
|
|
7375
|
+
bundleDrop(typeof tableId === "string" ? tableId : null);
|
|
7376
|
+
forgetPrimedTablePageBundlesOf(typeof tableId === "string" ? tableId : null);
|
|
7377
|
+
dropPrimedDoorAnswers(LOOK_WRITES[door]);
|
|
7378
|
+
}
|
|
7369
7379
|
return ok(response.data);
|
|
7370
7380
|
}
|
|
7371
7381
|
function structureMoved(tableId, result) {
|