Skip to content

Commit 17a070f

Browse files
committed
v11.0.0-alpha.1 πŸš€
1 parent bb529a6 commit 17a070f

File tree

5 files changed

+5
-37
lines changed

5 files changed

+5
-37
lines changed

β€Ždocs/js-usage.mdβ€Ž

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,18 +1122,6 @@ S.parseOrThrow("abc", schema); //? throws: Failed parsing: Expected number, rece
11221122
S.reverseConvertOrThrow(123, schema); //? "123"
11231123
```
11241124

1125-
Currently, ReScript Schema supports the following coercions (πŸ”„ means reverse support):
1126-
1127-
- from `string` to `string` πŸ”„
1128-
- from `string` to literal `string`, `boolean`, `number`, `bigint` `null`, `undefined`, `NaN` πŸ”„
1129-
- from `string` to `boolean` πŸ”„
1130-
- from `string` to `int32` πŸ”„
1131-
- from `string` to `number` πŸ”„
1132-
- from `string` to `bigint` πŸ”„
1133-
- from `int32` to `number`
1134-
1135-
There are plans to add more support in future versions and make it extensible.
1136-
11371125
### **`name`**
11381126

11391127
```ts

β€Ždocs/rescript-usage.mdβ€Ž

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1399,18 +1399,6 @@ let schema = S.string->S.to(S.float)
13991399
123.->S.reverseConvertOrThrow(schema) //? "123"
14001400
```
14011401

1402-
Currently, ReScript Schema supports the following coercions (πŸ”„ means reverse support):
1403-
1404-
- from `string` to `string` πŸ”„
1405-
- from `string` to literal `string`, `boolean`, `number`, `bigint` `null`, `undefined`, `NaN` πŸ”„
1406-
- from `string` to `boolean` πŸ”„
1407-
- from `string` to `int32` πŸ”„
1408-
- from `string` to `number` πŸ”„
1409-
- from `string` to `bigint` πŸ”„
1410-
- from `int32` to `number`
1411-
1412-
There are plans to add more support in future versions and make it extensible.
1413-
14141402
### **`classify`**
14151403

14161404
`(S.t<'value>) => S.tagged`

β€Žpackages/sury/jsr.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sury/sury",
3-
"version": "11.0.0-alpha.0",
3+
"version": "11.0.0-alpha.1",
44
"license": "MIT",
55
"exclude": ["!src", "!rescript.json", "!README.md", "!package.json", "!docs"],
66
"exports": "./src/S.mjs"

β€Žpackages/sury/package.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sury",
3-
"version": "11.0.0-alpha.0",
3+
"version": "11.0.0-alpha.1",
44
"private": true,
55
"description": "🧬 The fastest schema with next-gen DX",
66
"keywords": [

β€Žpnpm-lock.yamlβ€Ž

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

0 commit comments

Comments
Β (0)