@cardenelabs/cdl 0.40.11 → 0.40.12
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 +26 -1
- package/dist/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +3 -1
- package/dist/react.cjs.map +1 -1
- package/dist/react.js +3 -1
- package/dist/react.js.map +1 -1
- package/package.json +1 -1
- package/src/visual-validate.ts +19 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,30 @@ CDL (Chainome Diagram Language) の主要変更履歴。
|
|
|
5
5
|
|
|
6
6
|
## [Unreleased]
|
|
7
7
|
|
|
8
|
+
## [0.40.12] - 2026-09-10
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- **表の列に書いた型の名前を、データと読み違えて注意を出さなくなった** (#771)
|
|
13
|
+
|
|
14
|
+
行の検査 `row-content-typing` は `名前: 値` の名前から値の型を推し量る。 ER 図とクラス図は
|
|
15
|
+
値の位置に **型の名前** を書くので、そのままでは `total: numeric` が「数字を期待したのに
|
|
16
|
+
`numeric`」 と読まれていた。
|
|
17
|
+
|
|
18
|
+
逃げ道は型名を並べた手書きの一覧で、`BIGINT` / `INT` / `FLOAT` / `VARCHAR` は載っている
|
|
19
|
+
一方 `numeric` が抜けていた。 同じ形で `decimal` / `jsonb` / `interval` も抜けている。
|
|
20
|
+
**書き手が思い付いた名前が上限になる** 形で、方言ごとに増える型名を追えない。
|
|
21
|
+
|
|
22
|
+
行が列の宣言かどうかを、値の語ではなく **行頭の印** (`rowMarks`) で決めるようにした。
|
|
23
|
+
印は `er` / `classDiagram` が `columns` / `attributes` を受け取った時だけ付くので、
|
|
24
|
+
印がある行は engine 自身が「値の位置に型の名前が来る」 と知っている。
|
|
25
|
+
|
|
26
|
+
外すのは **行の単位** にした。 箱の単位で外すと、印を持つ箱に混ざった印なしの行の実データ
|
|
27
|
+
まで見なくなる。
|
|
28
|
+
|
|
29
|
+
手書きの一覧は残す。 `rows` を直接書いた古い形は印を持たないので、消すと丸ごと注意に
|
|
30
|
+
落ちる。 一方で **足しもしない** = 足すと同じ穴が次の型名で戻る。
|
|
31
|
+
|
|
8
32
|
## [0.40.11] - 2026-09-09
|
|
9
33
|
|
|
10
34
|
### Fixed
|
|
@@ -2063,7 +2087,8 @@ Initial OSS release.
|
|
|
2063
2087
|
使わない = annotated tag を push しても GitHub Release は作られず、 Release を作っていない版で
|
|
2064
2088
|
行き止まりになる。
|
|
2065
2089
|
|
|
2066
|
-
[Unreleased]: https://github.com/cardene777/cdl/compare/v0.40.
|
|
2090
|
+
[Unreleased]: https://github.com/cardene777/cdl/compare/v0.40.12...HEAD
|
|
2091
|
+
[0.40.12]: https://github.com/cardene777/cdl/compare/v0.40.11...v0.40.12
|
|
2067
2092
|
[0.40.11]: https://github.com/cardene777/cdl/compare/v0.40.10...v0.40.11
|
|
2068
2093
|
[0.40.10]: https://github.com/cardene777/cdl/compare/v0.40.9...v0.40.10
|
|
2069
2094
|
[0.40.9]: https://github.com/cardene777/cdl/compare/v0.40.8...v0.40.9
|
package/dist/index.cjs
CHANGED
|
@@ -17214,7 +17214,9 @@ function runAxes(laid, diag, violations, counts, push, profile, skippedAxes) {
|
|
|
17214
17214
|
const SCHEMA_KEYWORDS = /^(string|number|boolean|text|enum|timestamp|date|datetime|json|blob|PK|FK|UUID|BIGINT|INT|FLOAT|VARCHAR|TEXT|DATETIME)$|^enum\(|^varchar\(/i;
|
|
17215
17215
|
for (const n of diag.nodes) {
|
|
17216
17216
|
if (!n.rows) continue;
|
|
17217
|
-
for (
|
|
17217
|
+
for (let i = 0; i < n.rows.length; i++) {
|
|
17218
|
+
const row = n.rows[i];
|
|
17219
|
+
if (n.rowMarks?.[i] != null) continue;
|
|
17218
17220
|
const m = row.match(/^([^:]+):\s*(.+)$/);
|
|
17219
17221
|
if (!m) continue;
|
|
17220
17222
|
const [, key, value] = m;
|