@ai-matrx/records 0.86.2 → 0.87.2
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 +36 -0
- package/dist/core/index.cjs +6 -4
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.js +6 -4
- package/dist/core/index.js.map +1 -1
- package/dist/data/index.cjs +19 -6
- package/dist/data/index.cjs.map +1 -1
- package/dist/data/index.d.cts +13 -0
- package/dist/data/index.d.ts +13 -0
- package/dist/data/index.js +19 -6
- package/dist/data/index.js.map +1 -1
- package/dist/data/react.d.cts +13 -0
- package/dist/data/react.d.ts +13 -0
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +0 -34
- package/dist/index.d.ts +0 -34
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/list/index.cjs.map +1 -1
- package/dist/list/index.d.cts +5 -9
- package/dist/list/index.d.ts +5 -9
- package/dist/list/index.js.map +1 -1
- package/dist/react/index.cjs +20 -7
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +2 -36
- package/dist/react/index.d.ts +2 -36
- package/dist/react/index.js +20 -7
- package/dist/react/index.js.map +1 -1
- package/dist/realtime/index.cjs +2 -1
- package/dist/realtime/index.cjs.map +1 -1
- package/dist/realtime/index.js +2 -1
- package/dist/realtime/index.js.map +1 -1
- package/dist/typed-table/index.cjs +7 -5
- package/dist/typed-table/index.cjs.map +1 -1
- package/dist/typed-table/index.d.cts +2 -2
- package/dist/typed-table/index.d.ts +2 -2
- package/dist/typed-table/index.js +7 -5
- package/dist/typed-table/index.js.map +1 -1
- package/package.json +3 -3
package/dist/core/index.js
CHANGED
|
@@ -2163,9 +2163,10 @@ function sourceArchivedOf(value) {
|
|
|
2163
2163
|
}
|
|
2164
2164
|
|
|
2165
2165
|
// src/ops.ts
|
|
2166
|
+
import { globalSlot } from "@ai-matrx/kit/global-slot";
|
|
2166
2167
|
var REMEMBER_MS = 3e4;
|
|
2167
2168
|
var REMEMBER_MAX = 500;
|
|
2168
|
-
var ours = /* @__PURE__ */ new Map();
|
|
2169
|
+
var ours = globalSlot("ai-matrx.records.op-ledger", () => /* @__PURE__ */ new Map());
|
|
2169
2170
|
function trim(now) {
|
|
2170
2171
|
for (const [id, at] of ours) {
|
|
2171
2172
|
if (now - at <= REMEMBER_MS) break;
|
|
@@ -4958,7 +4959,8 @@ function isWritingDoor(door) {
|
|
|
4958
4959
|
}
|
|
4959
4960
|
|
|
4960
4961
|
// src/core/recordChanges.ts
|
|
4961
|
-
|
|
4962
|
+
import { globalSlot as globalSlot2 } from "@ai-matrx/kit/global-slot";
|
|
4963
|
+
var listeners = globalSlot2("ai-matrx.records.record-change-listeners", () => /* @__PURE__ */ new Set());
|
|
4962
4964
|
function announceRecordChanged(recordId) {
|
|
4963
4965
|
for (const listener of [...listeners]) {
|
|
4964
4966
|
try {
|
|
@@ -4968,7 +4970,7 @@ function announceRecordChanged(recordId) {
|
|
|
4968
4970
|
}
|
|
4969
4971
|
}
|
|
4970
4972
|
}
|
|
4971
|
-
var removed = /* @__PURE__ */ new Set();
|
|
4973
|
+
var removed = globalSlot2("ai-matrx.records.removed-records", () => /* @__PURE__ */ new Set());
|
|
4972
4974
|
function markRecordRemoved(recordId) {
|
|
4973
4975
|
removed.add(recordId);
|
|
4974
4976
|
}
|
|
@@ -4982,7 +4984,7 @@ function onRecordChanged(listener) {
|
|
|
4982
4984
|
listeners.add(listener);
|
|
4983
4985
|
return () => listeners.delete(listener);
|
|
4984
4986
|
}
|
|
4985
|
-
var tableListeners = /* @__PURE__ */ new Set();
|
|
4987
|
+
var tableListeners = globalSlot2("ai-matrx.records.table-structure-listeners", () => /* @__PURE__ */ new Set());
|
|
4986
4988
|
function announceTableStructureChanged(tableId) {
|
|
4987
4989
|
for (const listener of [...tableListeners]) {
|
|
4988
4990
|
try {
|