Skip to content

Commit

Permalink
Release 2.0.0-beta.1
Browse files Browse the repository at this point in the history
  • Loading branch information
cannorin committed Feb 27, 2024
1 parent 0559bef commit 7b2d82f
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 7 deletions.
37 changes: 33 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,25 @@
# Changelog

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).

## [Unreleased]

## [2.0.0-beta.1]

- ReScript: changed the standard library from `Js` to `Core` (#387).
- `ArrayLike` and `Iterable` are still mapped to `Js.Array2.array_like` since it doesn't seem to be available in `Core` yet.

## [2.0.0-beta.0]

- Add ReScript as a target (#32).
- Add a new subcommand `ts2ocaml res`.
- The documentation is available on [`docs/rescript.md`](docs/rescript.md).

## [2.0.0-alpha.0]

- Upgrade TypeScript to v5.
- Added an explicit support of ambient modules.
- Topological sorting inside ambient modules now works as expected (#157).
Expand All @@ -24,26 +31,33 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Perform massive internal refactoring.

## [1.4.6] - 2023-07-13

- Fix a bug which generated unnecessarily duplicated option type (#315).

## [1.4.5] - 2023-07-13

- Fix a bug which caused optional properties not to be recognized as optional (#312).

## [1.4.4] - 2022-05-09

- Fix a bug which caused ts2ocaml to crash when encountering an optional field with type `null | undefined`.

## [1.4.3] - 2022-05-05

- Ts2ocaml now fails when it encounters unknown options, instead of just ignoring it.

## [1.4.2] - 2022-03-16

- Fix a bug which caused ts2ocaml to generate invalid type declarations.
- Fix a bug which causes ts2ocaml to crash when loading mutually-referencing source files.

## [1.4.1] - 2022-03-11

- Fix a bug which prevented ts2ocaml from working on Windows environment.

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

- Upgrade js_of_ocaml to 4.0 and dune to 3.0.
- 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.
Expand All @@ -58,17 +72,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fix a bug which prevented ts2ocaml from generating class constructors if not defined explicitly.

## [1.3.1] - 2021-12-24

- Fix a bug which prevented ts2ocaml from handling enum types without explicit values.
- Fix a bug which prevented ts2ocaml from parsing package.json correctly.

## [1.3.0] - 2021-12-10
- Upgrade gen\_js\_api to 1.0.9.

- 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 because gen_js_api now profibits enum cases with duplicate values.
- This is a breaking change.

```typescript
enum Foo { A = 1, B = 1, C = 2 }
enum Foo {
A = 1,
B = 1,
C = 2,
}
```

```ocaml
Expand All @@ -82,15 +102,18 @@ end
```

## [1.2.1] - 2021-12-07

- Fix a bug which "relativized" the path of the specified output directory.
- Fix a bug which prevented ts2ocaml from parsing package.json correctly.

## [1.2.0] - 2021-11-30

- Add an option `--merge` to merge the input definition files to one binding.
- This is a breaking change; previously `--merge` was the default behavior.
- Add an option `--follow-relative-references` to generate bindings for relevant files at once.

## [1.1.0] - 2021-11-24

- 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.
Expand All @@ -101,21 +124,27 @@ end
Official release. Nothing is changed internally.

## [0.0.5] - 2021-11-08

Test automated publishing for the official release. Nothing is changed internally.

## [0.0.4] - 2021-11-08

Test automated publishing for the official release. Nothing is changed internally.

## [0.0.3] - 2021-11-02

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.

## [0.0.2] - 2021-11-02

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.

## [0.0.1] - 2021-10-22

Test publishing to npm.

## [0.0.0] - 2021-10-21

In development.
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 2.0.0-beta.0)
(version 2.0.0-beta.1)

(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: "2.0.0-beta.0"
version: "2.0.0-beta.1"
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": "2.0.0-beta.0",
"version": "2.0.0-beta.1",
"description": "Generate OCaml bindings from TypeScript definitions via the TypeScript compiler API",
"repository": {
"type": "git",
Expand Down

0 comments on commit 7b2d82f

Please sign in to comment.