This repository was archived by the owner on Nov 13, 2023. It is now read-only.
Releases: rescript-association/genType
Releases · rescript-association/genType
v0.25.0
- Remove deprecated CLI option
—setProjectRoot. - Support
@genType.as "name"to rename how labeled arguments in functions are exported. Works for function definitions and function types declarations. In parcticular, themakefunction for components. In case of function definitions, the first argument can't be renamed because of a compiler bug. See this issue.
v0.24.0
Release version 0.24.0. # 0.24.0 - Improved debug output and number of options, and made controllable from bsconfig.json. - Fixed issue with import strings containig `.\directory` on Windows. - Extended support for signatures and module types. - Module include is supported for Type Expansion. - First-orer modules are supported for Type Expansion. - Functor application supported for Type Expansion. - Annotating a type means all the types mentioned in it are also considered annotated. (Implemented via Type Expansion). - Add support for type expansion (https://github.com/cristianoc/genType/issues/70)
v0.23.1
v0.23.0
Release genType 0.23.0 - Clean up terminology used in README.md. Following the cleanup plan on import/export in https://github.com/cristianoc/genType/issues/70. - Implement principle 1: an imported type is also exported to other modules. - Support tuple types. - In Flow, keep opaque types also opaque internally, so export erros are caught early like in TS. - Fix: Type names for types which are defined somewhere are not considered opaque. - Fix: no conversion generated for opaque types. - Generated code can be in a different order, because of refactoring how type declarations are processed.
v0.22.0
Release version 0.22.0. CHANGE: object and record fields are now readonly by default. - Support the case where the `make` function of an exported Reason component could be curried. - Support `ImmutableArray.t` type for convesion to `ReadonlyArray` in TS/Flow. - Add library for immutable arrays. - Fix missing handling of `@genType.opaque`. - Allow importing types from within nested modules. - Allow a combination of `@genType.import` and `@genType.as` to specify an imported type. - Object and record fields are now mapped to readonly propeties, unless they're mutable.
v0.21.0
Release 0.21.0. - Support nested components. So it's possible to define several components in one file. - Support for recursive types. If a recursive type requires a conversion, only a shallow one is performed, and a warning comment is emitted. - Update README describing how genType works in both directions.
v0.20.0
v0.19.0
- Add support for nested modules: translation of nested types and values, as well as cross references.
- Remove deprecated way of wrapping JS components.
- Use strict imports for wrapping JS values and components.
- Generate opaque types corresponding to an existing Flow/TS type.