From fb8c1acdd1fd6bc8859a02b5539cdfea9f94d6b0 Mon Sep 17 00:00:00 2001 From: cannorin Date: Fri, 4 Mar 2022 18:51:56 +0900 Subject: [PATCH] Release 1.4.0 --- CHANGELOG.md | 38 ++++++++--------------------- dist_jsoo/dune-project | 2 +- dist_jsoo/ts2ocaml-jsoo-stdlib.opam | 2 +- package.json | 2 +- 4 files changed, 13 insertions(+), 31 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 326adaa1..ea57545e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/dist_jsoo/dune-project b/dist_jsoo/dune-project index 55c2217a..f179fb06 100644 --- a/dist_jsoo/dune-project +++ b/dist_jsoo/dune-project @@ -1,6 +1,6 @@ (lang dune 3.0) (name ts2ocaml-jsoo-stdlib) -(version 1.4.0-beta.6) +(version 1.4.0) (maintainers "dev@ocsigen.org") (authors diff --git a/dist_jsoo/ts2ocaml-jsoo-stdlib.opam b/dist_jsoo/ts2ocaml-jsoo-stdlib.opam index 8b2e1ae8..e8a25f69 100644 --- a/dist_jsoo/ts2ocaml-jsoo-stdlib.opam +++ b/dist_jsoo/ts2ocaml-jsoo-stdlib.opam @@ -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: diff --git a/package.json b/package.json index 216e11a5..f3bb945f 100644 --- a/package.json +++ b/package.json @@ -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",