@graphitation/cli
Advanced tools
Comparing version 1.6.0 to 1.7.0
# Change Log - @graphitation/cli | ||
This log was last generated on Tue, 20 Jun 2023 11:38:28 GMT and should not be manually modified. | ||
This log was last generated on Wed, 02 Aug 2023 12:50:01 GMT and should not be manually modified. | ||
<!-- Start content --> | ||
## 1.7.0 | ||
Wed, 02 Aug 2023 12:50:01 GMT | ||
### Minor changes | ||
- enums in types are now string unions by default and added backwards compatibility flag + deprecation fixes (jakubvejr@microsoft.com) | ||
- Bump @graphitation/ts-codegen to v2.6.0 | ||
## 1.6.0 | ||
Tue, 20 Jun 2023 11:38:28 GMT | ||
Tue, 20 Jun 2023 11:38:47 GMT | ||
@@ -11,0 +20,0 @@ ### Minor changes |
@@ -80,3 +80,6 @@ "use strict"; | ||
"from where to import context" | ||
).option("-cn, --context-name [contextName]", "Context name").option("-ei, --enums-import [enumsImport]", "from where to import enums").option("-l, --legacy", "generate legacy types").option("--legacy-models", "do not use models for object types").option("--scope [scope]", "generate models only for scope").description("generate interfaces and models").action( | ||
).option("-cn, --context-name [contextName]", "Context name").option("-ei, --enums-import [enumsImport]", "from where to import enums").option("-l, --legacy", "generate legacy types").option("--legacy-models", "do not use models for object types").option( | ||
"--legacy-enums-compatibility", | ||
"When this flag is set, then enums are generated using typescript 'Enum' keyword, which is then used in fields along side with string unions. If this flag is not set, then enums are generated as string unions." | ||
).option("--scope [scope]", "generate models only for scope").description("generate interfaces and models").action( | ||
(inputs, options) => __async(this, null, function* () { | ||
@@ -134,2 +137,3 @@ yield generateInterfaces(getFiles(inputs), options); | ||
legacyNoModelsForObjects: !!options.legacyModels, | ||
legacyEnumsCompatibility: !!options.legacyEnumsCompatibility, | ||
modelScope: options.scope || null | ||
@@ -136,0 +140,0 @@ }); |
{ | ||
"name": "@graphitation/cli", | ||
"license": "MIT", | ||
"version": "1.6.0", | ||
"version": "1.7.0", | ||
"bin": { | ||
@@ -27,3 +27,3 @@ "supermassive": "./bin/supermassive.js" | ||
"@graphitation/supermassive-extractors": "^2.2.0", | ||
"@graphitation/ts-codegen": "^2.5.0", | ||
"@graphitation/ts-codegen": "^2.6.0", | ||
"commander": "^8.3.0", | ||
@@ -30,0 +30,0 @@ "fast-glob": "^3.2.12", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
38313
343