Skip to content

Releases: vojtechhabarta/typescript-generator

v1.6.176

31 Mar 09:12
Compare
Choose a tag to compare
  • fix for generic parent class

Thanks for PR @ryan10132

Download from Maven Central Repository.

v1.6.173

22 Mar 12:52
Compare
Choose a tag to compare
  • extension for generating enum string constants (cz.habarta.typescript.generator.ext.EnumConstantsExtension)

Thanks for PR @ryan10132

Download from Maven Central Repository.

v1.6.171

16 Mar 21:49
Compare
Choose a tag to compare
  • Modules and namespaces improved. Added support for modules with top-level export declarations, changed configuration (relevant parameters: outputFile, outputFileType, outputKind, module and namespace). More info on Modules and Namespaces page.
  • Possibility to include Javadoc comments in generated output as JSDoc comments. More info on Javadoc page.
  • Optional properties marked using annotations like @javax.annotation.Nullable can be marked as optional in TypeScript file. See optionalAnnotations parameter.
  • Using GenericsTypeProcessor (better generics handling) by default.

Incompatible changes:

  • Required jsonLibrary parameter. Previously default value was jackson1, now there is no default and parameter is required.
  • Required outputKind parameter. This is new parameter which specifies what kind of output (global, module, ambientModule) should be generated.

Thanks for contribution (PR, comments) @tjwilson90, @lonnelars, @ryan10132.

Download from Maven Central Repository.

v1.5.160

23 Feb 23:31
Compare
Choose a tag to compare
  • Java enums represented using string literal types (example: type Color = "Red" | "Green" | "Blue").
  • Experimental extensions.
  • Minor fixes and improvements.

This version produces TypeScript 1.8 code. You can use previous version if you are not using TS 1.8.

Thanks for contribution @punya.

Download from Maven Central Repository.

v1.4.152

12 Jan 15:45
Compare
Choose a tag to compare
  • Automatic discovery of classes used in configured JAX-RS application, this can shorten or eliminate list of individually configured JSON classes (classesFromJaxrsApplication option) - issue #20.
  • Possibility to exclude classes from processing, this applies to Java types, REST resources (excludeClasses option).
  • Setting for alphabetical sorting of type declarations while retaining properties original order (sortTypeDeclarations option).
  • Improved verbose output.

v1.3.134

09 Dec 23:32
Compare
Choose a tag to compare
  • Custom TypeProcessor which allows to customize how Java types are mapped to TypeScript. For example it is possible to implement TypeProcessor for Optional from guava or for Java 8 date/time classes. It is also possible to configure GenericsTypeProcessor for generics handling.
  • Improved typescript-generator embeddability into other generators.
  • Better type names customization using removeTypeNamePrefix, removeTypeNameSuffix, addTypeNamePrefix, addTypeNameSuffix.
  • Ability to sort TypeScript declarations alphabetically.
  • Minor enhancement: UTF-8 output encoding, output file comment (can be disabled).

Thanks for contribution @ryan10132, @zouabimourad.

v1.2.109

29 Oct 19:34
Compare
Choose a tag to compare

fixed crash on properties which type is interface type (e.g. java.time.LocalDateTime#chronology)

v1.2.108

v1.1.85

27 May 14:23
Compare
Choose a tag to compare

fix for empty classes

v1.1.71

19 Apr 07:37
Compare
Choose a tag to compare

Support for any type.
Inheritance of JSON classes is reflected in generated TypeScript interfaces.
Derived classes are automatically discovered based on @JsonSubTypes annotations.