@ai-matrx/records 0.92.1 → 0.92.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 +6 -0
- package/README.md +4 -4
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog — @ai-matrx/records
|
|
2
2
|
|
|
3
|
+
## 0.92.2
|
|
4
|
+
|
|
5
|
+
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
6
|
+
`git diff npm/records/v0.92.1..npm/records/v0.92.2 -- apps/shared/records`).
|
|
7
|
+
No source changes intended and no consumer action required.
|
|
8
|
+
|
|
3
9
|
## 0.92.1
|
|
4
10
|
|
|
5
11
|
**`recordRead`'s version is opt-in: `recordRead({ record_id, withVersion: true })`.** 0.92.0 read the header on
|
package/README.md
CHANGED
|
@@ -55,9 +55,8 @@ const tableId = table.data; // the table id
|
|
|
55
55
|
const created = await matrx.records.recordWrite({ table_id: tableId, data: { caller: "Marcus Delgado", phone: "+14155550178" } });
|
|
56
56
|
const page = await matrx.records.list({ table_id: tableId, limit: 50 }); // { rows, total }
|
|
57
57
|
const record_id = created.ok ? created.data : "";
|
|
58
|
-
const read = await matrx.records.recordRead({ record_id });
|
|
59
|
-
const
|
|
60
|
-
const expectedVersion = heads.ok ? heads.data[0]?.version : undefined;
|
|
58
|
+
const read = await matrx.records.recordRead({ record_id, withVersion: true }); // .data.document, .data.version
|
|
59
|
+
const expectedVersion = read.ok ? (read.data.version ?? undefined) : undefined;
|
|
61
60
|
const edited = await matrx.records.recordUpdate({ record_id, patch: { phone: "+14155550199" }, expectedVersion }); // answers the new version
|
|
62
61
|
// Always send expectedVersion: a colleague's newer edit is then refused (`stale_write`, field by field), never overwritten.
|
|
63
62
|
const archived = await matrx.records.recordDelete({ record_id }); // soft: recordRestore brings it back
|
|
@@ -82,7 +81,8 @@ as a second mode (planned); today `auth` is a signed-in session.
|
|
|
82
81
|
| `records/core` | the typed client over every door (tables, records, versions, views, forms, totals) |
|
|
83
82
|
| `records/realtime` | the live-changes port setup uses |
|
|
84
83
|
| `records/search` | `searchRecords`, `listStoreRecordCandidates` |
|
|
85
|
-
| `records/forms` | the form document, embeds
|
|
84
|
+
| `records/forms` | the form document, embeds, which read a public address does, `typedAnswersFor` |
|
|
85
|
+
| `records/versions` | the version rule: `useRecordVersions`, version-carrying write doors, `askOnce`, `refusal` |
|
|
86
86
|
| `records/entity`, `records/entity/react` | platform records (contacts, projects, tasks) |
|
|
87
87
|
| `records/data`, `records/data/react` | one data port and TanStack hooks over custom tables and entities |
|
|
88
88
|
| `records/react` | provider + hooks over the client |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-matrx/records",
|
|
3
|
-
"version": "0.92.
|
|
3
|
+
"version": "0.92.2",
|
|
4
4
|
"description": "The headless client of the AI Matrx record store: the Table / Field / Rule / Record / Relation / Home types, the closed vocabularies and refusal codes read from the store itself, the typed calls over the store's doors and nothing else, the merge-field declaration, a validation mirror that predicts only what the store's own triggers refuse, and the never-throw result envelope. Zero React, zero DOM in the root and /core.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -246,8 +246,8 @@
|
|
|
246
246
|
},
|
|
247
247
|
"sideEffects": false,
|
|
248
248
|
"dependencies": {
|
|
249
|
-
"@ai-matrx/kit": "latest",
|
|
250
249
|
"@ai-matrx/print": "latest",
|
|
250
|
+
"@ai-matrx/kit": "latest",
|
|
251
251
|
"@ai-matrx/realtime": "latest"
|
|
252
252
|
},
|
|
253
253
|
"matrx": {
|
|
@@ -290,5 +290,5 @@
|
|
|
290
290
|
"describe-bench:run": "../../../.venv/bin/python scripts/describe-bench/score-env.py run",
|
|
291
291
|
"describe-bench:arms": "../../../.venv/bin/python scripts/describe-bench/score-env.py arms"
|
|
292
292
|
},
|
|
293
|
-
"gitHead": "
|
|
293
|
+
"gitHead": "87ee8b9012b597b197533b91e688cc7bd7984264"
|
|
294
294
|
}
|