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

Commit 567e477

Browse files
committed
Remove support for deprecated @Genflow annotation, and genflowconfig.json file.
1 parent c67e4af commit 567e477

File tree

4 files changed

+7
-11
lines changed

4 files changed

+7
-11
lines changed

Changes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# master
22
Move "gentypeconfig" inside bsconfig.json. Using a file gentypeconfig.json is deprecated.
3+
Remove support for deprecated @genFlow annotation, and genflowconfig.json file.
34

45
# 0.17.0
56
- [Experimental feature: Typed wrappers for JS values](https://github.com/cristianoc/genType/pull/60).

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Reason genType 0.17.0
22

3-
> **Disclosure:** This project used to be called `genFlow` but has been renamed to `genType`. To migrate from an earlier version, change the path to use `gentype.native`, and move the config inside `bsconfig.json`.
3+
> **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`.
44
55
`genType` lets you to use [Reason](https://reasonml.github.io/) values from JavaScript idiomatically. In particular, [ReasonReact](https://reasonml.github.io/reason-react/) components. Also, if you're using JavaScript components from Reason, it can check their type.
66

src/GenTypeCommon.re

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,12 @@ let logItem = x => {
6565
Printf.fprintf(outChannel, x);
6666
};
6767

68-
let tagIsGenType = s => s == "genFlow" || s == "genType";
69-
let tagIsGenTypeAs = s =>
70-
s == "genFlow" || s == "genType" || s == "genFlow.as" || s == "genType.as";
68+
let tagIsGenType = s => s == "genType";
69+
let tagIsGenTypeAs = s => s == "genType" || s == "genType.as";
7170

72-
let tagIsGenTypeImport = s =>
73-
s == "genType.import";
71+
let tagIsGenTypeImport = s => s == "genType.import";
7472

75-
let tagIsGenTypeOpaque = s => s == "genType.opaque" || s == "genFlow.opaque";
73+
let tagIsGenTypeOpaque = s => s == "genFlow.opaque";
7674

7775
type optionalness =
7876
| NonMandatory

src/Paths.re

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,7 @@ let executable =
7777

7878
let getConfigFile = () => {
7979
let gentypeconfig = concat(projectRoot^, "gentypeconfig.json");
80-
let genflowconfig = concat(projectRoot^, "genflowconfig.json");
81-
gentypeconfig |> Sys.file_exists ?
82-
Some(gentypeconfig) :
83-
genflowconfig |> Sys.file_exists ? Some(genflowconfig) : None;
80+
gentypeconfig |> Sys.file_exists ? Some(gentypeconfig) : None;
8481
};
8582
let getBsConfigFile = () => {
8683
let bsconfig = concat(projectRoot^, "bsconfig.json");

0 commit comments

Comments
 (0)