1
1
# Changelog
2
+
2
3
All notable changes to this project will be documented in this file.
3
4
4
5
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
5
6
and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
6
7
7
8
## [ Unreleased]
8
9
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
+
9
15
## [ 2.0.0-beta.0]
10
16
11
17
- Add ReScript as a target (#32 ).
12
18
- Add a new subcommand ` ts2ocaml res ` .
13
19
- The documentation is available on [ ` docs/rescript.md ` ] ( docs/rescript.md ) .
14
20
15
21
## [ 2.0.0-alpha.0]
22
+
16
23
- Upgrade TypeScript to v5.
17
24
- Added an explicit support of ambient modules.
18
25
- 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
24
31
- Perform massive internal refactoring.
25
32
26
33
## [ 1.4.6] - 2023-07-13
34
+
27
35
- Fix a bug which generated unnecessarily duplicated option type (#315 ).
28
36
29
37
## [ 1.4.5] - 2023-07-13
38
+
30
39
- Fix a bug which caused optional properties not to be recognized as optional (#312 ).
31
40
32
41
## [ 1.4.4] - 2022-05-09
42
+
33
43
- Fix a bug which caused ts2ocaml to crash when encountering an optional field with type ` null | undefined ` .
34
44
35
45
## [ 1.4.3] - 2022-05-05
46
+
36
47
- Ts2ocaml now fails when it encounters unknown options, instead of just ignoring it.
37
48
38
49
## [ 1.4.2] - 2022-03-16
50
+
39
51
- Fix a bug which caused ts2ocaml to generate invalid type declarations.
40
52
- Fix a bug which causes ts2ocaml to crash when loading mutually-referencing source files.
41
53
42
54
## [ 1.4.1] - 2022-03-11
55
+
43
56
- Fix a bug which prevented ts2ocaml from working on Windows environment.
44
57
45
58
## [ 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.
47
61
- Perform massive refactoring on the generated bindings ** (breaking changes)** .
48
62
- Anonymous interface modules are now generated in the module where they are actually used.
49
63
- 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
58
72
- Fix a bug which prevented ts2ocaml from generating class constructors if not defined explicitly.
59
73
60
74
## [ 1.3.1] - 2021-12-24
75
+
61
76
- Fix a bug which prevented ts2ocaml from handling enum types without explicit values.
62
77
- Fix a bug which prevented ts2ocaml from parsing package.json correctly.
63
78
64
79
## [ 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.
66
82
- 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.
68
84
- This is a breaking change.
69
85
70
86
``` typescript
71
- enum Foo { A = 1 , B = 1 , C = 2 }
87
+ enum Foo {
88
+ A = 1 ,
89
+ B = 1 ,
90
+ C = 2 ,
91
+ }
72
92
```
73
93
74
94
``` ocaml
82
102
```
83
103
84
104
## [ 1.2.1] - 2021-12-07
105
+
85
106
- Fix a bug which "relativized" the path of the specified output directory.
86
107
- Fix a bug which prevented ts2ocaml from parsing package.json correctly.
87
108
88
109
## [ 1.2.0] - 2021-11-30
110
+
89
111
- Add an option ` --merge ` to merge the input definition files to one binding.
90
112
- This is a breaking change; previously ` --merge ` was the default behavior.
91
113
- Add an option ` --follow-relative-references ` to generate bindings for relevant files at once.
92
114
93
115
## [ 1.1.0] - 2021-11-24
116
+
94
117
- Upgrade and fixed TypeScript version to >= 4.5.2 < 4.6.0.
95
118
- Fix the problem which prevented ` --create-minimal-stdlib ` from working correctly.
96
119
- Add better heuristic for relative imports.
@@ -101,21 +124,27 @@ end
101
124
Official release. Nothing is changed internally.
102
125
103
126
## [ 0.0.5] - 2021-11-08
127
+
104
128
Test automated publishing for the official release. Nothing is changed internally.
105
129
106
130
## [ 0.0.4] - 2021-11-08
131
+
107
132
Test automated publishing for the official release. Nothing is changed internally.
108
133
109
134
## [ 0.0.3] - 2021-11-02
135
+
110
136
Nothing is changed internally, but the GitHub Action is now working as intended.
111
137
Publishing the NPM package and the OPAM package (to ` jsoo-stdlib ` branch for OPAM pinning) is now automated.
112
138
113
139
## [ 0.0.2] - 2021-11-02
140
+
114
141
Test if package is published correctly when we create an release on GitHub.
115
142
Also create a branch to be used as the standard library for js_of_ocaml.
116
143
117
144
## [ 0.0.1] - 2021-10-22
145
+
118
146
Test publishing to npm.
119
147
120
148
## [ 0.0.0] - 2021-10-21
149
+
121
150
In development.
0 commit comments