Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

Commit

Permalink
Release 0.19.0
Browse files Browse the repository at this point in the history
- Add support for nested modules: translation of nested types and values, as well as cross references.
- [Remove deprecated way of wrapping JS components](9c38882).
- [Use strict imports for wrapping JS values and components](81c6a7f).
- [Generate opaque types corresponding to an existing Flow/TS type](#63).
  • Loading branch information
cristianoc committed Oct 16, 2018
1 parent 2a8744c commit 91c9eca
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Changes.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# master
# 0.19.0
- Add support for nested modules: translation of nested types and values, as well as cross references.
- [Remove deprecated way of wrapping JS components](https://github.com/cristianoc/genType/commit/9c388826c43eb9507b07fd95a05eed3ce619297d).
- [Use strict imports for wrapping JS values and components](https://github.com/cristianoc/genType/commit/81c6a7f062c87c141b734dd1bb338faf1afc8f5a).
Expand Down
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Reason genType 0.18.0
# Reason genType 0.19.0

> **Disclosure:** This project used to be called `genFlow` but has been renamed to `genType`. To migrate from an earlier version, use `@genType` annotations, change the path to use `gentype.native`, and move the config inside `bsconfig.json`.
Expand Down Expand Up @@ -28,10 +28,10 @@ Wrappers for using ReasonReact components from JavaScript are generated when the
# Will download and automatically untar the file in the current directory as gentype.native
# MacOS
curl -L https://github.com/cristianoc/genType/releases/download/v0.18.0/gentype-macos.tar.gz | tar xz
curl -L https://github.com/cristianoc/genType/releases/download/v0.19.0/gentype-macos.tar.gz | tar xz
# Linux
curl -L https://github.com/cristianoc/genType/releases/download/v0.18.0/gentype-linux.tar.gz | tar xz
curl -L https://github.com/cristianoc/genType/releases/download/v0.19.0/gentype-linux.tar.gz | tar xz
```

# Quick Start: Set up genType in existing TypeScript / Flow / BuckleScript project
Expand Down Expand Up @@ -138,8 +138,6 @@ If a Reason type contains a type variable, the corresponding value is not conver

* **BuckleScript in-source = true**. Currently only supports bucklescript projects with [in-source generation](https://bucklescript.github.io/docs/en/build-configuration#package-specs) and `.bs.js` file suffix.

* **No nested modules**. Nested modules are not supported, and annotations will be ignored.

* **Limited JS wrappers**. There used to be a limited way to type check existing wrappers for JS components. This is now deprecated. A complete solution, which generates wrappers automatically for components as well as arbitrary values, is under development. For an early example, see [MyBannerWrapper.re](examples/typescript-react-example/src/MyBannerWrapper.re).

# Development
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gentype",
"version": "0.18.0",
"version": "0.19.0",
"description": "Use Reason values from Javascript: vanilla, or TypeScript/FlowType-annotated",
"license": "MIT",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/GenType.re
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

open GenTypeCommon;

let version = "0.18.0";
let version = "0.19.0";

let signFile = s => s;

Expand Down

0 comments on commit 91c9eca

Please sign in to comment.