Skip to content

Commit

Permalink
Release 2.0.0-alpha.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cannorin committed Jul 13, 2023
1 parent 6733a6a commit 9eb39cb
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
run: opam install . --deps-only

- name: Build and test the project
run: ./fake test
run: bash fake test

auto-merge:
name: Auto-Merge PRs by Dependabot
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ jobs:
- name: Install OCaml Dependencies
run: opam install . --deps-only

- name: Build the project
run: ./fake
- name: Build & test & publish the project
run: bash fake all

- name: Push js_of_ocaml standard library to jsoo-stdlib
if: success()
Expand Down
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [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).
- Perform various improvements over messages.
- Messages now come with color (warning: yellow, error: red).
- The error location is now shown with a code frame.
- Deprecate the `--safe-arity` option.
- Ts2ocaml now generates minimal arity-safe output by default.
- Perform massive internal refactoring.

## [1.4.6] - 2023-07-13
- Fix a bug which generated unnecessarily duplicated option type (#315).

Expand Down
2 changes: 1 addition & 1 deletion build/BindingUpdater.fs
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ let typescript () =
|> File.writeString false dest

let run () =
typescript ()
typescript ()
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.6)
(version 2.0.0-alpha.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.6"
version: "2.0.0-alpha.0"
synopsis:
"Standard library for ts2ocaml generated bindings (js_of_ocaml target)"
description:
Expand Down
4 changes: 2 additions & 2 deletions fake
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ set -o pipefail
echo "Restoring dotnet tools..."
dotnet tool restore

if [ -z "$@"]; then
if [ -z "$@" ]; then
FAKE_DETAILED_ERRORS=true dotnet run --project ./build/build.fsproj
else
FAKE_DETAILED_ERRORS=true dotnet run --project ./build/build.fsproj -- -t "$@"
fi
fi
2 changes: 1 addition & 1 deletion fake.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
echo Restoring dotnet tools...
dotnet tool restore

dotnet run --project ./build/build.fsproj -- -t %*
dotnet run --project ./build/build.fsproj -- -t %*
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.6",
"version": "2.0.0-alpha.0",
"description": "Generate OCaml bindings from TypeScript definitions via the TypeScript compiler API",
"repository": {
"type": "git",
Expand Down

0 comments on commit 9eb39cb

Please sign in to comment.