diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b00513..c89fa1a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## v1.2 - 2019.02.21 +- Add GlobalNullable generation option: if `true`, type `Nullable` from global namespace will be used +- Fixed invalid Nullable generation +- Use `Array` instead of `Nullable[]` if GlobalNullable option is set to `false` + ## v1.1 - 2019.02.18 - TypeScript files generated with '.ts' extension - Generation options: EnumGenerationMode: FixedStringsAndDictionary | TypeScriptEnum, EnableOptionalProperties, EnableExplicitNullability diff --git a/README.md b/README.md index 24d40c6..c84ac4c 100644 --- a/README.md +++ b/README.md @@ -111,6 +111,10 @@ export type SomeType = { When **disabled** produces all types as-is. +### UseGlobalNullable + +This option is **disabled** by default. When **enabled**, global `Nullable` is used instead of union `null | T` + ## Known bugs See [this issue](https://github.com/skbkontur/TypeScript.ContractGenerator/issues/1) diff --git a/version.json b/version.json index b6f5416..9a35ff8 100644 --- a/version.json +++ b/version.json @@ -1,6 +1,6 @@ { "$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json", - "version": "1.1", + "version": "1.2", "assemblyVersion": { "precision": "build" },