@conformetry/core 0.0.4 → 0.0.6
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 +11 -0
- package/README.md +19 -17
- package/dist/src/index.d.ts +10 -2
- package/package.json +2 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
## 0.0.6 (2026-10-08)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- **conformetry,lexico:** ✨ add frontend conformetry templates and infer validation inputs ([#1301](https://github.com/organizzolini/codebase/pull/1301))
|
|
6
|
+
|
|
7
|
+
## 0.0.5 (2026-10-06)
|
|
8
|
+
|
|
9
|
+
### 💅 Refactors
|
|
10
|
+
|
|
11
|
+
- **ic-suite:** ♻️ rename @codebase/logger to @codebase/logging ([#1208](https://github.com/organizzolini/codebase/pull/1208))
|
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# 👔 Conformetry Core
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/@conformetry/core)
|
|
4
|
+
|
|
3
5
|
The shared contract every other [Conformetry](../conformetry-cli/README.md)
|
|
4
6
|
package builds on. It is the contracts leaf of the five-layer spine — `core <-
|
|
5
7
|
configuration <- analysis <- output <- cli` — so it declares types and holds
|
|
@@ -215,8 +217,8 @@ graph LR
|
|
|
215
217
|
|
|
216
218
|
### Project
|
|
217
219
|
|
|
218
|
-

|
|
221
|
+

|
|
220
222
|

|
|
221
223
|

|
|
222
224
|
|
|
@@ -231,7 +233,7 @@ graph LR
|
|
|
231
233
|

|
|
232
234
|

|
|
233
235
|

|
|
234
|
-

|
|
235
237
|

|
|
236
238
|
|
|
237
239
|
### JavaScript
|
|
@@ -247,8 +249,8 @@ graph LR
|
|
|
247
249
|

|
|
248
250
|

|
|
249
251
|

|
|
250
|
-

|
|
253
|
+

|
|
252
254
|

|
|
253
255
|
|
|
254
256
|
### Python
|
|
@@ -269,16 +271,16 @@ graph LR
|
|
|
269
271
|
### JSON
|
|
270
272
|
|
|
271
273
|

|
|
272
|
-

|
|
273
275
|

|
|
274
276
|

|
|
275
277
|

|
|
276
|
-

|
|
277
279
|

|
|
278
280
|

|
|
279
281
|

|
|
280
|
-

|
|
283
|
+

|
|
282
284
|

|
|
283
285
|
|
|
284
286
|
### YAML
|
|
@@ -403,21 +405,21 @@ graph LR
|
|
|
403
405
|
|
|
404
406
|
### Markdown
|
|
405
407
|
|
|
406
|
-

|
|
409
|
+

|
|
408
410
|

|
|
409
|
-

|
|
412
|
+

|
|
411
413
|

|
|
412
414
|

|
|
413
415
|

|
|
414
|
-

|
|
417
|
+

|
|
418
|
+

|
|
417
419
|

|
|
418
420
|

|
|
419
421
|

|
|
420
|
-

|
|
421
423
|

|
|
422
424
|

|
|
423
425
|

|
package/dist/src/index.d.ts
CHANGED
|
@@ -76,9 +76,10 @@ export declare type ConformetryDifferenceLanguage = "javascript" | "json" | "mar
|
|
|
76
76
|
*
|
|
77
77
|
* `"instance"` is the odd one out: it does not name a missing element inside a
|
|
78
78
|
* file but a directory or file the caller declared to be generated code, which
|
|
79
|
-
* conformetry could not attribute to any single template.
|
|
79
|
+
* conformetry could not attribute to any single template. `"placeholder"`
|
|
80
|
+
* names a template placeholder whose value no instance node revealed.
|
|
80
81
|
*/
|
|
81
|
-
export declare type ConformetryDifferenceType = "code" | "comment" | "directory" | "file" | "instance";
|
|
82
|
+
export declare type ConformetryDifferenceType = "code" | "comment" | "directory" | "file" | "instance" | "placeholder";
|
|
82
83
|
|
|
83
84
|
/**
|
|
84
85
|
* A validator for one language or file format.
|
|
@@ -112,6 +113,13 @@ export declare interface ConformetryLanguageValidator {
|
|
|
112
113
|
* only against the files it got wrong.
|
|
113
114
|
*/
|
|
114
115
|
export declare interface DocumentValidationResult {
|
|
116
|
+
/**
|
|
117
|
+
* What each placeholder value in the rendered template stood for, keyed by
|
|
118
|
+
* the value: the text of the instance node the comparison aligned with the
|
|
119
|
+
* template node holding it, first occurrence first. Absent when a language
|
|
120
|
+
* captures nothing.
|
|
121
|
+
*/
|
|
122
|
+
readonly captures?: Readonly<Record<string, string>>;
|
|
115
123
|
readonly differences: ConformetryDifference[];
|
|
116
124
|
/** Combined weight of the template requirements this document imposes. */
|
|
117
125
|
readonly totalWeight: number;
|
package/package.json
CHANGED