@orpc/zod 1.0.0-beta.3 → 1.0.0-beta.4
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/README.md +8 -0
- package/dist/index.d.mts +2 -3
- package/dist/index.d.ts +2 -3
- package/package.json +5 -5
package/README.md
CHANGED
@@ -131,6 +131,14 @@ const InputSchema = oz.openapi(
|
|
131
131
|
)
|
132
132
|
```
|
133
133
|
|
134
|
+
## Sponsors
|
135
|
+
|
136
|
+
<p align="center">
|
137
|
+
<a href="https://cdn.jsdelivr.net/gh/unnoq/unnoq/sponsors.svg">
|
138
|
+
<img src='https://cdn.jsdelivr.net/gh/unnoq/unnoq/sponsors.svg'/>
|
139
|
+
</a>
|
140
|
+
</p>
|
141
|
+
|
134
142
|
## License
|
135
143
|
|
136
144
|
Distributed under the MIT License. See [LICENSE](https://github.com/unnoq/orpc/blob/main/LICENSE) for more information.
|
package/dist/index.d.mts
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
import { JSONSchema, ConditionalSchemaConverter, SchemaConvertOptions } from '@orpc/openapi';
|
2
2
|
import { ZodTypeAny, input, output, ZodTypeDef, CustomErrorParams, ZodType, ZodEffects } from 'zod';
|
3
3
|
import { Context } from '@orpc/server';
|
4
|
-
import {
|
5
|
-
import { StandardHandlerOptions } from '@orpc/server/standard';
|
4
|
+
import { StandardHandlerPlugin, StandardHandlerOptions } from '@orpc/server/standard';
|
6
5
|
import { AnySchema } from '@orpc/contract';
|
7
6
|
|
8
7
|
declare function getCustomJsonSchema(def: ZodTypeDef, options: {
|
@@ -35,7 +34,7 @@ declare function regexp(params?: string | CustomParams | ((input: unknown) => Cu
|
|
35
34
|
|
36
35
|
declare function url(params?: string | CustomParams | ((input: unknown) => CustomParams)): ZodType<URL, ZodTypeDef, URL>;
|
37
36
|
|
38
|
-
declare class ZodSmartCoercionPlugin<TContext extends Context> implements
|
37
|
+
declare class ZodSmartCoercionPlugin<TContext extends Context> implements StandardHandlerPlugin<TContext> {
|
39
38
|
init(options: StandardHandlerOptions<TContext>): void;
|
40
39
|
}
|
41
40
|
|
package/dist/index.d.ts
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
import { JSONSchema, ConditionalSchemaConverter, SchemaConvertOptions } from '@orpc/openapi';
|
2
2
|
import { ZodTypeAny, input, output, ZodTypeDef, CustomErrorParams, ZodType, ZodEffects } from 'zod';
|
3
3
|
import { Context } from '@orpc/server';
|
4
|
-
import {
|
5
|
-
import { StandardHandlerOptions } from '@orpc/server/standard';
|
4
|
+
import { StandardHandlerPlugin, StandardHandlerOptions } from '@orpc/server/standard';
|
6
5
|
import { AnySchema } from '@orpc/contract';
|
7
6
|
|
8
7
|
declare function getCustomJsonSchema(def: ZodTypeDef, options: {
|
@@ -35,7 +34,7 @@ declare function regexp(params?: string | CustomParams | ((input: unknown) => Cu
|
|
35
34
|
|
36
35
|
declare function url(params?: string | CustomParams | ((input: unknown) => CustomParams)): ZodType<URL, ZodTypeDef, URL>;
|
37
36
|
|
38
|
-
declare class ZodSmartCoercionPlugin<TContext extends Context> implements
|
37
|
+
declare class ZodSmartCoercionPlugin<TContext extends Context> implements StandardHandlerPlugin<TContext> {
|
39
38
|
init(options: StandardHandlerOptions<TContext>): void;
|
40
39
|
}
|
41
40
|
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@orpc/zod",
|
3
3
|
"type": "module",
|
4
|
-
"version": "1.0.0-beta.
|
4
|
+
"version": "1.0.0-beta.4",
|
5
5
|
"license": "MIT",
|
6
6
|
"homepage": "https://orpc.unnoq.com",
|
7
7
|
"repository": {
|
@@ -24,15 +24,15 @@
|
|
24
24
|
"dist"
|
25
25
|
],
|
26
26
|
"peerDependencies": {
|
27
|
-
"@orpc/contract": "1.0.0-beta.
|
28
|
-
"@orpc/server": "1.0.0-beta.
|
27
|
+
"@orpc/contract": "1.0.0-beta.4",
|
28
|
+
"@orpc/server": "1.0.0-beta.4"
|
29
29
|
},
|
30
30
|
"dependencies": {
|
31
31
|
"escape-string-regexp": "^5.0.0",
|
32
32
|
"wildcard-match": "^5.1.3",
|
33
33
|
"zod": "^3.24.2",
|
34
|
-
"@orpc/shared": "1.0.0-beta.
|
35
|
-
"@orpc/openapi": "1.0.0-beta.
|
34
|
+
"@orpc/shared": "1.0.0-beta.4",
|
35
|
+
"@orpc/openapi": "1.0.0-beta.4"
|
36
36
|
},
|
37
37
|
"devDependencies": {
|
38
38
|
"zod-to-json-schema": "^3.24.3"
|