@ai-matrx/records 0.84.4 → 0.84.5
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 +8 -0
- package/dist/app-table/index.cjs +15 -2
- package/dist/app-table/index.cjs.map +1 -1
- package/dist/app-table/index.js +15 -2
- package/dist/app-table/index.js.map +1 -1
- package/dist/core/index.cjs +23 -4
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +7 -1
- package/dist/core/index.d.ts +7 -1
- package/dist/core/index.js +23 -4
- package/dist/core/index.js.map +1 -1
- package/dist/data/index.cjs +15 -2
- package/dist/data/index.cjs.map +1 -1
- package/dist/data/index.js +15 -2
- package/dist/data/index.js.map +1 -1
- package/dist/react/index.cjs +20 -4
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.js +20 -4
- package/dist/react/index.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog — @ai-matrx/records
|
|
2
2
|
|
|
3
|
+
## 0.84.5
|
|
4
|
+
### Unreleased
|
|
5
|
+
### lane spaces-fixes-r39
|
|
6
|
+
|
|
7
|
+
- An archived record is no longer read again: `recordDelete` marks it removed (`markRecordRemoved`, lifted by `recordRestore`), and the live `useRecord` entry of a screen that closed (a peek) skips its re-read on the archive's change announcement and on realtime's echo of it — `custom.read_record` answered both with a 400.
|
|
8
|
+
|
|
9
|
+
**Consumer action:** none.
|
|
10
|
+
|
|
3
11
|
## 0.84.4
|
|
4
12
|
|
|
5
13
|
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
package/dist/app-table/index.cjs
CHANGED
|
@@ -476,6 +476,13 @@ function announceRecordChanged(recordId) {
|
|
|
476
476
|
}
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
|
+
var removed = /* @__PURE__ */ new Set();
|
|
480
|
+
function markRecordRemoved(recordId) {
|
|
481
|
+
removed.add(recordId);
|
|
482
|
+
}
|
|
483
|
+
function markRecordRestored(recordId) {
|
|
484
|
+
removed.delete(recordId);
|
|
485
|
+
}
|
|
479
486
|
function onRecordChanged(listener) {
|
|
480
487
|
listeners.add(listener);
|
|
481
488
|
return () => listeners.delete(listener);
|
|
@@ -3281,7 +3288,10 @@ function createRecordsClient(given) {
|
|
|
3281
3288
|
{ p_organization_id: org, p_record_id: record_id },
|
|
3282
3289
|
"recordDelete"
|
|
3283
3290
|
);
|
|
3284
|
-
if (result.ok)
|
|
3291
|
+
if (result.ok) {
|
|
3292
|
+
markRecordRemoved(record_id);
|
|
3293
|
+
announceRecordChanged(record_id);
|
|
3294
|
+
}
|
|
3285
3295
|
return result;
|
|
3286
3296
|
},
|
|
3287
3297
|
async recordRestore({ record_id }) {
|
|
@@ -3290,7 +3300,10 @@ function createRecordsClient(given) {
|
|
|
3290
3300
|
{ p_organization_id: org, p_record_id: record_id },
|
|
3291
3301
|
"recordRestore"
|
|
3292
3302
|
);
|
|
3293
|
-
if (result.ok)
|
|
3303
|
+
if (result.ok) {
|
|
3304
|
+
markRecordRestored(record_id);
|
|
3305
|
+
announceRecordChanged(record_id);
|
|
3306
|
+
}
|
|
3294
3307
|
return result;
|
|
3295
3308
|
},
|
|
3296
3309
|
async tableArchive({ table_id, chunk, includeTable }) {
|