File tree 3 files changed +6
-2
lines changed
3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ module Version = {
36
36
| V1
37
37
| V2
38
38
| V3
39
+ | V4
39
40
| UnknownVersion (string )
40
41
41
42
// Helps finding the right API version
@@ -57,6 +58,7 @@ module Version = {
57
58
}
58
59
| list {"2" } => V2
59
60
| list {"3" } => V3
61
+ | list {"4" } => V4
60
62
| _ => UnknownVersion (apiVersion )
61
63
}
62
64
@@ -65,6 +67,7 @@ module Version = {
65
67
| V1 => "1.0"
66
68
| V2 => "2.0"
67
69
| V3 => "3.0"
70
+ | V4 => "4.0"
68
71
| UnknownVersion (version ) => version
69
72
}
70
73
@@ -73,7 +76,7 @@ module Version = {
73
76
let availableLanguages = t =>
74
77
switch t {
75
78
| V1 => [Lang .Reason , Res ]
76
- | V2 | V3 => [Lang .Res ]
79
+ | V2 | V3 | V4 => [Lang .Res ]
77
80
| UnknownVersion (_ ) => [Res ]
78
81
}
79
82
}
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ module Version: {
24
24
| V1
25
25
| V2
26
26
| V3
27
+ | V4
27
28
| UnknownVersion(string)
28
29
29
30
// Helps finding the right API version
Original file line number Diff line number Diff line change @@ -488,7 +488,7 @@ let useCompilerManager = (
488
488
| Lang .Reason => instance -> Compiler .reasonCompile (code )
489
489
| Lang .Res => instance -> Compiler .resCompile (code )
490
490
}
491
- | V2 | V3 =>
491
+ | V2 | V3 | V4 =>
492
492
switch lang {
493
493
| Lang .OCaml => instance -> Compiler .ocamlCompile (code )
494
494
| Lang .Reason =>
You can’t perform that action at this time.
0 commit comments