@orpc/contract 0.0.0-next.15d9202 → 0.0.0-next.173b319
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 +10 -0
- package/dist/index.d.mts +1 -2
- package/dist/index.d.ts +1 -2
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -60,6 +60,8 @@ You can find the full documentation [here](https://orpc.unnoq.com).
|
|
|
60
60
|
- [@orpc/vue-colada](https://www.npmjs.com/package/@orpc/vue-colada): Integration with [Pinia Colada](https://pinia-colada.esm.dev/).
|
|
61
61
|
- [@orpc/openapi](https://www.npmjs.com/package/@orpc/openapi): Generate OpenAPI specs and handle OpenAPI requests.
|
|
62
62
|
- [@orpc/zod](https://www.npmjs.com/package/@orpc/zod): More schemas that [Zod](https://zod.dev/) doesn't support yet.
|
|
63
|
+
- [@orpc/valibot](https://www.npmjs.com/package/@orpc/valibot): OpenAPI spec generation from [Valibot](https://valibot.dev/).
|
|
64
|
+
- [@orpc/arktype](https://www.npmjs.com/package/@orpc/arktype): OpenAPI spec generation from [ArkType](https://arktype.io/).
|
|
63
65
|
|
|
64
66
|
## `@orpc/contract`
|
|
65
67
|
|
|
@@ -98,6 +100,14 @@ export const contract = {
|
|
|
98
100
|
}
|
|
99
101
|
```
|
|
100
102
|
|
|
103
|
+
## Sponsors
|
|
104
|
+
|
|
105
|
+
<p align="center">
|
|
106
|
+
<a href="https://cdn.jsdelivr.net/gh/unnoq/unnoq/sponsors.svg">
|
|
107
|
+
<img src='https://cdn.jsdelivr.net/gh/unnoq/unnoq/sponsors.svg'/>
|
|
108
|
+
</a>
|
|
109
|
+
</p>
|
|
110
|
+
|
|
101
111
|
## License
|
|
102
112
|
|
|
103
113
|
Distributed under the MIT License. See [LICENSE](https://github.com/unnoq/orpc/blob/main/LICENSE) for more information.
|
package/dist/index.d.mts
CHANGED
|
@@ -22,7 +22,6 @@ declare class ValidationError extends Error {
|
|
|
22
22
|
interface ErrorMapItem<TDataSchema extends AnySchema> {
|
|
23
23
|
status?: number;
|
|
24
24
|
message?: string;
|
|
25
|
-
description?: string;
|
|
26
25
|
data?: TDataSchema;
|
|
27
26
|
}
|
|
28
27
|
type ErrorMap = {
|
|
@@ -195,7 +194,7 @@ declare class ContractBuilder<TInputSchema extends AnySchema, TOutputSchema exte
|
|
|
195
194
|
/**
|
|
196
195
|
* Reset initial meta
|
|
197
196
|
*/
|
|
198
|
-
$meta<U extends Meta>(initialMeta: U): ContractBuilder<TInputSchema, TOutputSchema, TErrorMap, U
|
|
197
|
+
$meta<U extends Meta>(initialMeta: U): ContractBuilder<TInputSchema, TOutputSchema, TErrorMap, U & Record<never, never>>;
|
|
199
198
|
/**
|
|
200
199
|
* Reset initial route
|
|
201
200
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -22,7 +22,6 @@ declare class ValidationError extends Error {
|
|
|
22
22
|
interface ErrorMapItem<TDataSchema extends AnySchema> {
|
|
23
23
|
status?: number;
|
|
24
24
|
message?: string;
|
|
25
|
-
description?: string;
|
|
26
25
|
data?: TDataSchema;
|
|
27
26
|
}
|
|
28
27
|
type ErrorMap = {
|
|
@@ -195,7 +194,7 @@ declare class ContractBuilder<TInputSchema extends AnySchema, TOutputSchema exte
|
|
|
195
194
|
/**
|
|
196
195
|
* Reset initial meta
|
|
197
196
|
*/
|
|
198
|
-
$meta<U extends Meta>(initialMeta: U): ContractBuilder<TInputSchema, TOutputSchema, TErrorMap, U
|
|
197
|
+
$meta<U extends Meta>(initialMeta: U): ContractBuilder<TInputSchema, TOutputSchema, TErrorMap, U & Record<never, never>>;
|
|
199
198
|
/**
|
|
200
199
|
* Reset initial route
|
|
201
200
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orpc/contract",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.0-next.
|
|
4
|
+
"version": "0.0.0-next.173b319",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://orpc.unnoq.com",
|
|
7
7
|
"repository": {
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@standard-schema/spec": "^1.0.0",
|
|
28
|
-
"@orpc/client": "0.0.0-next.
|
|
29
|
-
"@orpc/shared": "0.0.0-next.
|
|
30
|
-
"@orpc/standard-server": "0.0.0-next.
|
|
28
|
+
"@orpc/client": "0.0.0-next.173b319",
|
|
29
|
+
"@orpc/shared": "0.0.0-next.173b319",
|
|
30
|
+
"@orpc/standard-server": "0.0.0-next.173b319"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"arktype": "2.0.0-rc.26",
|