Skip to content

Commit b9ce2e6

Browse files
committed
v6.1.0 πŸš€
1 parent f9c0f66 commit b9ce2e6

File tree

6 files changed

+37
-76
lines changed

6 files changed

+37
-76
lines changed

β€ŽREADME.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
[![codecov](https://codecov.io/gh/DZakh/rescript-json-schema/branch/main/graph/badge.svg?token=40G6YKKD6J)](https://codecov.io/gh/DZakh/rescript-json-schema)
33
[![npm](https://img.shields.io/npm/dm/rescript-json-schema)](https://www.npmjs.com/package/rescript-json-schema)
44

5-
# ReScript JSON Schema
5+
# ReScript JSON Schema πŸ“„
66

77
Typesafe JSON Schema for ReScript
88

β€Ž__tests__/JSONSchema_test.resβ€Ž

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ test("Schema of EmptyOption Literal schema isn't supported", t => {
383383

384384
t->Assert.deepEqual(
385385
JSONSchema.make(schema),
386-
Error(`[ReScript JSON Schema] Failed converting at root. Reason: The Literal(undefined) schema is not supported`),
386+
Error(`[ReScript JSON Schema] Failed converting at root. Reason: The undefined schema is not supported`),
387387
)
388388
})
389389

@@ -392,7 +392,7 @@ test("Schema of NaN Literal schema isn't supported", t => {
392392

393393
t->Assert.deepEqual(
394394
JSONSchema.make(schema),
395-
Error(`[ReScript JSON Schema] Failed converting at root. Reason: The Literal(NaN) schema is not supported`),
395+
Error(`[ReScript JSON Schema] Failed converting at root. Reason: The NaN schema is not supported`),
396396
)
397397
})
398398

@@ -752,7 +752,7 @@ test("Transformed schema schema with default fails when destruction failed", t =
752752

753753
t->Assert.deepEqual(
754754
JSONSchema.make(schema),
755-
Error(`[ReScript JSON Schema] Failed converting at ["field"]. Reason: Couldn't destruct default value. Error: Failed serializing at root. Reason: The S.transform serializer is missing`),
755+
Error(`[ReScript JSON Schema] Failed converting at ["field"]. Reason: Couldn't destruct default value. Error: Failed serializing to JSON at root. Reason: The S.transform serializer is missing`),
756756
)
757757
})
758758

β€Žonline/package-lock.jsonβ€Ž

Lines changed: 13 additions & 52 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žonline/package.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"react-dom": "18.2.0",
1818
"rescript": "11.1.2",
1919
"rescript-json-schema": "./vendor/rescript-json-schema",
20-
"rescript-schema": "7.0.1"
20+
"rescript-schema": "8.0.0"
2121
},
2222
"devDependencies": {
2323
"@jihchi/vite-plugin-rescript": "^5.3.1",

β€Žpackage-lock.jsonβ€Ž

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žpackage.jsonβ€Ž

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "rescript-json-schema",
3-
"version": "6.0.1",
4-
"description": "Typesafe JSON Schema for ReScript",
3+
"version": "6.1.0",
4+
"description": "πŸ“„ Typesafe JSON Schema for ReScript",
55
"keywords": [
66
"rescript",
77
"json",
@@ -41,12 +41,12 @@
4141
"devDependencies": {
4242
"@dzakh/rescript-ava": "3.0.0",
4343
"ava": "5.2.0",
44-
"rescript": "11.1.1",
45-
"rescript-schema": "7.0.1",
44+
"rescript": "11.1.2",
45+
"rescript-schema": "8.0.0",
4646
"c8": "8.0.1"
4747
},
4848
"peerDependencies": {
4949
"rescript": "11.x",
50-
"rescript-schema": "7.x"
50+
"rescript-schema": "7.x || 8.x"
5151
}
5252
}

0 commit comments

Comments
Β (0)