@twin.org/tools-core 0.0.3-next.9 → 0.0.4-next.1
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/README.md +2 -2
- package/dist/es/index.js +21 -11
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/ITypeScriptToSchemaContext.js +2 -0
- package/dist/es/models/ITypeScriptToSchemaContext.js.map +1 -0
- package/dist/es/models/ITypeScriptToSchemaDiagnostics.js +4 -0
- package/dist/es/models/ITypeScriptToSchemaDiagnostics.js.map +1 -0
- package/dist/es/models/ITypeScriptToSchemaOptions.js +4 -0
- package/dist/es/models/ITypeScriptToSchemaOptions.js.map +1 -0
- package/dist/es/models/embeddedSchemaMode.js +17 -0
- package/dist/es/models/embeddedSchemaMode.js.map +1 -0
- package/dist/es/utils/constants.js +43 -0
- package/dist/es/utils/constants.js.map +1 -0
- package/dist/es/utils/diagnosticReporter.js +32 -0
- package/dist/es/utils/diagnosticReporter.js.map +1 -0
- package/dist/es/utils/disallowedTypeGuard.js +151 -0
- package/dist/es/utils/disallowedTypeGuard.js.map +1 -0
- package/dist/es/utils/enum.js +152 -0
- package/dist/es/utils/enum.js.map +1 -0
- package/dist/es/utils/fileUtils.js +132 -0
- package/dist/es/utils/fileUtils.js.map +1 -0
- package/dist/es/utils/importTypeQuerySchemaResolver.js +363 -0
- package/dist/es/utils/importTypeQuerySchemaResolver.js.map +1 -0
- package/dist/es/utils/indexSignaturePatternResolver.js +94 -0
- package/dist/es/utils/indexSignaturePatternResolver.js.map +1 -0
- package/dist/es/utils/intersectionSchemaMerger.js +85 -0
- package/dist/es/utils/intersectionSchemaMerger.js.map +1 -0
- package/dist/es/utils/jsDoc.js +138 -0
- package/dist/es/utils/jsDoc.js.map +1 -0
- package/dist/es/utils/jsonSchemaBuilder.js +3416 -0
- package/dist/es/utils/jsonSchemaBuilder.js.map +1 -0
- package/dist/es/utils/mappedTypeSchemaResolver.js +265 -0
- package/dist/es/utils/mappedTypeSchemaResolver.js.map +1 -0
- package/dist/es/utils/objectTransformer.js +161 -0
- package/dist/es/utils/objectTransformer.js.map +1 -0
- package/dist/es/utils/regEx.js +128 -0
- package/dist/es/utils/regEx.js.map +1 -0
- package/dist/es/utils/resolver.js +177 -0
- package/dist/es/utils/resolver.js.map +1 -0
- package/dist/es/utils/templateLiteralPatternBuilder.js +94 -0
- package/dist/es/utils/templateLiteralPatternBuilder.js.map +1 -0
- package/dist/es/utils/typeScriptToSchema.js +319 -0
- package/dist/es/utils/typeScriptToSchema.js.map +1 -0
- package/dist/es/utils/utilityTypeSchemaMapper.js +475 -0
- package/dist/es/utils/utilityTypeSchemaMapper.js.map +1 -0
- package/dist/types/index.d.ts +21 -11
- package/dist/types/models/ITypeScriptToSchemaContext.d.ts +71 -0
- package/dist/types/models/ITypeScriptToSchemaDiagnostics.d.ts +31 -0
- package/dist/types/models/ITypeScriptToSchemaOptions.d.ts +22 -0
- package/dist/types/models/embeddedSchemaMode.d.ts +17 -0
- package/dist/types/utils/constants.d.ts +13 -0
- package/dist/types/utils/diagnosticReporter.d.ts +17 -0
- package/dist/types/utils/disallowedTypeGuard.d.ts +16 -0
- package/dist/types/utils/enum.d.ts +42 -0
- package/dist/types/utils/fileUtils.d.ts +66 -0
- package/dist/types/utils/importTypeQuerySchemaResolver.d.ts +87 -0
- package/dist/types/utils/indexSignaturePatternResolver.d.ts +21 -0
- package/dist/types/utils/intersectionSchemaMerger.d.ts +16 -0
- package/dist/types/utils/jsDoc.d.ts +53 -0
- package/dist/types/utils/jsonSchemaBuilder.d.ts +671 -0
- package/dist/types/utils/mappedTypeSchemaResolver.d.ts +81 -0
- package/dist/types/utils/objectTransformer.d.ts +33 -0
- package/dist/types/utils/regEx.d.ts +24 -0
- package/dist/types/utils/resolver.d.ts +22 -0
- package/dist/types/utils/templateLiteralPatternBuilder.d.ts +12 -0
- package/dist/types/utils/typeScriptToSchema.d.ts +92 -0
- package/dist/types/utils/utilityTypeSchemaMapper.d.ts +141 -0
- package/docs/changelog.md +383 -40
- package/docs/examples.md +87 -1
- package/docs/reference/classes/Constants.md +29 -0
- package/docs/reference/classes/DiagnosticReporter.md +49 -0
- package/docs/reference/classes/DisallowedTypeGuard.md +35 -0
- package/docs/reference/classes/Enum.md +93 -0
- package/docs/reference/classes/FileUtils.md +237 -0
- package/docs/reference/classes/ImportTypeQuerySchemaResolver.md +109 -0
- package/docs/reference/classes/IndexSignaturePatternResolver.md +69 -0
- package/docs/reference/classes/IntersectionSchemaMerger.md +48 -0
- package/docs/reference/classes/JsDoc.md +169 -0
- package/docs/reference/classes/JsonSchemaBuilder.md +2578 -0
- package/docs/reference/classes/MappedTypeSchemaResolver.md +275 -0
- package/docs/reference/classes/ObjectTransformer.md +119 -0
- package/docs/reference/classes/RegEx.md +99 -0
- package/docs/reference/classes/Resolver.md +52 -0
- package/docs/reference/classes/TemplateLiteralPatternBuilder.md +35 -0
- package/docs/reference/classes/TypeScriptToSchema.md +91 -0
- package/docs/reference/classes/UtilityTypeSchemaMapper.md +343 -0
- package/docs/reference/index.md +25 -11
- package/docs/reference/interfaces/ITypeScriptToSchemaContext.md +125 -0
- package/docs/reference/interfaces/ITypeScriptToSchemaDiagnostics.md +55 -0
- package/docs/reference/interfaces/ITypeScriptToSchemaOptions.md +44 -0
- package/docs/reference/type-aliases/EmbeddedSchemaMode.md +5 -0
- package/docs/reference/variables/EmbeddedSchemaMode.md +19 -0
- package/locales/en.json +32 -1
- package/package.json +6 -5
- package/dist/es/models/IJsonSchema.js +0 -2
- package/dist/es/models/IJsonSchema.js.map +0 -1
- package/dist/es/models/IOpenApi.js +0 -2
- package/dist/es/models/IOpenApi.js.map +0 -1
- package/dist/es/models/IOpenApiExample.js +0 -4
- package/dist/es/models/IOpenApiExample.js.map +0 -1
- package/dist/es/models/IOpenApiHeader.js +0 -4
- package/dist/es/models/IOpenApiHeader.js.map +0 -1
- package/dist/es/models/IOpenApiPathMethod.js +0 -2
- package/dist/es/models/IOpenApiPathMethod.js.map +0 -1
- package/dist/es/models/IOpenApiResponse.js +0 -2
- package/dist/es/models/IOpenApiResponse.js.map +0 -1
- package/dist/es/models/IOpenApiSecurityScheme.js +0 -4
- package/dist/es/models/IOpenApiSecurityScheme.js.map +0 -1
- package/dist/es/models/IPackageJson.js +0 -4
- package/dist/es/models/IPackageJson.js.map +0 -1
- package/dist/es/models/jsonTypeName.js +0 -2
- package/dist/es/models/jsonTypeName.js.map +0 -1
- package/dist/es/utils/jsonSchemaHelper.js +0 -258
- package/dist/es/utils/jsonSchemaHelper.js.map +0 -1
- package/dist/es/utils/openApiHelper.js +0 -12
- package/dist/es/utils/openApiHelper.js.map +0 -1
- package/dist/types/models/IJsonSchema.d.ts +0 -5
- package/dist/types/models/IOpenApi.d.ts +0 -54
- package/dist/types/models/IOpenApiExample.d.ts +0 -13
- package/dist/types/models/IOpenApiHeader.d.ts +0 -19
- package/dist/types/models/IOpenApiPathMethod.d.ts +0 -65
- package/dist/types/models/IOpenApiResponse.d.ts +0 -32
- package/dist/types/models/IOpenApiSecurityScheme.d.ts +0 -25
- package/dist/types/models/IPackageJson.d.ts +0 -15
- package/dist/types/models/jsonTypeName.d.ts +0 -5
- package/dist/types/utils/jsonSchemaHelper.d.ts +0 -78
- package/dist/types/utils/openApiHelper.d.ts +0 -9
- package/docs/reference/classes/JsonSchemaHelper.md +0 -233
- package/docs/reference/classes/OpenApiHelper.md +0 -21
- package/docs/reference/interfaces/IOpenApi.md +0 -103
- package/docs/reference/interfaces/IOpenApiExample.md +0 -19
- package/docs/reference/interfaces/IOpenApiHeader.md +0 -31
- package/docs/reference/interfaces/IOpenApiPathMethod.md +0 -119
- package/docs/reference/interfaces/IOpenApiResponse.md +0 -35
- package/docs/reference/interfaces/IOpenApiSecurityScheme.md +0 -43
- package/docs/reference/interfaces/IPackageJson.md +0 -23
- package/docs/reference/type-aliases/IJsonSchema.md +0 -5
- package/docs/reference/type-aliases/JsonTypeName.md +0 -5
package/docs/changelog.md
CHANGED
|
@@ -1,145 +1,488 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## [0.0.
|
|
3
|
+
## [0.0.4-next.1](https://github.com/iotaledger/twin-tools/compare/tools-core-v0.0.4-next.0...tools-core-v0.0.4-next.1) (2026-05-29)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add 'byte' to supported json-schema format values ([#122](https://github.com/iotaledger/twin-tools/issues/122)) ([54c2a27](https://github.com/iotaledger/twin-tools/commit/54c2a279c1fdc4f6779667e3deb3de3a199237ac))
|
|
9
|
+
* add context id features ([#54](https://github.com/iotaledger/twin-tools/issues/54)) ([41ad65d](https://github.com/iotaledger/twin-tools/commit/41ad65d5ae33d0533d32a2864cd94e5c35e56c76))
|
|
10
|
+
* add examples to json schema ([#109](https://github.com/iotaledger/twin-tools/issues/109)) ([def5b13](https://github.com/iotaledger/twin-tools/commit/def5b1312e7a0ffefe662fb14575cb655d1c0774))
|
|
11
|
+
* add jsdoc default value to schema ([7886a84](https://github.com/iotaledger/twin-tools/commit/7886a84961e692d2054f223e2e99205a654b76a6))
|
|
12
|
+
* add jsdoc tag validation ([971b8d3](https://github.com/iotaledger/twin-tools/commit/971b8d3817d40467bfd7549c99af602f0c590299))
|
|
13
|
+
* add json-schema embedded mode ([#102](https://github.com/iotaledger/twin-tools/issues/102)) ([f070967](https://github.com/iotaledger/twin-tools/commit/f070967f8f3308e0b5320eab278a319c9d229e3e))
|
|
14
|
+
* add support for auto expand types ([dd1e10a](https://github.com/iotaledger/twin-tools/commit/dd1e10a5b2fea6f80890ff6f3971f48e239cb4c1))
|
|
15
|
+
* add validate-locales ([97bb11f](https://github.com/iotaledger/twin-tools/commit/97bb11fd9e6ed400e7fa69671075ba78f36ca6e6))
|
|
16
|
+
* correctly handle auto expand types ([57fce0f](https://github.com/iotaledger/twin-tools/commit/57fce0f9ec4a0876665d70adc6e885f6feb3caf7))
|
|
17
|
+
* eslint migration to flat config ([25acfcf](https://github.com/iotaledger/twin-tools/commit/25acfcf4c4e0c496fffeaf67659fe171bc15199a))
|
|
18
|
+
* improve auto expand types ([6181d1d](https://github.com/iotaledger/twin-tools/commit/6181d1daded1f91323195cf7efbc2f1881f38b41))
|
|
19
|
+
* improve discriminated unions ([9c36ea7](https://github.com/iotaledger/twin-tools/commit/9c36ea7283230089ff19085ddc4b4c30a4e3f8a2))
|
|
20
|
+
* improve inheritance redefinition optionality ([e7024f6](https://github.com/iotaledger/twin-tools/commit/e7024f699988c0b3de8315a0dbe455a13268e75d))
|
|
21
|
+
* improve type name normalisation ([1fe28e5](https://github.com/iotaledger/twin-tools/commit/1fe28e567593e46a41a833fbba95fe4cd958f525))
|
|
22
|
+
* remove additionalProperties ([f9b5d81](https://github.com/iotaledger/twin-tools/commit/f9b5d81e952468f9579593cb979f2b84db6f0dfa))
|
|
23
|
+
* remove auto expanded types from final output ([18e05dc](https://github.com/iotaledger/twin-tools/commit/18e05dc88f71a0a27b79d1d076b1261b42d2c4c2))
|
|
24
|
+
* tighten the types included with the regex matching ([e54909b](https://github.com/iotaledger/twin-tools/commit/e54909bded4a19d00560dd3ec783e9146580bda3))
|
|
25
|
+
* ts to schema ([#86](https://github.com/iotaledger/twin-tools/issues/86)) ([ffebda5](https://github.com/iotaledger/twin-tools/commit/ffebda5f14ab5ec734bf37c9fb70a7ec3d4012c3))
|
|
26
|
+
* typescript 6 update ([02d2e47](https://github.com/iotaledger/twin-tools/commit/02d2e47859a1d64c81e840626cc2d443816af45b))
|
|
27
|
+
* update dependencies ([5bdd8be](https://github.com/iotaledger/twin-tools/commit/5bdd8becf9f08b35342ea8f298f74578951f4bac))
|
|
28
|
+
* update framework core ([559cb98](https://github.com/iotaledger/twin-tools/commit/559cb98612c05a05458b37462cda806b9591b18a))
|
|
29
|
+
* use correct json-ld context schema ([c831486](https://github.com/iotaledger/twin-tools/commit/c8314864a63635556cd5f2912162a2989056e974))
|
|
30
|
+
* use jsdoc tags for json-ld markup ([1ea872e](https://github.com/iotaledger/twin-tools/commit/1ea872e07a1cc0e94178158a57383d64008e02e3))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Bug Fixes
|
|
34
|
+
|
|
35
|
+
* additionalItems object check ([ca81668](https://github.com/iotaledger/twin-tools/commit/ca81668e1ee0d2b1a479215265e651932d7b76de))
|
|
36
|
+
* ajv stack overflow for oneOf on large enums ([#112](https://github.com/iotaledger/twin-tools/issues/112)) ([6be32a3](https://github.com/iotaledger/twin-tools/commit/6be32a3ae5b3cf188c0d1caf1080f497b648705c))
|
|
37
|
+
* improve schema output ([9e53cbe](https://github.com/iotaledger/twin-tools/commit/9e53cbe26e6272323d72c65e277b7d24521fdbba))
|
|
38
|
+
* missing type definitions when importing relative from dynamic node_modules ([52d9fc5](https://github.com/iotaledger/twin-tools/commit/52d9fc5f2618a09c02b9f5dbe585b37cf60c9f20))
|
|
39
|
+
* module resolution ([f3aa10c](https://github.com/iotaledger/twin-tools/commit/f3aa10c9c9af073de392a2ef6b8411e947e991c2))
|
|
40
|
+
* work for schema generator spread defect ([1a705ff](https://github.com/iotaledger/twin-tools/commit/1a705ffc74b353f652e74ea43454164a2f6740bf))
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Dependencies
|
|
44
|
+
|
|
45
|
+
* The following workspace dependencies were updated
|
|
46
|
+
* dependencies
|
|
47
|
+
* @twin.org/tools-models bumped from 0.0.4-next.0 to 0.0.4-next.1
|
|
48
|
+
|
|
49
|
+
## [0.0.3](https://github.com/iotaledger/twin-tools/compare/tools-core-v0.0.3...tools-core-v0.0.3) (2026-05-29)
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
### Features
|
|
53
|
+
|
|
54
|
+
* release to production ([ad24b7e](https://github.com/iotaledger/twin-tools/commit/ad24b7eb16784165b6c93b5c48788199f0e17526))
|
|
55
|
+
* release to production ([#119](https://github.com/iotaledger/twin-tools/issues/119)) ([cc2828a](https://github.com/iotaledger/twin-tools/commit/cc2828a6c68466bfdeaf75b507bc980dddac2cf0))
|
|
56
|
+
|
|
57
|
+
## [0.0.3-next.31](https://github.com/iotaledger/twin-tools/compare/tools-core-v0.0.3-next.30...tools-core-v0.0.3-next.31) (2026-05-19)
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
### Features
|
|
61
|
+
|
|
62
|
+
* update dependencies ([5bdd8be](https://github.com/iotaledger/twin-tools/commit/5bdd8becf9f08b35342ea8f298f74578951f4bac))
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
### Dependencies
|
|
66
|
+
|
|
67
|
+
* The following workspace dependencies were updated
|
|
68
|
+
* dependencies
|
|
69
|
+
* @twin.org/tools-models bumped from 0.0.3-next.30 to 0.0.3-next.31
|
|
70
|
+
|
|
71
|
+
## [0.0.3-next.30](https://github.com/iotaledger/twin-tools/compare/tools-core-v0.0.3-next.29...tools-core-v0.0.3-next.30) (2026-05-18)
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
### Bug Fixes
|
|
75
|
+
|
|
76
|
+
* ajv stack overflow for oneOf on large enums ([#112](https://github.com/iotaledger/twin-tools/issues/112)) ([6be32a3](https://github.com/iotaledger/twin-tools/commit/6be32a3ae5b3cf188c0d1caf1080f497b648705c))
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
### Dependencies
|
|
80
|
+
|
|
81
|
+
* The following workspace dependencies were updated
|
|
82
|
+
* dependencies
|
|
83
|
+
* @twin.org/tools-models bumped from 0.0.3-next.29 to 0.0.3-next.30
|
|
84
|
+
|
|
85
|
+
## [0.0.3-next.29](https://github.com/iotaledger/twin-tools/compare/tools-core-v0.0.3-next.28...tools-core-v0.0.3-next.29) (2026-05-14)
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
### Features
|
|
89
|
+
|
|
90
|
+
* add examples to json schema ([#109](https://github.com/iotaledger/twin-tools/issues/109)) ([def5b13](https://github.com/iotaledger/twin-tools/commit/def5b1312e7a0ffefe662fb14575cb655d1c0774))
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
### Dependencies
|
|
94
|
+
|
|
95
|
+
* The following workspace dependencies were updated
|
|
96
|
+
* dependencies
|
|
97
|
+
* @twin.org/tools-models bumped from 0.0.3-next.28 to 0.0.3-next.29
|
|
98
|
+
|
|
99
|
+
## [0.0.3-next.28](https://github.com/iotaledger/twin-tools/compare/tools-core-v0.0.3-next.27...tools-core-v0.0.3-next.28) (2026-05-11)
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
### Features
|
|
103
|
+
|
|
104
|
+
* typescript 6 update ([02d2e47](https://github.com/iotaledger/twin-tools/commit/02d2e47859a1d64c81e840626cc2d443816af45b))
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
### Dependencies
|
|
108
|
+
|
|
109
|
+
* The following workspace dependencies were updated
|
|
110
|
+
* dependencies
|
|
111
|
+
* @twin.org/tools-models bumped from 0.0.3-next.27 to 0.0.3-next.28
|
|
112
|
+
|
|
113
|
+
## [0.0.3-next.27](https://github.com/iotaledger/twin-tools/compare/tools-core-v0.0.3-next.26...tools-core-v0.0.3-next.27) (2026-03-27)
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
### Miscellaneous Chores
|
|
117
|
+
|
|
118
|
+
* **tools-core:** Synchronize repo versions
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
### Dependencies
|
|
122
|
+
|
|
123
|
+
* The following workspace dependencies were updated
|
|
124
|
+
* dependencies
|
|
125
|
+
* @twin.org/tools-models bumped from 0.0.3-next.26 to 0.0.3-next.27
|
|
126
|
+
|
|
127
|
+
## [0.0.3-next.26](https://github.com/iotaledger/twin-tools/compare/tools-core-v0.0.3-next.25...tools-core-v0.0.3-next.26) (2026-03-27)
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
### Features
|
|
131
|
+
|
|
132
|
+
* add json-schema embedded mode ([#102](https://github.com/iotaledger/twin-tools/issues/102)) ([f070967](https://github.com/iotaledger/twin-tools/commit/f070967f8f3308e0b5320eab278a319c9d229e3e))
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
### Dependencies
|
|
136
|
+
|
|
137
|
+
* The following workspace dependencies were updated
|
|
138
|
+
* dependencies
|
|
139
|
+
* @twin.org/tools-models bumped from 0.0.3-next.25 to 0.0.3-next.26
|
|
140
|
+
|
|
141
|
+
## [0.0.3-next.25](https://github.com/iotaledger/twin-tools/compare/tools-core-v0.0.3-next.24...tools-core-v0.0.3-next.25) (2026-03-23)
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
### Bug Fixes
|
|
145
|
+
|
|
146
|
+
* module resolution ([f3aa10c](https://github.com/iotaledger/twin-tools/commit/f3aa10c9c9af073de392a2ef6b8411e947e991c2))
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
### Dependencies
|
|
150
|
+
|
|
151
|
+
* The following workspace dependencies were updated
|
|
152
|
+
* dependencies
|
|
153
|
+
* @twin.org/tools-models bumped from 0.0.3-next.24 to 0.0.3-next.25
|
|
154
|
+
|
|
155
|
+
## [0.0.3-next.24](https://github.com/iotaledger/twin-tools/compare/tools-core-v0.0.3-next.23...tools-core-v0.0.3-next.24) (2026-03-20)
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
### Features
|
|
159
|
+
|
|
160
|
+
* use correct json-ld context schema ([c831486](https://github.com/iotaledger/twin-tools/commit/c8314864a63635556cd5f2912162a2989056e974))
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
### Dependencies
|
|
164
|
+
|
|
165
|
+
* The following workspace dependencies were updated
|
|
166
|
+
* dependencies
|
|
167
|
+
* @twin.org/tools-models bumped from 0.0.3-next.23 to 0.0.3-next.24
|
|
168
|
+
|
|
169
|
+
## [0.0.3-next.23](https://github.com/iotaledger/twin-tools/compare/tools-core-v0.0.3-next.22...tools-core-v0.0.3-next.23) (2026-03-20)
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
### Features
|
|
173
|
+
|
|
174
|
+
* improve inheritance redefinition optionality ([e7024f6](https://github.com/iotaledger/twin-tools/commit/e7024f699988c0b3de8315a0dbe455a13268e75d))
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
### Dependencies
|
|
178
|
+
|
|
179
|
+
* The following workspace dependencies were updated
|
|
180
|
+
* dependencies
|
|
181
|
+
* @twin.org/tools-models bumped from 0.0.3-next.22 to 0.0.3-next.23
|
|
182
|
+
|
|
183
|
+
## [0.0.3-next.22](https://github.com/iotaledger/twin-tools/compare/tools-core-v0.0.3-next.21...tools-core-v0.0.3-next.22) (2026-03-20)
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
### Features
|
|
187
|
+
|
|
188
|
+
* add context id features ([#54](https://github.com/iotaledger/twin-tools/issues/54)) ([41ad65d](https://github.com/iotaledger/twin-tools/commit/41ad65d5ae33d0533d32a2864cd94e5c35e56c76))
|
|
189
|
+
* add jsdoc default value to schema ([7886a84](https://github.com/iotaledger/twin-tools/commit/7886a84961e692d2054f223e2e99205a654b76a6))
|
|
190
|
+
* add jsdoc tag validation ([971b8d3](https://github.com/iotaledger/twin-tools/commit/971b8d3817d40467bfd7549c99af602f0c590299))
|
|
191
|
+
* add support for auto expand types ([dd1e10a](https://github.com/iotaledger/twin-tools/commit/dd1e10a5b2fea6f80890ff6f3971f48e239cb4c1))
|
|
192
|
+
* add validate-locales ([97bb11f](https://github.com/iotaledger/twin-tools/commit/97bb11fd9e6ed400e7fa69671075ba78f36ca6e6))
|
|
193
|
+
* correctly handle auto expand types ([57fce0f](https://github.com/iotaledger/twin-tools/commit/57fce0f9ec4a0876665d70adc6e885f6feb3caf7))
|
|
194
|
+
* eslint migration to flat config ([25acfcf](https://github.com/iotaledger/twin-tools/commit/25acfcf4c4e0c496fffeaf67659fe171bc15199a))
|
|
195
|
+
* improve auto expand types ([6181d1d](https://github.com/iotaledger/twin-tools/commit/6181d1daded1f91323195cf7efbc2f1881f38b41))
|
|
196
|
+
* improve discriminated unions ([9c36ea7](https://github.com/iotaledger/twin-tools/commit/9c36ea7283230089ff19085ddc4b4c30a4e3f8a2))
|
|
197
|
+
* improve type name normalisation ([1fe28e5](https://github.com/iotaledger/twin-tools/commit/1fe28e567593e46a41a833fbba95fe4cd958f525))
|
|
198
|
+
* remove additionalProperties ([f9b5d81](https://github.com/iotaledger/twin-tools/commit/f9b5d81e952468f9579593cb979f2b84db6f0dfa))
|
|
199
|
+
* remove auto expanded types from final output ([18e05dc](https://github.com/iotaledger/twin-tools/commit/18e05dc88f71a0a27b79d1d076b1261b42d2c4c2))
|
|
200
|
+
* tighten the types included with the regex matching ([e54909b](https://github.com/iotaledger/twin-tools/commit/e54909bded4a19d00560dd3ec783e9146580bda3))
|
|
201
|
+
* ts to schema ([#86](https://github.com/iotaledger/twin-tools/issues/86)) ([ffebda5](https://github.com/iotaledger/twin-tools/commit/ffebda5f14ab5ec734bf37c9fb70a7ec3d4012c3))
|
|
202
|
+
* update framework core ([559cb98](https://github.com/iotaledger/twin-tools/commit/559cb98612c05a05458b37462cda806b9591b18a))
|
|
203
|
+
* use jsdoc tags for json-ld markup ([1ea872e](https://github.com/iotaledger/twin-tools/commit/1ea872e07a1cc0e94178158a57383d64008e02e3))
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
### Bug Fixes
|
|
207
|
+
|
|
208
|
+
* additionalItems object check ([ca81668](https://github.com/iotaledger/twin-tools/commit/ca81668e1ee0d2b1a479215265e651932d7b76de))
|
|
209
|
+
* improve schema output ([9e53cbe](https://github.com/iotaledger/twin-tools/commit/9e53cbe26e6272323d72c65e277b7d24521fdbba))
|
|
210
|
+
* missing type definitions when importing relative from dynamic node_modules ([52d9fc5](https://github.com/iotaledger/twin-tools/commit/52d9fc5f2618a09c02b9f5dbe585b37cf60c9f20))
|
|
211
|
+
* work for schema generator spread defect ([1a705ff](https://github.com/iotaledger/twin-tools/commit/1a705ffc74b353f652e74ea43454164a2f6740bf))
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
### Dependencies
|
|
215
|
+
|
|
216
|
+
* The following workspace dependencies were updated
|
|
217
|
+
* dependencies
|
|
218
|
+
* @twin.org/tools-models bumped from 0.0.3-next.21 to 0.0.3-next.22
|
|
219
|
+
|
|
220
|
+
## [0.0.3-next.21](https://github.com/iotaledger/twin-tools/compare/tools-core-v0.0.3-next.20...tools-core-v0.0.3-next.21) (2026-03-20)
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
### Features
|
|
224
|
+
|
|
225
|
+
* add jsdoc tag validation ([971b8d3](https://github.com/iotaledger/twin-tools/commit/971b8d3817d40467bfd7549c99af602f0c590299))
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
### Dependencies
|
|
229
|
+
|
|
230
|
+
* The following workspace dependencies were updated
|
|
231
|
+
* dependencies
|
|
232
|
+
* @twin.org/tools-models bumped from 0.0.3-next.20 to 0.0.3-next.21
|
|
233
|
+
|
|
234
|
+
## [0.0.3-next.20](https://github.com/iotaledger/twin-tools/compare/tools-core-v0.0.3-next.19...tools-core-v0.0.3-next.20) (2026-03-20)
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
### Miscellaneous Chores
|
|
238
|
+
|
|
239
|
+
* **tools-core:** Synchronize repo versions
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
### Dependencies
|
|
243
|
+
|
|
244
|
+
* The following workspace dependencies were updated
|
|
245
|
+
* dependencies
|
|
246
|
+
* @twin.org/tools-models bumped from 0.0.3-next.19 to 0.0.3-next.20
|
|
247
|
+
|
|
248
|
+
## [0.0.3-next.19](https://github.com/iotaledger/twin-tools/compare/tools-core-v0.0.3-next.18...tools-core-v0.0.3-next.19) (2026-03-19)
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
### Miscellaneous Chores
|
|
252
|
+
|
|
253
|
+
* **tools-core:** Synchronize repo versions
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
### Dependencies
|
|
257
|
+
|
|
258
|
+
* The following workspace dependencies were updated
|
|
259
|
+
* dependencies
|
|
260
|
+
* @twin.org/tools-models bumped from 0.0.3-next.18 to 0.0.3-next.19
|
|
261
|
+
|
|
262
|
+
## [0.0.3-next.18](https://github.com/iotaledger/twin-tools/compare/tools-core-v0.0.3-next.17...tools-core-v0.0.3-next.18) (2026-03-19)
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
### Features
|
|
266
|
+
|
|
267
|
+
* add jsdoc default value to schema ([7886a84](https://github.com/iotaledger/twin-tools/commit/7886a84961e692d2054f223e2e99205a654b76a6))
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
### Dependencies
|
|
271
|
+
|
|
272
|
+
* The following workspace dependencies were updated
|
|
273
|
+
* dependencies
|
|
274
|
+
* @twin.org/tools-models bumped from 0.0.3-next.17 to 0.0.3-next.18
|
|
275
|
+
|
|
276
|
+
## [0.0.3-next.17](https://github.com/iotaledger/twin-tools/compare/tools-core-v0.0.3-next.16...tools-core-v0.0.3-next.17) (2026-03-19)
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
### Features
|
|
280
|
+
|
|
281
|
+
* improve discriminated unions ([9c36ea7](https://github.com/iotaledger/twin-tools/commit/9c36ea7283230089ff19085ddc4b4c30a4e3f8a2))
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
### Dependencies
|
|
285
|
+
|
|
286
|
+
* The following workspace dependencies were updated
|
|
287
|
+
* dependencies
|
|
288
|
+
* @twin.org/tools-models bumped from 0.0.3-next.16 to 0.0.3-next.17
|
|
289
|
+
|
|
290
|
+
## [0.0.3-next.16](https://github.com/iotaledger/twin-tools/compare/tools-core-v0.0.3-next.15...tools-core-v0.0.3-next.16) (2026-03-19)
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
### Features
|
|
294
|
+
|
|
295
|
+
* ts to schema ([#86](https://github.com/iotaledger/twin-tools/issues/86)) ([ffebda5](https://github.com/iotaledger/twin-tools/commit/ffebda5f14ab5ec734bf37c9fb70a7ec3d4012c3))
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
### Dependencies
|
|
299
|
+
|
|
300
|
+
* The following workspace dependencies were updated
|
|
301
|
+
* dependencies
|
|
302
|
+
* @twin.org/tools-models bumped from 0.0.3-next.15 to 0.0.3-next.16
|
|
303
|
+
|
|
304
|
+
## [0.0.3-next.15](https://github.com/iotaledger/twin-tools/compare/tools-core-v0.0.3-next.14...tools-core-v0.0.3-next.15) (2026-03-10)
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
### Features
|
|
308
|
+
|
|
309
|
+
* use jsdoc tags for json-ld markup ([1ea872e](https://github.com/iotaledger/twin-tools/commit/1ea872e07a1cc0e94178158a57383d64008e02e3))
|
|
310
|
+
|
|
311
|
+
## [0.0.3-next.14](https://github.com/iotaledger/twin-tools/compare/tools-core-v0.0.3-next.13...tools-core-v0.0.3-next.14) (2026-03-06)
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
### Bug Fixes
|
|
315
|
+
|
|
316
|
+
* improve schema output ([9e53cbe](https://github.com/iotaledger/twin-tools/commit/9e53cbe26e6272323d72c65e277b7d24521fdbba))
|
|
317
|
+
|
|
318
|
+
## [0.0.3-next.13](https://github.com/iotaledger/twin-tools/compare/tools-core-v0.0.3-next.12...tools-core-v0.0.3-next.13) (2026-03-05)
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
### Bug Fixes
|
|
322
|
+
|
|
323
|
+
* work for schema generator spread defect ([1a705ff](https://github.com/iotaledger/twin-tools/commit/1a705ffc74b353f652e74ea43454164a2f6740bf))
|
|
324
|
+
|
|
325
|
+
## [0.0.3-next.12](https://github.com/iotaledger/twin-tools/compare/tools-core-v0.0.3-next.11...tools-core-v0.0.3-next.12) (2026-02-27)
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
### Miscellaneous Chores
|
|
329
|
+
|
|
330
|
+
* **tools-core:** Synchronize repo versions
|
|
331
|
+
|
|
332
|
+
## [0.0.3-next.11](https://github.com/iotaledger/twin-tools/compare/tools-core-v0.0.3-next.10...tools-core-v0.0.3-next.11) (2026-02-25)
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
### Miscellaneous Chores
|
|
336
|
+
|
|
337
|
+
* **tools-core:** Synchronize repo versions
|
|
338
|
+
|
|
339
|
+
## [0.0.3-next.10](https://github.com/iotaledger/twin-tools/compare/tools-core-v0.0.3-next.9...tools-core-v0.0.3-next.10) (2026-02-25)
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
### Features
|
|
343
|
+
|
|
344
|
+
* remove additionalProperties ([f9b5d81](https://github.com/iotaledger/twin-tools/commit/f9b5d81e952468f9579593cb979f2b84db6f0dfa))
|
|
345
|
+
|
|
346
|
+
## [0.0.3-next.9](https://github.com/iotaledger/twin-tools/compare/tools-core-v0.0.3-next.8...tools-core-v0.0.3-next.9) (2026-02-24)
|
|
4
347
|
|
|
5
348
|
|
|
6
349
|
### Miscellaneous Chores
|
|
7
350
|
|
|
8
351
|
* **tools-core:** Synchronize repo versions
|
|
9
352
|
|
|
10
|
-
## [0.0.3-next.8](https://github.com/
|
|
353
|
+
## [0.0.3-next.8](https://github.com/iotaledger/twin-tools/compare/tools-core-v0.0.3-next.7...tools-core-v0.0.3-next.8) (2026-02-23)
|
|
11
354
|
|
|
12
355
|
|
|
13
356
|
### Miscellaneous Chores
|
|
14
357
|
|
|
15
358
|
* **tools-core:** Synchronize repo versions
|
|
16
359
|
|
|
17
|
-
## [0.0.3-next.7](https://github.com/
|
|
360
|
+
## [0.0.3-next.7](https://github.com/iotaledger/twin-tools/compare/tools-core-v0.0.3-next.6...tools-core-v0.0.3-next.7) (2026-02-04)
|
|
18
361
|
|
|
19
362
|
|
|
20
363
|
### Miscellaneous Chores
|
|
21
364
|
|
|
22
365
|
* **tools-core:** Synchronize repo versions
|
|
23
366
|
|
|
24
|
-
## [0.0.3-next.6](https://github.com/
|
|
367
|
+
## [0.0.3-next.6](https://github.com/iotaledger/twin-tools/compare/tools-core-v0.0.3-next.5...tools-core-v0.0.3-next.6) (2026-01-28)
|
|
25
368
|
|
|
26
369
|
|
|
27
370
|
### Miscellaneous Chores
|
|
28
371
|
|
|
29
372
|
* **tools-core:** Synchronize repo versions
|
|
30
373
|
|
|
31
|
-
## [0.0.3-next.5](https://github.com/
|
|
374
|
+
## [0.0.3-next.5](https://github.com/iotaledger/twin-tools/compare/tools-core-v0.0.3-next.4...tools-core-v0.0.3-next.5) (2026-01-06)
|
|
32
375
|
|
|
33
376
|
|
|
34
377
|
### Miscellaneous Chores
|
|
35
378
|
|
|
36
379
|
* **tools-core:** Synchronize repo versions
|
|
37
380
|
|
|
38
|
-
## [0.0.3-next.4](https://github.com/
|
|
381
|
+
## [0.0.3-next.4](https://github.com/iotaledger/twin-tools/compare/tools-core-v0.0.3-next.3...tools-core-v0.0.3-next.4) (2026-01-05)
|
|
39
382
|
|
|
40
383
|
|
|
41
384
|
### Miscellaneous Chores
|
|
42
385
|
|
|
43
386
|
* **tools-core:** Synchronize repo versions
|
|
44
387
|
|
|
45
|
-
## [0.0.3-next.3](https://github.com/
|
|
388
|
+
## [0.0.3-next.3](https://github.com/iotaledger/twin-tools/compare/tools-core-v0.0.3-next.2...tools-core-v0.0.3-next.3) (2025-11-11)
|
|
46
389
|
|
|
47
390
|
|
|
48
391
|
### Miscellaneous Chores
|
|
49
392
|
|
|
50
393
|
* **tools-core:** Synchronize repo versions
|
|
51
394
|
|
|
52
|
-
## [0.0.3-next.2](https://github.com/
|
|
395
|
+
## [0.0.3-next.2](https://github.com/iotaledger/twin-tools/compare/tools-core-v0.0.3-next.1...tools-core-v0.0.3-next.2) (2025-11-11)
|
|
53
396
|
|
|
54
397
|
|
|
55
398
|
### Bug Fixes
|
|
56
399
|
|
|
57
|
-
* additionalItems object check ([ca81668](https://github.com/
|
|
400
|
+
* additionalItems object check ([ca81668](https://github.com/iotaledger/twin-tools/commit/ca81668e1ee0d2b1a479215265e651932d7b76de))
|
|
58
401
|
|
|
59
|
-
## [0.0.3-next.1](https://github.com/
|
|
402
|
+
## [0.0.3-next.1](https://github.com/iotaledger/twin-tools/compare/tools-core-v0.0.3-next.0...tools-core-v0.0.3-next.1) (2025-11-10)
|
|
60
403
|
|
|
61
404
|
|
|
62
405
|
### Features
|
|
63
406
|
|
|
64
|
-
* add context id features ([#54](https://github.com/
|
|
65
|
-
* add support for auto expand types ([dd1e10a](https://github.com/
|
|
66
|
-
* add validate-locales ([97bb11f](https://github.com/
|
|
67
|
-
* correctly handle auto expand types ([57fce0f](https://github.com/
|
|
68
|
-
* eslint migration to flat config ([25acfcf](https://github.com/
|
|
69
|
-
* improve auto expand types ([6181d1d](https://github.com/
|
|
70
|
-
* improve type name normalisation ([1fe28e5](https://github.com/
|
|
71
|
-
* remove auto expanded types from final output ([18e05dc](https://github.com/
|
|
72
|
-
* tighten the types included with the regex matching ([e54909b](https://github.com/
|
|
73
|
-
* update framework core ([559cb98](https://github.com/
|
|
407
|
+
* add context id features ([#54](https://github.com/iotaledger/twin-tools/issues/54)) ([41ad65d](https://github.com/iotaledger/twin-tools/commit/41ad65d5ae33d0533d32a2864cd94e5c35e56c76))
|
|
408
|
+
* add support for auto expand types ([dd1e10a](https://github.com/iotaledger/twin-tools/commit/dd1e10a5b2fea6f80890ff6f3971f48e239cb4c1))
|
|
409
|
+
* add validate-locales ([97bb11f](https://github.com/iotaledger/twin-tools/commit/97bb11fd9e6ed400e7fa69671075ba78f36ca6e6))
|
|
410
|
+
* correctly handle auto expand types ([57fce0f](https://github.com/iotaledger/twin-tools/commit/57fce0f9ec4a0876665d70adc6e885f6feb3caf7))
|
|
411
|
+
* eslint migration to flat config ([25acfcf](https://github.com/iotaledger/twin-tools/commit/25acfcf4c4e0c496fffeaf67659fe171bc15199a))
|
|
412
|
+
* improve auto expand types ([6181d1d](https://github.com/iotaledger/twin-tools/commit/6181d1daded1f91323195cf7efbc2f1881f38b41))
|
|
413
|
+
* improve type name normalisation ([1fe28e5](https://github.com/iotaledger/twin-tools/commit/1fe28e567593e46a41a833fbba95fe4cd958f525))
|
|
414
|
+
* remove auto expanded types from final output ([18e05dc](https://github.com/iotaledger/twin-tools/commit/18e05dc88f71a0a27b79d1d076b1261b42d2c4c2))
|
|
415
|
+
* tighten the types included with the regex matching ([e54909b](https://github.com/iotaledger/twin-tools/commit/e54909bded4a19d00560dd3ec783e9146580bda3))
|
|
416
|
+
* update framework core ([559cb98](https://github.com/iotaledger/twin-tools/commit/559cb98612c05a05458b37462cda806b9591b18a))
|
|
74
417
|
|
|
75
|
-
## [0.0.2-next.10](https://github.com/
|
|
418
|
+
## [0.0.2-next.10](https://github.com/iotaledger/twin-tools/compare/tools-core-v0.0.2-next.9...tools-core-v0.0.2-next.10) (2025-10-09)
|
|
76
419
|
|
|
77
420
|
|
|
78
421
|
### Features
|
|
79
422
|
|
|
80
|
-
* add validate-locales ([97bb11f](https://github.com/
|
|
423
|
+
* add validate-locales ([97bb11f](https://github.com/iotaledger/twin-tools/commit/97bb11fd9e6ed400e7fa69671075ba78f36ca6e6))
|
|
81
424
|
|
|
82
|
-
## [0.0.2-next.9](https://github.com/
|
|
425
|
+
## [0.0.2-next.9](https://github.com/iotaledger/twin-tools/compare/tools-core-v0.0.2-next.8...tools-core-v0.0.2-next.9) (2025-09-23)
|
|
83
426
|
|
|
84
427
|
|
|
85
428
|
### Miscellaneous Chores
|
|
86
429
|
|
|
87
430
|
* **tools-core:** Synchronize repo versions
|
|
88
431
|
|
|
89
|
-
## [0.0.2-next.8](https://github.com/
|
|
432
|
+
## [0.0.2-next.8](https://github.com/iotaledger/twin-tools/compare/tools-core-v0.0.2-next.7...tools-core-v0.0.2-next.8) (2025-09-05)
|
|
90
433
|
|
|
91
434
|
|
|
92
435
|
### Features
|
|
93
436
|
|
|
94
|
-
* tighten the types included with the regex matching ([e54909b](https://github.com/
|
|
437
|
+
* tighten the types included with the regex matching ([e54909b](https://github.com/iotaledger/twin-tools/commit/e54909bded4a19d00560dd3ec783e9146580bda3))
|
|
95
438
|
|
|
96
|
-
## [0.0.2-next.7](https://github.com/
|
|
439
|
+
## [0.0.2-next.7](https://github.com/iotaledger/twin-tools/compare/tools-core-v0.0.2-next.6...tools-core-v0.0.2-next.7) (2025-08-29)
|
|
97
440
|
|
|
98
441
|
|
|
99
442
|
### Features
|
|
100
443
|
|
|
101
|
-
* eslint migration to flat config ([25acfcf](https://github.com/
|
|
444
|
+
* eslint migration to flat config ([25acfcf](https://github.com/iotaledger/twin-tools/commit/25acfcf4c4e0c496fffeaf67659fe171bc15199a))
|
|
102
445
|
|
|
103
|
-
## [0.0.2-next.6](https://github.com/
|
|
446
|
+
## [0.0.2-next.6](https://github.com/iotaledger/twin-tools/compare/tools-core-v0.0.2-next.5...tools-core-v0.0.2-next.6) (2025-08-21)
|
|
104
447
|
|
|
105
448
|
|
|
106
449
|
### Features
|
|
107
450
|
|
|
108
|
-
* remove auto expanded types from final output ([18e05dc](https://github.com/
|
|
451
|
+
* remove auto expanded types from final output ([18e05dc](https://github.com/iotaledger/twin-tools/commit/18e05dc88f71a0a27b79d1d076b1261b42d2c4c2))
|
|
109
452
|
|
|
110
|
-
## [0.0.2-next.5](https://github.com/
|
|
453
|
+
## [0.0.2-next.5](https://github.com/iotaledger/twin-tools/compare/tools-core-v0.0.2-next.4...tools-core-v0.0.2-next.5) (2025-08-19)
|
|
111
454
|
|
|
112
455
|
|
|
113
456
|
### Features
|
|
114
457
|
|
|
115
|
-
* correctly handle auto expand types ([57fce0f](https://github.com/
|
|
458
|
+
* correctly handle auto expand types ([57fce0f](https://github.com/iotaledger/twin-tools/commit/57fce0f9ec4a0876665d70adc6e885f6feb3caf7))
|
|
116
459
|
|
|
117
|
-
## [0.0.2-next.4](https://github.com/
|
|
460
|
+
## [0.0.2-next.4](https://github.com/iotaledger/twin-tools/compare/tools-core-v0.0.2-next.3...tools-core-v0.0.2-next.4) (2025-08-19)
|
|
118
461
|
|
|
119
462
|
|
|
120
463
|
### Features
|
|
121
464
|
|
|
122
|
-
* update framework core ([559cb98](https://github.com/
|
|
465
|
+
* update framework core ([559cb98](https://github.com/iotaledger/twin-tools/commit/559cb98612c05a05458b37462cda806b9591b18a))
|
|
123
466
|
|
|
124
|
-
## [0.0.2-next.3](https://github.com/
|
|
467
|
+
## [0.0.2-next.3](https://github.com/iotaledger/twin-tools/compare/tools-core-v0.0.2-next.2...tools-core-v0.0.2-next.3) (2025-08-05)
|
|
125
468
|
|
|
126
469
|
|
|
127
470
|
### Features
|
|
128
471
|
|
|
129
|
-
* improve type name normalisation ([1fe28e5](https://github.com/
|
|
472
|
+
* improve type name normalisation ([1fe28e5](https://github.com/iotaledger/twin-tools/commit/1fe28e567593e46a41a833fbba95fe4cd958f525))
|
|
130
473
|
|
|
131
|
-
## [0.0.2-next.2](https://github.com/
|
|
474
|
+
## [0.0.2-next.2](https://github.com/iotaledger/twin-tools/compare/tools-core-v0.0.2-next.1...tools-core-v0.0.2-next.2) (2025-07-17)
|
|
132
475
|
|
|
133
476
|
|
|
134
477
|
### Features
|
|
135
478
|
|
|
136
|
-
* improve auto expand types ([6181d1d](https://github.com/
|
|
479
|
+
* improve auto expand types ([6181d1d](https://github.com/iotaledger/twin-tools/commit/6181d1daded1f91323195cf7efbc2f1881f38b41))
|
|
137
480
|
|
|
138
|
-
## [0.0.2-next.1](https://github.com/
|
|
481
|
+
## [0.0.2-next.1](https://github.com/iotaledger/twin-tools/compare/tools-core-v0.0.2-next.0...tools-core-v0.0.2-next.1) (2025-07-14)
|
|
139
482
|
|
|
140
483
|
|
|
141
484
|
### Features
|
|
142
485
|
|
|
143
|
-
* add support for auto expand types ([dd1e10a](https://github.com/
|
|
486
|
+
* add support for auto expand types ([dd1e10a](https://github.com/iotaledger/twin-tools/commit/dd1e10a5b2fea6f80890ff6f3971f48e239cb4c1))
|
|
144
487
|
|
|
145
|
-
##
|
|
488
|
+
## Changelog
|
package/docs/examples.md
CHANGED
|
@@ -1 +1,87 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Tools Core Examples
|
|
2
|
+
|
|
3
|
+
This package provides the lower-level building blocks used by the CLI applications. The most common entry point is `TypeScriptToSchema`, which parses TypeScript declarations and returns JSON Schema documents keyed by title.
|
|
4
|
+
|
|
5
|
+
## Generate Schemas From TypeScript
|
|
6
|
+
|
|
7
|
+
```ts
|
|
8
|
+
import type { IJsonSchema } from '@twin.org/tools-models';
|
|
9
|
+
import { TypeScriptToSchema } from '@twin.org/tools-core';
|
|
10
|
+
|
|
11
|
+
const converter = new TypeScriptToSchema();
|
|
12
|
+
const packageSchemas: { [id: string]: { [id: string]: IJsonSchema } } = {};
|
|
13
|
+
|
|
14
|
+
const generatedSchemas = await converter.generateSchema(
|
|
15
|
+
'https://schema.example.com/demo/',
|
|
16
|
+
'@example/demo-package',
|
|
17
|
+
packageSchemas,
|
|
18
|
+
'./dist/types/models.d.ts'
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
console.log(Object.keys(generatedSchemas));
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
When you already know the exported type you want, pass the type name instead of a file path. The helper resolves the declaration and returns the generated schema for that type together with any dependent schemas.
|
|
25
|
+
|
|
26
|
+
```ts
|
|
27
|
+
import type { IJsonSchema } from '@twin.org/tools-models';
|
|
28
|
+
import { TypeScriptToSchema } from '@twin.org/tools-core';
|
|
29
|
+
|
|
30
|
+
const converter = new TypeScriptToSchema();
|
|
31
|
+
const packageSchemas: { [id: string]: { [id: string]: IJsonSchema } } = {};
|
|
32
|
+
|
|
33
|
+
const generatedSchemas = await converter.generateSchema(
|
|
34
|
+
'https://schema.example.com/demo/',
|
|
35
|
+
'@example/demo-package',
|
|
36
|
+
packageSchemas,
|
|
37
|
+
'DemoRequest'
|
|
38
|
+
);
|
|
39
|
+
|
|
40
|
+
const requestSchema = generatedSchemas.DemoRequest;
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Transform Generated Object Schemas
|
|
44
|
+
|
|
45
|
+
`TypeScriptSchemaObjectTransformer` helps when you need to adapt object schemas produced by the builder for utility types such as `Pick` and `Omit`, or when you want cleaner description text before serialising the result.
|
|
46
|
+
|
|
47
|
+
```ts
|
|
48
|
+
import type { IJsonSchema } from '@twin.org/tools-models';
|
|
49
|
+
import { TypeScriptSchemaObjectTransformer } from '@twin.org/tools-core';
|
|
50
|
+
|
|
51
|
+
const transformer = new TypeScriptSchemaObjectTransformer();
|
|
52
|
+
|
|
53
|
+
const personSchema: IJsonSchema = {
|
|
54
|
+
title: 'Person',
|
|
55
|
+
type: 'object',
|
|
56
|
+
properties: {
|
|
57
|
+
id: { type: 'string' },
|
|
58
|
+
name: { type: 'string' },
|
|
59
|
+
email: { type: 'string', format: 'email' }
|
|
60
|
+
},
|
|
61
|
+
required: ['id', 'name', 'email']
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
const publicPersonSchema = transformer.omitKeysFromObjectSchema(personSchema, ['email']);
|
|
65
|
+
const personSummarySchema = transformer.pickKeysFromObjectSchema(personSchema, ['id', 'name']);
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
If your schema descriptions come from multiline source comments, `normalizeSchemaDescriptions` removes duplicated whitespace while keeping intentional line breaks intact.
|
|
69
|
+
|
|
70
|
+
```ts
|
|
71
|
+
import type { IJsonSchema } from '@twin.org/tools-models';
|
|
72
|
+
import { TypeScriptSchemaObjectTransformer } from '@twin.org/tools-core';
|
|
73
|
+
|
|
74
|
+
const transformer = new TypeScriptSchemaObjectTransformer();
|
|
75
|
+
|
|
76
|
+
const schemaWithDescription: IJsonSchema = {
|
|
77
|
+
type: 'object',
|
|
78
|
+
properties: {
|
|
79
|
+
status: {
|
|
80
|
+
type: 'string',
|
|
81
|
+
description: 'Current status.\n\n Used in responses.'
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
const normalisedSchema = transformer.normalizeSchemaDescriptions(schemaWithDescription);
|
|
87
|
+
```
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Class: Constants
|
|
2
|
+
|
|
3
|
+
Shared constants for TypeScript to JSON schema generation.
|
|
4
|
+
|
|
5
|
+
## Constructors
|
|
6
|
+
|
|
7
|
+
### Constructor
|
|
8
|
+
|
|
9
|
+
> **new Constants**(): `Constants`
|
|
10
|
+
|
|
11
|
+
#### Returns
|
|
12
|
+
|
|
13
|
+
`Constants`
|
|
14
|
+
|
|
15
|
+
## Properties
|
|
16
|
+
|
|
17
|
+
### UNSUPPORTED\_UTILITY\_TYPE\_NAMES {#unsupported_utility_type_names}
|
|
18
|
+
|
|
19
|
+
> `readonly` `static` **UNSUPPORTED\_UTILITY\_TYPE\_NAMES**: `string`[]
|
|
20
|
+
|
|
21
|
+
Utility type names currently unsupported and mapped to open schemas with diagnostics.
|
|
22
|
+
|
|
23
|
+
***
|
|
24
|
+
|
|
25
|
+
### ARRAY\_NUMBER\_TYPE\_NAMES {#array_number_type_names}
|
|
26
|
+
|
|
27
|
+
> `readonly` `static` **ARRAY\_NUMBER\_TYPE\_NAMES**: `string`[]
|
|
28
|
+
|
|
29
|
+
Native typed-array and binary type names mapped to JSON number arrays.
|