Skip to content

Commit 2cc4efe

Browse files
committed
Release 1.3.0
Closes #39.
1 parent d762ea0 commit 2cc4efe

File tree

4 files changed

+24
-4
lines changed

4 files changed

+24
-4
lines changed

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,26 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [1.3.0] - 2021-12-10
10+
- Upgrade gen\_js\_api to 1.0.9.
11+
- Ts2ocaml now merges enum case names if they have the same value.
12+
- This is because gen\_js\_api now profibits enum cases with duplicate values.
13+
- This is a breaking change.
14+
15+
```typescript
16+
enum Foo { A = 1, B = 1, C = 2 }
17+
```
18+
19+
```ocaml
20+
module Foo: sig
21+
(* before *)
22+
type t = [ `A [@js 1] | `B [@js 2] | `C [@js 2] ] [@js.enum]
23+
24+
(* after *)
25+
type t = [ `A_B [@js 1] | `C [@js 2] ] [@js.enum]
26+
end
27+
```
28+
929
## [1.2.1] - 2021-12-07
1030
- Fix a bug which "relativized" the path of the specified output directory.
1131
- Fix a bug which prevented ts2ocaml from parsing package.json correctly.

dist_jsoo/dune-project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
(lang dune 2.7)
22
(name ts2ocaml-jsoo-stdlib)
3-
(version 1.2.1)
3+
(version 1.3.0)
44

55
(maintainers "[email protected]")
66
(authors

dist_jsoo/ts2ocaml-jsoo-stdlib.opam

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file is generated by dune, edit dune-project instead
22
opam-version: "2.0"
3-
version: "1.2.1"
3+
version: "1.3.0"
44
synopsis:
55
"Standard library for ts2ocaml generated bindings (js_of_ocaml target)"
66
description:
@@ -13,7 +13,7 @@ bug-reports: "https://github.com/ocsigen/ts2ocaml/issues"
1313
depends: [
1414
"dune" {>= "2.7"}
1515
"ocaml" {>= "4.08"}
16-
"ojs" {>= "1.0.9"}
16+
"ojs" {>= "1.0.8"}
1717
"odoc" {with-doc}
1818
]
1919
build: [

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ocsigen/ts2ocaml",
3-
"version": "1.2.1",
3+
"version": "1.3.0",
44
"description": "Generate OCaml bindings from TypeScript definitions via the TypeScript compiler API",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)