Releases: vojtechhabarta/typescript-generator
Releases · vojtechhabarta/typescript-generator
v1.6.176
v1.6.173
- extension for generating enum string constants (
cz.habarta.typescript.generator.ext.EnumConstantsExtension)
Thanks for PR @ryan10132
v1.6.171
- Modules and namespaces improved. Added support for modules with top-level
exportdeclarations, changed configuration (relevant parameters:outputFile,outputFileType,outputKind,moduleandnamespace). 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.Nullablecan be marked as optional in TypeScript file. SeeoptionalAnnotationsparameter. - Using
GenericsTypeProcessor(better generics handling) by default.
Incompatible changes:
- Required
jsonLibraryparameter. Previously default value wasjackson1, now there is no default and parameter is required. - Required
outputKindparameter. This is new parameter which specifies what kind of output (global,module,ambientModule) should be generated.
Thanks for contribution (PR, comments) @tjwilson90, @lonnelars, @ryan10132.
v1.5.160
- 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.
v1.4.152
- Automatic discovery of classes used in configured JAX-RS application, this can shorten or eliminate list of individually configured JSON classes (
classesFromJaxrsApplicationoption) - issue #20. - Possibility to exclude classes from processing, this applies to Java types, REST resources (
excludeClassesoption). - Setting for alphabetical sorting of type declarations while retaining properties original order (
sortTypeDeclarationsoption). - Improved verbose output.
v1.3.134
- Custom
TypeProcessorwhich 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 configureGenericsTypeProcessorfor 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
fixed crash on properties which type is interface type (e.g. java.time.LocalDateTime#chronology)
v1.2.108
v1.1.85
fix for empty classes
v1.1.71
Support for any type.
Inheritance of JSON classes is reflected in generated TypeScript interfaces.
Derived classes are automatically discovered based on @JsonSubTypes annotations.