Skip to content

Releases: jburzynski/TypeGen

2.4.1

25 Jul 14:33

Choose a tag to compare

Features:

  • added the possibility to convert member names based on their MemberInfo

2.4.0

25 Jul 14:32

Choose a tag to compare

Features:

  • upgraded TypeGen CLI to .NET Core 2.2
  • added support for generating C# interfaces (no support for interface inheritance)
  • added the ability to use tab character instead of multiple spaces
  • added the ability to automatically build the project before generating files
  • added new barrel file generation functionality (and removed the temporary solution from version 2.3.3) - more info in the docs
  • removed the possibility of generating from a generation spec and attributes at the same time (the "useAttributesWithGenerationSpec" parameter)

2.3.4

25 Jul 14:31

Choose a tag to compare

nothing was changed in this version, just the version number

2.3.3

25 Jul 14:30

Choose a tag to compare

Features:

  • added ability to provide custom logic of generating index files (temporary solution)

2.3.2

25 Jul 14:30

Choose a tag to compare

Bugfixes:

  • enumStringInitializers don't take singleQuotes into consideration

2.3.1

25 Jul 14:29

Choose a tag to compare

Features:

  • added support for generating default values for C# properties
  • added support for generating default values for properties/fields if the declaring type is generic

2.3.0

25 Jul 14:28

Choose a tag to compare

Bugfixes:

  • added support for all enum underlying types (previously exceptions were thrown if the underlying type was different from System.Int32)
  • exception when a field is inside a generic type
  • improved behavior of reading OutputDir from ExportTs... attributes (eliminates weird import paths)

Features:

  • added support for TypeScript default exports

2.2.1

25 Jul 14:27

Choose a tag to compare

Bugfixes:

  • fixed logger verbose issue in AssemblyResolver

2.2.0

25 Jul 14:26

Choose a tag to compare

Bugfixes:

  • added logging of the used NuGet paths when resolving assemblies
  • changed "(...)converter not found(...)" messages to "(...)type not found(...)"
  • fixed exception when removing the first converter in a converter collection
  • removed the default mapping from TimeSpan to Date

Features:

  • added support for static TypeScript properties
  • added support for readonly TypeScript properties
  • added default translation from C# const fields (generates to TypeScript static readonly with a default value)
  • added automatic generation of assigned field's value
  • added an event in the Generator class that allows for defining custom logic for handling the generated TypeScript files' content
  • added logging of found assembly paths when resolving assemblies in verbose logging mode
  • removed IGenerator interface (programmatical API) - redundant
  • removed the add by regex feature in generation specs (the same can be achieved without this feature)
  • removed strictNullChecking option - redundant, as you can just use the csNullableTranslation parameter
  • added ability to log messages from the Generator class level (+ added a couple of new warnings happening on that level)

2.1.3

25 Jul 14:25

Choose a tag to compare

Bugfixes:

  • clearOutputDirectory doesn't work if directory doesn't exist (#47)

Features:

  • now anonymous types are filtered out when generating from assembly (#39)
  • added option to change the default TypeScript file heading ("This is a TypeGen auto-generated file. (...)") (#48)