@ai-matrx/records 0.77.2 → 0.77.3
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/dist/app-table/index.cjs +4 -4
- package/dist/app-table/index.cjs.map +1 -1
- package/dist/app-table/index.js +4 -4
- package/dist/app-table/index.js.map +1 -1
- package/dist/core/index.cjs +8 -6
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.js +8 -6
- package/dist/core/index.js.map +1 -1
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/memory/index.cjs +4 -1
- package/dist/memory/index.cjs.map +1 -1
- package/dist/memory/index.js +4 -1
- package/dist/memory/index.js.map +1 -1
- package/dist/react/index.cjs +8 -6
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.js +8 -6
- package/dist/react/index.js.map +1 -1
- package/dist/templates/index.cjs +4 -2
- package/dist/templates/index.cjs.map +1 -1
- package/dist/templates/index.js +4 -2
- package/dist/templates/index.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog — @ai-matrx/records
|
|
2
2
|
|
|
3
|
+
## 0.77.3
|
|
4
|
+
|
|
5
|
+
UUID checks in app-table graduation, landing outcomes and template validation use `@ai-matrx/kit/uuid` `isUuidShape`; table-kind slugs use `isLowercaseUuidShape` (the same lower-case contract the local regex had). Scripts' console lines format sizes, durations and cost through kit. Package-twins collapse.
|
|
6
|
+
|
|
7
|
+
Consumer action: none.
|
|
8
|
+
|
|
3
9
|
## 0.77.2
|
|
4
10
|
|
|
5
11
|
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
package/dist/app-table/index.cjs
CHANGED
|
@@ -56,6 +56,7 @@ __export(app_table_exports, {
|
|
|
56
56
|
module.exports = __toCommonJS(app_table_exports);
|
|
57
57
|
|
|
58
58
|
// src/app-table/graduate.ts
|
|
59
|
+
var import_uuid = require("@ai-matrx/kit/uuid");
|
|
59
60
|
var TO_CUSTOM_FIELDS = "custom_fields";
|
|
60
61
|
var TO_ASSOCIATION = "association";
|
|
61
62
|
var GRADUATION_BASE_COLUMNS = [
|
|
@@ -115,10 +116,9 @@ function graduationProblems(fields, graduation) {
|
|
|
115
116
|
}
|
|
116
117
|
return problems;
|
|
117
118
|
}
|
|
118
|
-
var UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
119
119
|
function idsOf(value) {
|
|
120
120
|
const list = Array.isArray(value) ? value : value === null || value === void 0 ? [] : [value];
|
|
121
|
-
return list.filter((v) => typeof v === "string" &&
|
|
121
|
+
return list.filter((v) => typeof v === "string" && (0, import_uuid.isUuidShape)(v));
|
|
122
122
|
}
|
|
123
123
|
function graduatedRow(fields, graduation, snapshot) {
|
|
124
124
|
const row = {
|
|
@@ -649,7 +649,7 @@ function mapPgError(error, where) {
|
|
|
649
649
|
}
|
|
650
650
|
|
|
651
651
|
// src/relation.ts
|
|
652
|
-
var
|
|
652
|
+
var import_uuid2 = require("@ai-matrx/kit/uuid");
|
|
653
653
|
var REVERSE_LINKS_RECORDS_PER_CALL = 200;
|
|
654
654
|
function sourceArchivedOf(value) {
|
|
655
655
|
if (!value || typeof value !== "object" || Array.isArray(value)) return null;
|
|
@@ -692,7 +692,7 @@ function mintOpId() {
|
|
|
692
692
|
}
|
|
693
693
|
|
|
694
694
|
// src/choice.ts
|
|
695
|
-
var
|
|
695
|
+
var import_uuid3 = require("@ai-matrx/kit/uuid");
|
|
696
696
|
var CHOICE_NUDGES = ["ask", "always_add", "never_add"];
|
|
697
697
|
function asChoiceNudge(value) {
|
|
698
698
|
return typeof value === "string" && CHOICE_NUDGES.includes(value) ? value : "ask";
|