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

Releases: rescript-association/genType

v3.45.0

06 Apr 10:51
Compare
Choose a tag to compare
  • Only support bs-platform 8.2.0 or newer.
  • Give a warning when attempting to export a GADT type (unless it's already an opaque export), and export it as an opaque type.
  • When not specified in gentypeconfig, read the module type from package-specs.
  • Translate object types directly, whether or not they are wrapped in Js.t, in preparation for a compiler upgrade. Preserve a couple of existing uses which still map to the empty object: type t1<'a> = Js.t<'a>, type t2 = Js.t<Obj.t>.
  • Use import instead of require in TS back-end, unless there are circular dependencies. In both TS and Flow, circular dependencies can be avoided by not exporting anything in a file that imports a value/component.
  • Support future npm package rescript version 9.1.0 and above.
  • Add support for the upcoming numeric poly variants (see rescript-lang/syntax#340).

v3.44.0

17 Feb 08:41
Compare
Choose a tag to compare
  • Fix issue with non-recursive types inside modules when the type name is already in scope (See #492).
  • Support bs-platform version 9.0.1 (es6 library modules reverted to .js extension)

v3.43.0

09 Feb 11:38
Compare
Choose a tag to compare
  • Add : before location in warnings, so the correct line is picked up by vscocde terminal.
  • Allow ' in the name of an exported type without generating invalid JS code.
  • Support bs-platform version 9.0.0 (es6 library modules now use .mjs extension).
  • [experimental] Extend experimental option to specify the full extension of generated files (see #497).

v3.42.0

08 Jan 10:14
Compare
Choose a tag to compare
  • Fix type of references which should be a record type since the runtime representation switched to records.

v3.41.0

30 Nov 09:03
Compare
Choose a tag to compare
  • Internal (Support multiple arguments on the command line for -cmt-rm).

v3.40.0

19 Nov 12:59
Compare
Choose a tag to compare
  • Add support for flexible file names introduced in bs-platform 8.3 (see #477).

v3.39.0

17 Nov 16:43
Compare
Choose a tag to compare
  • Fix conversion for nested variants from bs-platform 8 onwards (see #472).
  • Fix name of functions emitted when an inner signature is annotated (see #474).

v3.38.0

29 Oct 08:08
Compare
Choose a tag to compare
  • Add missing support for annotations in inner module signatures (e.g. module M : { ... } = { ... }). See #469.

v3.37.0

16 Oct 08:14
Compare
Choose a tag to compare
  • Fix issue where a conversion was not applied to optional arguments due to mistaken covariance. (#466)

v3.36.0

24 Sep 08:50
Compare
Choose a tag to compare
  • Add support for bs-platform 8.3: abbreviated annotations (e.g. @as instead of @bs.as).