@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 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
+ [![npm](https://img.shields.io/npm/v/@conformetry/core?logo=npm&label=npm)](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
- ![Lines of Code](https://img.shields.io/badge/Lines_of_Code-491-22c55e?style=flat-square)
219
- ![Repository Size](https://img.shields.io/badge/Repository_Size-28.46_kB-6b7280?style=flat-square)
220
+ ![Lines of Code](https://img.shields.io/badge/Lines_of_Code-500-22c55e?style=flat-square)
221
+ ![Repository Size](https://img.shields.io/badge/Repository_Size-29.28_kB-6b7280?style=flat-square)
220
222
  ![Folders](https://img.shields.io/badge/Folders-4-4a4a4a?style=flat-square)
221
223
  ![Source Files](https://img.shields.io/badge/Source_Files-15-3178c6?style=flat-square)
222
224
 
@@ -231,7 +233,7 @@ graph LR
231
233
  ![Generic Declarations](https://img.shields.io/badge/Generic_Declarations-0-0369a1?style=flat-square)
232
234
  ![Enums](https://img.shields.io/badge/Enums-0-f97316?style=flat-square)
233
235
  ![Decorators](https://img.shields.io/badge/Decorators-2-db2777?style=flat-square)
234
- ![Doc Comments](https://img.shields.io/badge/Doc_Comments-54-6366f1?style=flat-square)
236
+ ![Doc Comments](https://img.shields.io/badge/Doc_Comments-55-6366f1?style=flat-square)
235
237
  ![Static Methods](https://img.shields.io/badge/Static_Methods-0-166534?style=flat-square)
236
238
 
237
239
  ### JavaScript
@@ -247,8 +249,8 @@ graph LR
247
249
  ![Constants](https://img.shields.io/badge/Constants-3-dc2626?style=flat-square)
248
250
  ![Imports](https://img.shields.io/badge/Imports-21-0284c7?style=flat-square)
249
251
  ![Exported Symbols](https://img.shields.io/badge/Exported_Symbols-18-ea580c?style=flat-square)
250
- ![Comments](https://img.shields.io/badge/Comments-71-64748b?style=flat-square)
251
- ![Comment Lines](https://img.shields.io/badge/Comment_Lines-174-475569?style=flat-square)
252
+ ![Comments](https://img.shields.io/badge/Comments-72-64748b?style=flat-square)
253
+ ![Comment Lines](https://img.shields.io/badge/Comment_Lines-180-475569?style=flat-square)
252
254
  ![TODO Comments](https://img.shields.io/badge/TODO_Comments-2-ca8a04?style=flat-square)
253
255
 
254
256
  ### Python
@@ -269,16 +271,16 @@ graph LR
269
271
  ### JSON
270
272
 
271
273
  ![JSON Files](https://img.shields.io/badge/JSON_Files-4-a16207?style=flat-square)
272
- ![JSON Lines](https://img.shields.io/badge/JSON_Lines-161-ca8a04?style=flat-square)
274
+ ![JSON Lines](https://img.shields.io/badge/JSON_Lines-162-ca8a04?style=flat-square)
273
275
  ![JSON Objects](https://img.shields.io/badge/JSON_Objects-38-7c3aed?style=flat-square)
274
276
  ![JSON Arrays](https://img.shields.io/badge/JSON_Arrays-13-8b5cf6?style=flat-square)
275
277
  ![JSON Properties](https://img.shields.io/badge/JSON_Properties-98-0284c7?style=flat-square)
276
- ![JSON Strings](https://img.shields.io/badge/JSON_Strings-86-16a34a?style=flat-square)
278
+ ![JSON Strings](https://img.shields.io/badge/JSON_Strings-87-16a34a?style=flat-square)
277
279
  ![JSON Numbers](https://img.shields.io/badge/JSON_Numbers-1-059669?style=flat-square)
278
280
  ![JSON Booleans](https://img.shields.io/badge/JSON_Booleans-7-0ea5e9?style=flat-square)
279
281
  ![JSON Nulls](https://img.shields.io/badge/JSON_Nulls-0-64748b?style=flat-square)
280
- ![JSON Items](https://img.shields.io/badge/JSON_Items-43-475569?style=flat-square)
281
- ![JSON Nodes](https://img.shields.io/badge/JSON_Nodes-145-dc2626?style=flat-square)
282
+ ![JSON Items](https://img.shields.io/badge/JSON_Items-44-475569?style=flat-square)
283
+ ![JSON Nodes](https://img.shields.io/badge/JSON_Nodes-146-dc2626?style=flat-square)
282
284
  ![JSON Max Depth](https://img.shields.io/badge/JSON_Max_Depth-5-ea580c?style=flat-square)
283
285
 
284
286
  ### YAML
@@ -403,21 +405,21 @@ graph LR
403
405
 
404
406
  ### Markdown
405
407
 
406
- ![Markdown Files](https://img.shields.io/badge/Markdown_Files-1-083fa1?style=flat-square)
407
- ![Markdown Lines](https://img.shields.io/badge/Markdown_Lines-227-1f6feb?style=flat-square)
408
+ ![Markdown Files](https://img.shields.io/badge/Markdown_Files-2-083fa1?style=flat-square)
409
+ ![Markdown Lines](https://img.shields.io/badge/Markdown_Lines-238-1f6feb?style=flat-square)
408
410
  ![H1](https://img.shields.io/badge/H1-1-7c3aed?style=flat-square)
409
- ![H2](https://img.shields.io/badge/H2-7-8b5cf6?style=flat-square)
410
- ![H3](https://img.shields.io/badge/H3-12-a78bfa?style=flat-square)
411
+ ![H2](https://img.shields.io/badge/H2-9-8b5cf6?style=flat-square)
412
+ ![H3](https://img.shields.io/badge/H3-14-a78bfa?style=flat-square)
411
413
  ![H4](https://img.shields.io/badge/H4-0-c4b5fd?style=flat-square)
412
414
  ![H5](https://img.shields.io/badge/H5-0-ddd6fe?style=flat-square)
413
415
  ![H6](https://img.shields.io/badge/H6-0-ede9fe?style=flat-square)
414
- ![Paragraphs](https://img.shields.io/badge/Paragraphs-46-64748b?style=flat-square)
415
- ![Lists](https://img.shields.io/badge/Lists-6-16a34a?style=flat-square)
416
- ![List Items](https://img.shields.io/badge/List_Items-25-22c55e?style=flat-square)
416
+ ![Paragraphs](https://img.shields.io/badge/Paragraphs-48-64748b?style=flat-square)
417
+ ![Lists](https://img.shields.io/badge/Lists-8-16a34a?style=flat-square)
418
+ ![List Items](https://img.shields.io/badge/List_Items-27-22c55e?style=flat-square)
417
419
  ![Task List Items](https://img.shields.io/badge/Task_List_Items-0-4ade80?style=flat-square)
418
420
  ![Tables](https://img.shields.io/badge/Tables-2-0284c7?style=flat-square)
419
421
  ![Table Rows](https://img.shields.io/badge/Table_Rows-10-0ea5e9?style=flat-square)
420
- ![Links](https://img.shields.io/badge/Links-9-059669?style=flat-square)
422
+ ![Links](https://img.shields.io/badge/Links-11-059669?style=flat-square)
421
423
  ![Images](https://img.shields.io/badge/Images-0-10b981?style=flat-square)
422
424
  ![Code Blocks](https://img.shields.io/badge/Code_Blocks-11-dc2626?style=flat-square)
423
425
  ![Inline Code](https://img.shields.io/badge/Inline_Code-74-ef4444?style=flat-square)
@@ -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
@@ -25,6 +25,7 @@
25
25
  "./package.json": "./package.json"
26
26
  },
27
27
  "files": [
28
+ "CHANGELOG.md",
28
29
  "dist",
29
30
  "LICENSE",
30
31
  "README.md"
@@ -56,5 +57,5 @@
56
57
  "strict": true
57
58
  },
58
59
  "types": "./dist/src/index.d.ts",
59
- "version": "0.0.4"
60
+ "version": "0.0.6"
60
61
  }