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

Releases: rescript-association/genType

v1.4.0

27 Nov 10:30
Compare
Choose a tag to compare
  • Adapt bs-platform lib import path depending on the module kind specified in config.
  • Add -clean command to delete all the generated files.
  • Fix: translation of variant types should be the identity.
  • Avoid accidental variable name capture when generating constructors functions for variants.
  • TypeScript: avoid type errors when converting function types by giving arguments type any.

v1.3.0

22 Nov 13:00
Compare
Choose a tag to compare
  • Auto propagate annotations to and from variant type declarations (not just normal type declarations).
  • Auto propagate annotations to types mentioned in exported values and components.

v1.2.1

20 Nov 10:17
Compare
Choose a tag to compare
  • Fix importing type via renaming. Need to export both the original and renamed type.

v1.2.0

14 Nov 16:55
Compare
Choose a tag to compare
  • Translate empty object types as {}. This avoids pulling in a shim for Js.t.
  • Support renaming via [@genType.as "name"] when exporting types.

v1.1.0

13 Nov 09:13
Compare
Choose a tag to compare

1.0.1

  • Emit import instead of require with ES6 modules in Flow/Untyped back-end, except when import cycles are possible (Reason importing JS values/components). PR.
  • Add support for @genType.as when importing values from JS. This supports renaming, importing default values, and importing nested values via a path.

v1.0.0

09 Nov 06:38
Compare
Choose a tag to compare

BREAKING CHANGE

  • Change the extension of generated files to .gen.tsx (TS) and .gen.js (Flow/Untyped). #90

OTHER CHANGES

  • Don’t import type dependencies for opaque types.
  • Add bsconfig.json option "generatedFileExtension" to configure the extension used for generated files.
  • Remove (undocumented) genType.importStrictLocal and always allow imports from non-scrict Flow types.

v0.28.0

06 Nov 05:55
Compare
Choose a tag to compare
  • Export first-class modules as records. Also allows to call functors from JS.
  • Sanitize name of JS variable when importing a value. (Replace "-" with "_").
  • Fix renaming of named argument when importing function type.

v0.27.1

02 Nov 07:44
Compare
Choose a tag to compare
0.27.1

v0.27.0

01 Nov 15:51
Compare
Choose a tag to compare
0.27.0

v0.26.0

31 Oct 16:53
Compare
Choose a tag to compare
  • Support importing types with type parameters.
  • Prevent imported values from being used directly from JS.