Releases: FlorianPallas/hgen
Releases · FlorianPallas/hgen
0.4.0
Features
- (lang) add unit primitive
- (typescript) emit provider and consumer types
- (lang) add support for multi-file schemas
- (typescript) reflect shape metadata, use camel case for type names
Fixes
- (lang) models and services are now emitted in the order they are defined in
Refactor
- remove reference resolving to simplify code emission code
- (lang) clean up primitive parsing
- (lang) change how service methods are defined to match the average function syntax more closely
Documentation
- add service to todo example
- update readme to reflect new output parameter
Miscellaneous
- add build command to build script
- use lowercase text in changelog
0.3.0
Features
- (rust) add support for enums, aliases and externals
- (rust) emit derive annotations for debug, clone and serde serialization
Miscellaneous
- add changelog
- (release) release v0.3.0
0.2.0
Features
- emit serialization methods for typescript
- (lang) force externals to also have a canonical type for serialization purposes
- (typescript) add reflection
- (dart) add support for aliases and enum in dart
- (json) implement custom json emitter
- (lang) add support for services
- (typescript) emit service metadata
- (dart) emit json serialization methods
Fixes
- emit nullable dart fields as not-required in the constructor
- (dart) emitting invalid syntax when aliases had metadata
- (dart) remove invalid cast when deserializing nullable fields
Refactor
- replace instant and duration with custom types, introduce nullable wrapper shape instead of field property, improve ts reflection
- replace json serializable dart serialization methods with our own
- properly generate top level optional typescript with question marks
- rework parser, simplify typescript emitter, add support for enums in typescript
- (typescript) emit null types instead of optional undefined types
- (lang) change the way nullable types are defined to be more similar to dart, using a question mark after the type identifier
- rename extern to external types
- (json) use uppercase for type names
- time only actual parsing and code emission
Miscellaneous
- add serialization checklist to readme
- add license
- mention packages in readme
- (typescript) rename object to struct
- add conventional commit scopes
- update readme and examples
- remove ron target
- release v0.2.0
0.1.0
Miscellaneous
- initial commit