Skip to content
This repository was archived by the owner on Nov 13, 2023. It is now read-only.

Releases: rescript-association/genType

v0.25.0

29 Oct 13:38

Choose a tag to compare

  • 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, the make function 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

26 Oct 15:36

Choose a tag to compare

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

24 Oct 07:41

Choose a tag to compare

Test for the release process.

v0.23.0

23 Oct 08:46

Choose a tag to compare

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

20 Oct 05:44

Choose a tag to compare

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

18 Oct 16:10

Choose a tag to compare

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

17 Oct 16:36

Choose a tag to compare

Version 0.20.0

Add support for Enum types.

v0.19.0

16 Oct 20:20

Choose a tag to compare

v0.18.0

13 Oct 17:58

Choose a tag to compare

v0.18.0 Pre-release
Pre-release
  • Move "gentypeconfig" inside bsconfig.json. Using a file gentypeconfig.json is deprecated.
  • Remove support for deprecated @Genflow annotation, and genflowconfig.json file.

v0.17.0

13 Oct 10:02

Choose a tag to compare