@unthrown/standard-schema 1.1.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/index.md +3 -3
- package/package.json +2 -2
package/docs/index.md
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
type SchemaIssues = readonly StandardSchemaV1.Issue[];
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
Defined in: [index.ts:21](https://github.com/btravstack/unthrown/blob/
|
|
15
|
+
Defined in: [index.ts:21](https://github.com/btravstack/unthrown/blob/9964bddff12c79925119bbfc5de67104bbcfc533/packages/standard-schema/src/index.ts#L21)
|
|
16
16
|
|
|
17
17
|
The error channel both entry points produce: a schema's validation issues.
|
|
18
18
|
|
|
@@ -24,7 +24,7 @@ The error channel both entry points produce: a schema's validation issues.
|
|
|
24
24
|
function fromSchema<S>(schema): (input) => Result<InferOutput<S>, SchemaIssues>;
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
-
Defined in: [index.ts:51](https://github.com/btravstack/unthrown/blob/
|
|
27
|
+
Defined in: [index.ts:51](https://github.com/btravstack/unthrown/blob/9964bddff12c79925119bbfc5de67104bbcfc533/packages/standard-schema/src/index.ts#L51)
|
|
28
28
|
|
|
29
29
|
Turn a **synchronous** Standard Schema into a validator returning a
|
|
30
30
|
`Result`.
|
|
@@ -77,7 +77,7 @@ parse(42).unwrapErr(); // the issues array
|
|
|
77
77
|
function fromSchemaAsync<S>(schema): (input) => AsyncResult<InferOutput<S>, SchemaIssues>;
|
|
78
78
|
```
|
|
79
79
|
|
|
80
|
-
Defined in: [index.ts:97](https://github.com/btravstack/unthrown/blob/
|
|
80
|
+
Defined in: [index.ts:97](https://github.com/btravstack/unthrown/blob/9964bddff12c79925119bbfc5de67104bbcfc533/packages/standard-schema/src/index.ts#L97)
|
|
81
81
|
|
|
82
82
|
Turn a Standard Schema (sync **or** async) into a validator returning an
|
|
83
83
|
`AsyncResult`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unthrown/standard-schema",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Standard Schema (Zod, Valibot, ArkType, …) interop for unthrown",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"arktype",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@standard-schema/spec": "1.1.0",
|
|
50
|
-
"unthrown": "
|
|
50
|
+
"unthrown": "2.0.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/node": "24.13.2",
|