Skip to content

Releases: ocsigen/ts2ocaml

1.3.0

10 Dec 07:33
2cc4efe
Compare
Choose a tag to compare
  • 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

1.2.1

07 Dec 10:02
96d6fd3
Compare
Choose a tag to compare
  • Fix a bug which "relativized" the path of the specified output directory.
  • Fix a bug which prevented ts2ocaml from parsing package.json correctly.

1.2.0

30 Nov 09:03
d8ecf6d
Compare
Choose a tag to compare
  • Add an option --merge to merge the input definition files to one binding.
    • This is a breaking change; previously --merge was the default behavior.
  • Add an option --follow-relative-references to generate bindings for relevant files at once.

1.1.0

24 Nov 07:53
515d728
Compare
Choose a tag to compare
  • Upgrade and fixed TypeScript version to >= 4.5.2 < 4.6.0 (#36).
  • Fix the problem which prevented --create-minimal-stdlib from working correctly.
  • Add better heuristic for relative imports (#16).
  • Fix bugs on relative imports (#33).

1.0.0 - Official Release

08 Nov 12:38
0aac49c
Compare
Choose a tag to compare

Official release. Nothing is changed internally.

0.0.5 - Automated publishing

08 Nov 12:21
25caba3
Compare
Choose a tag to compare

Test automated publishing for the official release. Nothing is changed internally.

0.0.4 - Automated publishing

08 Nov 12:19
268ce6c
Compare
Choose a tag to compare

Test automated publishing for the official release. Nothing is changed internally.

0.0.3 - Automated publishing

02 Nov 11:11
5da7afc
Compare
Choose a tag to compare

This release is created to test if it can publish both the NPM package and the jsoo standard library.

Test automatic publishing (attempt 3)

02 Nov 08:44
9032c5a
Compare
Choose a tag to compare

This release is created to test if it can publish both the NPM package and the jsoo standard library.

0.0.2 - Test automatic publishing (attempt 2)

02 Nov 08:11
64761c5
Compare
Choose a tag to compare

This release is created to test if it can publish both the NPM package and the jsoo standard library.