Skip to content

Commit ed73fea

Browse files
committed
chore(dependencies): rescript -> 11.0.1
1 parent 23ca01e commit ed73fea

File tree

3 files changed

+19
-20
lines changed

3 files changed

+19
-20
lines changed

examples/EncodeExample.res

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ let _ = ["foo", "bar"]->Json.Encode.stringArray->Js.log
66

77
// Encode string array, slower but more flexible
88
// prints ["foo", "bar"]
9-
let _ = ["foo", "bar"]->Json.Encode.array(Json.Encode.string, _)->Js.log
9+
let _ = ["foo", "bar"]->Json.Encode.array(Json.Encode.string)(_)->Js.log
1010

1111
// Encode object, fast but unsafe because it cannot guarantee that it only contains valid JSON
1212
// prints { x: 42, foo: 'bar' }
@@ -42,8 +42,8 @@ module Encode = {
4242

4343
let line = (~points, ~thickness=?, ()) =>
4444
Unsafe.object({
45-
"points": array(point, points),
46-
"thickness": option(int, thickness),
45+
"points": array(point)(points),
46+
"thickness": option(int)(thickness),
4747
})
4848
}
4949

package-lock.json

+13-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-9
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,15 @@
1616
"type": "git",
1717
"url": "git+https://github.com/glennsl/rescript-json-combinators.git"
1818
},
19-
"keywords": [
20-
"rescript",
21-
"json"
22-
],
19+
"keywords": ["rescript", "json"],
2320
"author": "glennsl",
2421
"license": "(LGPL-3.0 OR MPL-2.0)",
2522
"bugs": {
2623
"url": "https://github.com/glennsl/rescript-json-combinators/issues"
2724
},
2825
"homepage": "https://github.com/glennsl/rescript-json-combinators#readme",
29-
"files": [
30-
"src/*.res*",
31-
"bsconfig.json"
32-
],
26+
"files": ["src/*.res*", "bsconfig.json"],
3327
"devDependencies": {
34-
"rescript": "^9.1.4"
28+
"rescript": "^11.0.1"
3529
}
3630
}

0 commit comments

Comments
 (0)