@ai-matrx/records 0.99.19 → 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 +10 -1
- package/dist/core/index.cjs +5 -0
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.js +5 -0
- package/dist/core/index.js.map +1 -1
- package/dist/data/index.cjs +5 -0
- package/dist/data/index.cjs.map +1 -1
- package/dist/data/index.js +5 -0
- package/dist/data/index.js.map +1 -1
- package/dist/react/index.cjs +5 -0
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.js +5 -0
- package/dist/react/index.js.map +1 -1
- package/dist/setup/index.cjs +5 -0
- package/dist/setup/index.cjs.map +1 -1
- package/dist/setup/index.js +5 -0
- package/dist/setup/index.js.map +1 -1
- package/dist/typed-table/index.cjs +5 -0
- package/dist/typed-table/index.cjs.map +1 -1
- package/dist/typed-table/index.js +5 -0
- package/dist/typed-table/index.js.map +1 -1
- package/package.json +4 -4
package/dist/setup/index.js
CHANGED
|
@@ -18,6 +18,10 @@ function takePrimedTablePageBundle(organizationId, tableId, viewId) {
|
|
|
18
18
|
primed.delete(key);
|
|
19
19
|
return Date.now() - held.at < PRIMED_TTL_MS ? held.answer : null;
|
|
20
20
|
}
|
|
21
|
+
function forgetPrimedTablePageBundlesOf(tableId) {
|
|
22
|
+
const primed = registry();
|
|
23
|
+
for (const key of [...primed.keys()]) if (tableId === null || key.split("|")[1] === tableId) primed.delete(key);
|
|
24
|
+
}
|
|
21
25
|
var DOOR_REGISTRY = /* @__PURE__ */ Symbol.for("@ai-matrx/records/primed-door-answers");
|
|
22
26
|
function doorRegistry() {
|
|
23
27
|
const g = globalThis;
|
|
@@ -3432,6 +3436,7 @@ function createRecordsClient(given) {
|
|
|
3432
3436
|
if (isWritingDoor(door) || LOOK_WRITES[door]) {
|
|
3433
3437
|
const tableId = args["p_table_id"];
|
|
3434
3438
|
bundleDrop(typeof tableId === "string" ? tableId : null);
|
|
3439
|
+
forgetPrimedTablePageBundlesOf(typeof tableId === "string" ? tableId : null);
|
|
3435
3440
|
dropPrimedDoorAnswers(LOOK_WRITES[door]);
|
|
3436
3441
|
}
|
|
3437
3442
|
return ok(response.data);
|