11# Changelog
2+
23All notable changes to this project will be documented in this file.
34
45The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
56and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
67
78## [ Unreleased]
89
10+ ## [ 2.0.0-beta.1]
11+
12+ - ReScript: changed the standard library from ` Js ` to ` Core ` (#387 ).
13+ - ` ArrayLike ` and ` Iterable ` are still mapped to ` Js.Array2.array_like ` since it doesn't seem to be available in ` Core ` yet.
14+
915## [ 2.0.0-beta.0]
1016
1117- Add ReScript as a target (#32 ).
1218 - Add a new subcommand ` ts2ocaml res ` .
1319 - The documentation is available on [ ` docs/rescript.md ` ] ( docs/rescript.md ) .
1420
1521## [ 2.0.0-alpha.0]
22+
1623- Upgrade TypeScript to v5.
1724- Added an explicit support of ambient modules.
1825 - Topological sorting inside ambient modules now works as expected (#157 ).
@@ -24,26 +31,33 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2431- Perform massive internal refactoring.
2532
2633## [ 1.4.6] - 2023-07-13
34+
2735- Fix a bug which generated unnecessarily duplicated option type (#315 ).
2836
2937## [ 1.4.5] - 2023-07-13
38+
3039- Fix a bug which caused optional properties not to be recognized as optional (#312 ).
3140
3241## [ 1.4.4] - 2022-05-09
42+
3343- Fix a bug which caused ts2ocaml to crash when encountering an optional field with type ` null | undefined ` .
3444
3545## [ 1.4.3] - 2022-05-05
46+
3647- Ts2ocaml now fails when it encounters unknown options, instead of just ignoring it.
3748
3849## [ 1.4.2] - 2022-03-16
50+
3951- Fix a bug which caused ts2ocaml to generate invalid type declarations.
4052- Fix a bug which causes ts2ocaml to crash when loading mutually-referencing source files.
4153
4254## [ 1.4.1] - 2022-03-11
55+
4356- Fix a bug which prevented ts2ocaml from working on Windows environment.
4457
4558## [ 1.4.0] - 2022-03-04
46- - Upgrade js\_ of\_ ocaml to 4.0 and dune to 3.0.
59+
60+ - Upgrade js_of_ocaml to 4.0 and dune to 3.0.
4761- Perform massive refactoring on the generated bindings ** (breaking changes)** .
4862 - Anonymous interface modules are now generated in the module where they are actually used.
4963 - Changed the representation of untagged union types and intersection types to make it easier to use.
@@ -58,17 +72,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5872- Fix a bug which prevented ts2ocaml from generating class constructors if not defined explicitly.
5973
6074## [ 1.3.1] - 2021-12-24
75+
6176- Fix a bug which prevented ts2ocaml from handling enum types without explicit values.
6277- Fix a bug which prevented ts2ocaml from parsing package.json correctly.
6378
6479## [ 1.3.0] - 2021-12-10
65- - Upgrade gen\_ js\_ api to 1.0.9.
80+
81+ - Upgrade gen_js_api to 1.0.9.
6682- Ts2ocaml now merges enum case names if they have the same value.
67- - This is because gen \_ js \_ api now profibits enum cases with duplicate values.
83+ - This is because gen_js_api now profibits enum cases with duplicate values.
6884 - This is a breaking change.
6985
7086``` typescript
71- enum Foo { A = 1 , B = 1 , C = 2 }
87+ enum Foo {
88+ A = 1 ,
89+ B = 1 ,
90+ C = 2 ,
91+ }
7292```
7393
7494``` ocaml
82102```
83103
84104## [ 1.2.1] - 2021-12-07
105+
85106- Fix a bug which "relativized" the path of the specified output directory.
86107- Fix a bug which prevented ts2ocaml from parsing package.json correctly.
87108
88109## [ 1.2.0] - 2021-11-30
110+
89111- Add an option ` --merge ` to merge the input definition files to one binding.
90112 - This is a breaking change; previously ` --merge ` was the default behavior.
91113- Add an option ` --follow-relative-references ` to generate bindings for relevant files at once.
92114
93115## [ 1.1.0] - 2021-11-24
116+
94117- Upgrade and fixed TypeScript version to >= 4.5.2 < 4.6.0.
95118- Fix the problem which prevented ` --create-minimal-stdlib ` from working correctly.
96119- Add better heuristic for relative imports.
@@ -101,21 +124,27 @@ end
101124Official release. Nothing is changed internally.
102125
103126## [ 0.0.5] - 2021-11-08
127+
104128Test automated publishing for the official release. Nothing is changed internally.
105129
106130## [ 0.0.4] - 2021-11-08
131+
107132Test automated publishing for the official release. Nothing is changed internally.
108133
109134## [ 0.0.3] - 2021-11-02
135+
110136Nothing is changed internally, but the GitHub Action is now working as intended.
111137Publishing the NPM package and the OPAM package (to ` jsoo-stdlib ` branch for OPAM pinning) is now automated.
112138
113139## [ 0.0.2] - 2021-11-02
140+
114141Test if package is published correctly when we create an release on GitHub.
115142Also create a branch to be used as the standard library for js_of_ocaml.
116143
117144## [ 0.0.1] - 2021-10-22
145+
118146Test publishing to npm.
119147
120148## [ 0.0.0] - 2021-10-21
149+
121150In development.
0 commit comments