Skip to content

Commit

Permalink
Upgrade to rescript 10 (teamwalnut#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
Roland Peelen authored Sep 26, 2022
1 parent 538560e commit 1345e06
Show file tree
Hide file tree
Showing 11 changed files with 36 additions and 37 deletions.
21 changes: 10 additions & 11 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
"postinstall": "node ./copyPlatformBinaryInPlace.js"
},
"devDependencies": {
"rescript": "9.1.0",
"rescript": "10.0.1",
"graphql": "^15.5.0"
},
"peerDependencies": {
"rescript": "^9.1.0"
"rescript": "^10.0.1"
},
"publishConfig": {
"access": "public"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
12 │ |}

This type constructor, `Screen_Model.Raw.t_DemoScreen`, can't be found.

If you wanted to write a recursive type, don't forget the `rec` in `type rec`

Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
The module or file MissingFragment can't be found.
- If it's a third-party dependency:
- Did you list it in bsconfig.json?
- Did you run `bsb` instead of `bsb -make-world`
- Did you run `rescript build` instead of `rescript build -with-deps`
(latter builds third-parties)?
- Did you include the file's directory in bsconfig.json?

Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
The module or file MissingFragment can't be found.
- If it's a third-party dependency:
- Did you list it in bsconfig.json?
- Did you run `bsb` instead of `bsb -make-world`
- Did you run `rescript build` instead of `rescript build -with-deps`
(latter builds third-parties)?
- Did you include the file's directory in bsconfig.json?

Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
19 ┆ }
20 ┆ |}

This has type: [> `WrongFragmentName ]
Somewhere wanted: [ `ListFragment ]
This has type: [> #WrongFragmentName]
Somewhere wanted: [#ListFragment]
The second variant type does not allow tag(s) `WrongFragmentName

Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
15 ┆ }
16 ┆ }

This call is missing an argument of type (~arg1: [ `String ])
This call is missing an argument of type (~arg1: [#String])

Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ function parse(prim) {
return String(prim);
}

var serialize = Caml_format.caml_int_of_string;
var serialize = Caml_format.int_of_string;

var StringOfInt = {
parse: parse,
serialize: serialize
};

var parse$1 = Caml_format.caml_int_of_string;
var parse$1 = Caml_format.int_of_string;

function serialize$1(prim) {
return String(prim);
Expand All @@ -32,7 +32,7 @@ function parse$2(value) {
return {
variousScalars: {
__typename: value$1.__typename,
string: Caml_format.caml_int_of_string(value$1.string),
string: Caml_format.int_of_string(value$1.string),
int: String(value$1.int)
}
};
Expand All @@ -41,7 +41,7 @@ function parse$2(value) {
function serialize$2(value) {
var value$1 = value.variousScalars;
var value$2 = value$1.int;
var value$3 = Caml_format.caml_int_of_string(value$2);
var value$3 = Caml_format.int_of_string(value$2);
var value$4 = value$1.string;
var value$5 = String(value$4);
var value$6 = value$1.__typename;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ function parse(prim) {
return String(prim);
}

var serialize = Caml_format.caml_int_of_string;
var serialize = Caml_format.int_of_string;

var StringOfInt = {
parse: parse,
serialize: serialize
};

var parse$1 = Caml_format.caml_int_of_string;
var parse$1 = Caml_format.int_of_string;

function serialize$1(prim) {
return String(prim);
Expand All @@ -31,7 +31,7 @@ function parse$2(value) {
var value$1 = value.variousScalars;
return {
variousScalars: {
string: Caml_format.caml_int_of_string(value$1.string),
string: Caml_format.int_of_string(value$1.string),
int: String(value$1.int)
}
};
Expand All @@ -40,7 +40,7 @@ function parse$2(value) {
function serialize$2(value) {
var value$1 = value.variousScalars;
var value$2 = value$1.int;
var value$3 = Caml_format.caml_int_of_string(value$2);
var value$3 = Caml_format.int_of_string(value$2);
var value$4 = value$1.string;
var value$5 = String(value$4);
var variousScalars = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ function parse(prim) {
return String(prim);
}

var serialize = Caml_format.caml_int_of_string;
var serialize = Caml_format.int_of_string;

var StringOfInt = {
parse: parse,
serialize: serialize
};

var parse$1 = Caml_format.caml_int_of_string;
var parse$1 = Caml_format.int_of_string;

function serialize$1(prim) {
return String(prim);
Expand All @@ -40,7 +40,7 @@ function parse$2(value) {
var value$1 = value.variousScalars;
return {
variousScalars: {
string: Caml_format.caml_int_of_string(value$1.string),
string: Caml_format.int_of_string(value$1.string),
int: String(value$1.int)
}
};
Expand All @@ -49,7 +49,7 @@ function parse$2(value) {
function serialize$2(value) {
var value$1 = value.variousScalars;
var value$2 = value$1.int;
var value$3 = Caml_format.caml_int_of_string(value$2);
var value$3 = Caml_format.int_of_string(value$2);
var value$4 = value$1.string;
var value$5 = String(value$4);
var variousScalars = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,12 @@ function serializeInputObjectnested_type(inp) {
};
}

function serializeInputObjectthis_will_be_duplicated(inp) {
return {
id: inp.id
};
}

function serializeInputObjectproblem_input(inp) {
var a = inp.the_problem;
var a$1 = inp.b;
Expand All @@ -110,12 +116,6 @@ function serializeInputObjectproblem_input(inp) {
};
}

function serializeInputObjectthis_will_be_duplicated(inp) {
return {
id: inp.id
};
}

function serializeVariables$1(inp) {
return {
input: serializeInputObjectproblem_input(inp.input)
Expand Down

0 comments on commit 1345e06

Please sign in to comment.