Skip to content

Commit

Permalink
Release 1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cannorin committed Mar 4, 2022
1 parent 26475fb commit fb8c1ac
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 31 deletions.
38 changes: 10 additions & 28 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,37 +4,19 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.4.0-beta.6]
## [1.4.0] - 2022-03-04
- Upgrade js\_of\_ocaml to 4.0 and dune to 3.0.

## [1.4.0-beta.5]
- Changed the representation of untagged union types and intersection types to make it easier to use.
- `('a, 'b) and_` and `('a, 'b) or_` types are removed in this change.
- This is a breaking change.
- Union types appearing as argument of function are now emitted in a simpler form: `` [`U1 of t1 | `U2 of t2 | .. ] [@js.union] ``.
- Now you don't have to do `Union.inject_n` on function arguments.
- This is a breaking change.
- Union of primitive types are now represented as `[...] Primitive.t`.
- Use `Primitive.classify` function to convert it to a polymorphic variant, on which you can `match` directly.
- `'a or_XXX` types are removed in this change.
- This is a breaking change.

## [1.4.0-beta.4] - 2022-01-21
- Perform massive refactoring on the generated bindings **(breaking changes)**.
- Anonymous interface modules are now generated in the module where they are actually used.
- Changed the representation of untagged union types and intersection types to make it easier to use.
- `('a, 'b) and_` and `('a, 'b) or_` types are removed in this change.
- Union types appearing as argument of function are now emitted in a simpler form: `` [`U1 of t1 | `U2 of t2 | .. ] [@js.union] ``.
- Now you don't have to do `Union.inject_n` on function arguments.
- Union of primitive types are now represented as `[...] Primitive.t`.
- Use `Primitive.classify` function to convert it to a polymorphic variant, on which you can `match` directly.
- `'a or_XXX` types are removed in this change.
- Ts2ocaml now emits builder function `[@js.builder]` for POJO interfaces.

## [1.4.0-beta.3] - 2022-01-17
- Add an option `--readable-names` to try to use more readable names instead of `AnonymousInterfaceN`.

## [1.4.0-beta.2] - 2022-01-17
- Fix a bug which prevented ts2ocaml from generating anonymous interfaces when used with --simplify=named-interface-value

## [1.4.0-beta.1] - 2022-01-12
- Fix a bug which prevented ts2ocaml from generating classes without default constructors.

## [1.4.0-beta.0] - 2022-01-11
- Perform massive internal refactoring.
- Anonymous interface modules are now generated in the module where they are actually used.
- This is a breaking change.
- Fix a bug which prevented ts2ocaml from generating class constructors if not defined explicitly.

## [1.3.1] - 2021-12-24
Expand Down
2 changes: 1 addition & 1 deletion dist_jsoo/dune-project
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(lang dune 3.0)
(name ts2ocaml-jsoo-stdlib)
(version 1.4.0-beta.6)
(version 1.4.0)

(maintainers "[email protected]")
(authors
Expand Down
2 changes: 1 addition & 1 deletion dist_jsoo/ts2ocaml-jsoo-stdlib.opam
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
version: "1.4.0-beta.6"
version: "1.4.0"
synopsis:
"Standard library for ts2ocaml generated bindings (js_of_ocaml target)"
description:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ocsigen/ts2ocaml",
"version": "1.4.0-beta.6",
"version": "1.4.0",
"description": "Generate OCaml bindings from TypeScript definitions via the TypeScript compiler API",
"repository": {
"type": "git",
Expand Down

0 comments on commit fb8c1ac

Please sign in to comment.