All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- 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.
- Fix a bug which prevented ts2ocaml from handling enum types without explicit values.
- Fix a bug which prevented ts2ocaml from parsing package.json correctly.
- Upgrade gen_js_api to 1.0.9.
- Ts2ocaml now merges enum case names if they have the same value.
- This is because gen_js_api now profibits enum cases with duplicate values.
- This is a breaking change.
enum Foo { A = 1, B = 1, C = 2 }
module Foo: sig
(* before *)
type t = [ `A [@js 1] | `B [@js 2] | `C [@js 2] ] [@js.enum]
(* after *)
type t = [ `A_B [@js 1] | `C [@js 2] ] [@js.enum]
end
- Fix a bug which "relativized" the path of the specified output directory.
- Fix a bug which prevented ts2ocaml from parsing package.json correctly.
- Add an option
--merge
to merge the input definition files to one binding.- This is a breaking change; previously
--merge
was the default behavior.
- This is a breaking change; previously
- Add an option
--follow-relative-references
to generate bindings for relevant files at once.
- Upgrade and fixed TypeScript version to >= 4.5.2 < 4.6.0.
- Fix the problem which prevented
--create-minimal-stdlib
from working correctly. - Add better heuristic for relative imports.
- Fix bugs on relative imports.
Official release. Nothing is changed internally.
Test automated publishing for the official release. Nothing is changed internally.
Test automated publishing for the official release. Nothing is changed internally.
Nothing is changed internally, but the GitHub Action is now working as intended.
Publishing the NPM package and the OPAM package (to jsoo-stdlib
branch for OPAM pinning) is now automated.
Test if package is published correctly when we create an release on GitHub. Also create a branch to be used as the standard library for js_of_ocaml.
Test publishing to npm.
In development.