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

Releases: rescript-association/genType

v2.3.0

14 Jan 09:08

Choose a tag to compare

  • Flow mode: add eslint-disable.
  • Fix missing conversion of optional arguments of components.

v2.2.2

11 Jan 20:06

Choose a tag to compare

  • Fix issue where default function arguments of some type requiring conversion were not checked for undefined.
  • Add missing support for @genType.opaque in variants.

v2.2.0

11 Jan 09:41

Choose a tag to compare

  • Indent function definitions and if-then-else's.
  • Indent variant declarations.
  • Spacing after/before brackets in object types.
  • In TypeScript, use the preferred semicolon in object types.

v2.1.0

11 Jan 08:23

Choose a tag to compare

  • In commonjs, import components simply as a require without ".default".

v2.0.0

08 Jan 16:37

Choose a tag to compare

  • New unified support for polymorphic variants and ordinary variants. If possible (at most one case with payload of object type), use an unboxed representation. Otherwise use {tag: label, value: ...}.
  • This is a Breaking Change: ordinary variants used to be represented as opaque types with construction functions. Now, ordinary variants have the same representation as polymorphic variants.

v1.9.0

27 Dec 20:32

Choose a tag to compare

v1.7.0

24 Dec 15:07

Choose a tag to compare

  • Add support for paths in @genType.as when importing components from JS. Also, simply support renaming.

v1.6.1

10 Dec 16:51

Choose a tag to compare

  • Fix missing import React when importing component in untyped back-end.

v1.6.0

09 Dec 17:12

Choose a tag to compare

v1.5.0

27 Nov 12:52

Choose a tag to compare

  • Hygiene: avoid variable capture for generated variable names (function arguments, return value, array items).