@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/data/index.cjs
CHANGED
|
@@ -243,6 +243,10 @@ function takePrimedTablePageBundle(organizationId, tableId, viewId) {
|
|
|
243
243
|
primed.delete(key);
|
|
244
244
|
return Date.now() - held.at < PRIMED_TTL_MS ? held.answer : null;
|
|
245
245
|
}
|
|
246
|
+
function forgetPrimedTablePageBundlesOf(tableId) {
|
|
247
|
+
const primed = registry();
|
|
248
|
+
for (const key of [...primed.keys()]) if (tableId === null || key.split("|")[1] === tableId) primed.delete(key);
|
|
249
|
+
}
|
|
246
250
|
var DOOR_REGISTRY = /* @__PURE__ */ Symbol.for("@ai-matrx/records/primed-door-answers");
|
|
247
251
|
function doorRegistry() {
|
|
248
252
|
const g = globalThis;
|
|
@@ -3678,6 +3682,7 @@ function createRecordsClient(given) {
|
|
|
3678
3682
|
if (isWritingDoor(door) || LOOK_WRITES[door]) {
|
|
3679
3683
|
const tableId = args["p_table_id"];
|
|
3680
3684
|
bundleDrop(typeof tableId === "string" ? tableId : null);
|
|
3685
|
+
forgetPrimedTablePageBundlesOf(typeof tableId === "string" ? tableId : null);
|
|
3681
3686
|
dropPrimedDoorAnswers(LOOK_WRITES[door]);
|
|
3682
3687
|
}
|
|
3683
3688
|
return ok(response.data);
|