@conformetry/core 0.0.5 → 0.0.7

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,3 +1,13 @@
1
+ ## 0.0.7 (2026-10-08)
2
+
3
+ This was a version bump only for conformetry-core to align it with other projects, there were no code changes.
4
+
5
+ ## 0.0.6 (2026-10-08)
6
+
7
+ ### 🚀 Features
8
+
9
+ - **conformetry,lexico:** ✨ add frontend conformetry templates and infer validation inputs ([#1301](https://github.com/organizzolini/codebase/pull/1301))
10
+
1
11
  ## 0.0.5 (2026-10-06)
2
12
 
3
13
  ### 💅 Refactors
package/README.md CHANGED
@@ -217,8 +217,8 @@ graph LR
217
217
 
218
218
  ### Project
219
219
 
220
- ![Lines of Code](https://img.shields.io/badge/Lines_of_Code-491-22c55e?style=flat-square)
221
- ![Repository Size](https://img.shields.io/badge/Repository_Size-28.48_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.42_kB-6b7280?style=flat-square)
222
222
  ![Folders](https://img.shields.io/badge/Folders-4-4a4a4a?style=flat-square)
223
223
  ![Source Files](https://img.shields.io/badge/Source_Files-15-3178c6?style=flat-square)
224
224
 
@@ -233,7 +233,7 @@ graph LR
233
233
  ![Generic Declarations](https://img.shields.io/badge/Generic_Declarations-0-0369a1?style=flat-square)
234
234
  ![Enums](https://img.shields.io/badge/Enums-0-f97316?style=flat-square)
235
235
  ![Decorators](https://img.shields.io/badge/Decorators-2-db2777?style=flat-square)
236
- ![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)
237
237
  ![Static Methods](https://img.shields.io/badge/Static_Methods-0-166534?style=flat-square)
238
238
 
239
239
  ### JavaScript
@@ -249,8 +249,8 @@ graph LR
249
249
  ![Constants](https://img.shields.io/badge/Constants-3-dc2626?style=flat-square)
250
250
  ![Imports](https://img.shields.io/badge/Imports-21-0284c7?style=flat-square)
251
251
  ![Exported Symbols](https://img.shields.io/badge/Exported_Symbols-18-ea580c?style=flat-square)
252
- ![Comments](https://img.shields.io/badge/Comments-71-64748b?style=flat-square)
253
- ![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)
254
254
  ![TODO Comments](https://img.shields.io/badge/TODO_Comments-2-ca8a04?style=flat-square)
255
255
 
256
256
  ### Python
@@ -405,21 +405,21 @@ graph LR
405
405
 
406
406
  ### Markdown
407
407
 
408
- ![Markdown Files](https://img.shields.io/badge/Markdown_Files-1-083fa1?style=flat-square)
409
- ![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-242-1f6feb?style=flat-square)
410
410
  ![H1](https://img.shields.io/badge/H1-1-7c3aed?style=flat-square)
411
- ![H2](https://img.shields.io/badge/H2-7-8b5cf6?style=flat-square)
412
- ![H3](https://img.shields.io/badge/H3-12-a78bfa?style=flat-square)
411
+ ![H2](https://img.shields.io/badge/H2-10-8b5cf6?style=flat-square)
412
+ ![H3](https://img.shields.io/badge/H3-14-a78bfa?style=flat-square)
413
413
  ![H4](https://img.shields.io/badge/H4-0-c4b5fd?style=flat-square)
414
414
  ![H5](https://img.shields.io/badge/H5-0-ddd6fe?style=flat-square)
415
415
  ![H6](https://img.shields.io/badge/H6-0-ede9fe?style=flat-square)
416
- ![Paragraphs](https://img.shields.io/badge/Paragraphs-46-64748b?style=flat-square)
417
- ![Lists](https://img.shields.io/badge/Lists-6-16a34a?style=flat-square)
418
- ![List Items](https://img.shields.io/badge/List_Items-25-22c55e?style=flat-square)
416
+ ![Paragraphs](https://img.shields.io/badge/Paragraphs-49-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)
419
419
  ![Task List Items](https://img.shields.io/badge/Task_List_Items-0-4ade80?style=flat-square)
420
420
  ![Tables](https://img.shields.io/badge/Tables-2-0284c7?style=flat-square)
421
421
  ![Table Rows](https://img.shields.io/badge/Table_Rows-10-0ea5e9?style=flat-square)
422
- ![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)
423
423
  ![Images](https://img.shields.io/badge/Images-0-10b981?style=flat-square)
424
424
  ![Code Blocks](https://img.shields.io/badge/Code_Blocks-11-dc2626?style=flat-square)
425
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
@@ -57,5 +57,5 @@
57
57
  "strict": true
58
58
  },
59
59
  "types": "./dist/src/index.d.ts",
60
- "version": "0.0.5"
60
+ "version": "0.0.7"
61
61
  }