@ai-matrx/records 0.87.12 → 0.87.13

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 CHANGED
@@ -1,9 +1,21 @@
1
1
  # Changelog — @ai-matrx/records
2
2
 
3
- ## 0.87.12
3
+ ## 0.87.13
4
4
 
5
5
  Automatic changed-only republish (docs/metadata drift since the last tag — see
6
- `git diff npm/records/v0.87.10..npm/records/v0.87.12 -- apps/shared/records`).
6
+ `git diff npm/records/v0.87.12..npm/records/v0.87.13 -- apps/shared/records`).
7
+ No source changes intended and no consumer action required.
8
+
9
+ ## 0.87.11
10
+
11
+ Automatic changed-only republish (docs/metadata drift since the last tag — see
12
+ `git diff npm/records/v0.87.9..npm/records/v0.87.11 -- apps/shared/records`).
13
+ No source changes intended and no consumer action required.
14
+
15
+ ## 0.87.10
16
+
17
+ Automatic changed-only republish (docs/metadata drift since the last tag — see
18
+ `git diff npm/records/v0.87.9..npm/records/v0.87.10 -- apps/shared/records`).
7
19
  No source changes intended and no consumer action required.
8
20
 
9
21
  ## 0.87.8
@@ -12022,6 +12022,14 @@ function defineTypedTable(input) {
12022
12022
  if (!/^\d{4}-\d{2}-\d{2}$/.test(c.approval.approvedOn ?? "")) refuse3(slug, "the approval names the day it was given (YYYY-MM-DD).");
12023
12023
  if (!c.approval.covers?.trim()) refuse3(slug, "the approval says what it covers.");
12024
12024
  }
12025
+ const seenLabels = /* @__PURE__ */ new Map();
12026
+ for (const [fieldKey, def] of entries) {
12027
+ const label = (def.label ?? labelFor(fieldKey)).trim();
12028
+ const norm = label.replace(/\s+/g, " ").toLowerCase();
12029
+ const other = seenLabels.get(norm);
12030
+ if (other !== void 0) refuse3(slug, `two fields called ${JSON.stringify(other.label)} (${other.key} and ${fieldKey}); the store refuses a second column with a label it already has.`);
12031
+ seenLabels.set(norm, { key: fieldKey, label });
12032
+ }
12025
12033
  const specs = entries.map(([fieldKey, def], i) => ({
12026
12034
  key: fieldKey,
12027
12035
  label: def.label ?? labelFor(fieldKey),