Skip to content

1.3.0

Choose a tag to compare

@cannorin cannorin released this 10 Dec 07:33
· 773 commits to main since this release
2cc4efe
  • Upgrade gen_js_api to 1.0.9.
    • It's now available on OPAM, so you don't have to use opam pin for gen_js_api anymore.
  • Ts2ocaml now merges enum case names if they have the same value.
    • This is because gen_js_api now profibits enum cases with duplicate values.
    • This is a breaking change.
enum Foo { A = 1, B = 1, C = 2 }
module Foo: sig
  (* before *)
  type t = [ `A [@js 1] | `B [@js 2] | `C [@js 2] ] [@js.enum]

  (* after  *)
  type t = [ `A_B [@js 1] | `C [@js 2] ] [@js.enum]
end