@orpc/contract 0.0.0-next.de7ca70 → 0.0.0-next.dea79a3
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 +2 -1
- package/dist/index.d.mts +8 -1
- package/dist/index.d.ts +8 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
- **🔗 End-to-End Type Safety**: Ensure type-safe inputs, outputs, and errors from client to server.
|
|
31
31
|
- **📘 First-Class OpenAPI**: Built-in support that fully adheres to the OpenAPI standard.
|
|
32
32
|
- **📝 Contract-First Development**: Optionally define your API contract before implementation.
|
|
33
|
+
- **🔍 First-Class OpenTelemetry**: Seamlessly integrate with OpenTelemetry for observability.
|
|
33
34
|
- **⚙️ Framework Integrations**: Seamlessly integrate with TanStack Query (React, Vue, Solid, Svelte, Angular), Pinia Colada, and more.
|
|
34
35
|
- **🚀 Server Actions**: Fully compatible with React Server Actions on Next.js, TanStack Start, and other platforms.
|
|
35
36
|
- **🔠 Standard Schema Support**: Works out of the box with Zod, Valibot, ArkType, and other schema validators.
|
|
@@ -38,7 +39,6 @@
|
|
|
38
39
|
- **📡 SSE & Streaming**: Enjoy full type-safe support for SSE and streaming.
|
|
39
40
|
- **🌍 Multi-Runtime Support**: Fast and lightweight on Cloudflare, Deno, Bun, Node.js, and beyond.
|
|
40
41
|
- **🔌 Extendability**: Easily extend functionality with plugins, middleware, and interceptors.
|
|
41
|
-
- **🛡️ Reliability**: Well-tested, TypeScript-based, production-ready, and MIT licensed.
|
|
42
42
|
|
|
43
43
|
## Documentation
|
|
44
44
|
|
|
@@ -50,6 +50,7 @@ You can find the full documentation [here](https://orpc.unnoq.com).
|
|
|
50
50
|
- [@orpc/server](https://www.npmjs.com/package/@orpc/server): Build your API or implement API contract.
|
|
51
51
|
- [@orpc/client](https://www.npmjs.com/package/@orpc/client): Consume your API on the client with type-safety.
|
|
52
52
|
- [@orpc/openapi](https://www.npmjs.com/package/@orpc/openapi): Generate OpenAPI specs and handle OpenAPI requests.
|
|
53
|
+
- [@orpc/otel](https://www.npmjs.com/package/@orpc/otel): [OpenTelemetry](https://opentelemetry.io/) integration for observability.
|
|
53
54
|
- [@orpc/nest](https://www.npmjs.com/package/@orpc/nest): Deeply integrate oRPC with [NestJS](https://nestjs.com/).
|
|
54
55
|
- [@orpc/react](https://www.npmjs.com/package/@orpc/react): Utilities for integrating oRPC with React and React Server Actions.
|
|
55
56
|
- [@orpc/tanstack-query](https://www.npmjs.com/package/@orpc/tanstack-query): [TanStack Query](https://tanstack.com/query/latest) integration.
|
package/dist/index.d.mts
CHANGED
|
@@ -68,6 +68,13 @@ interface Route {
|
|
|
68
68
|
* @see {@link https://orpc.unnoq.com/docs/openapi/routing OpenAPI Routing Docs}
|
|
69
69
|
*/
|
|
70
70
|
path?: HTTPPath;
|
|
71
|
+
/**
|
|
72
|
+
* The operation ID of the endpoint.
|
|
73
|
+
* This option is typically relevant when integrating with OpenAPI.
|
|
74
|
+
*
|
|
75
|
+
* @default Concatenation of router segments
|
|
76
|
+
*/
|
|
77
|
+
operationId?: string;
|
|
71
78
|
/**
|
|
72
79
|
* The summary of the procedure.
|
|
73
80
|
* This option is typically relevant when integrating with OpenAPI.
|
|
@@ -166,7 +173,7 @@ interface Route {
|
|
|
166
173
|
*
|
|
167
174
|
* @see {@link https://orpc.unnoq.com/docs/openapi/openapi-specification#operation-metadata Operation Metadata Docs}
|
|
168
175
|
*/
|
|
169
|
-
spec?: OpenAPIV3_1.OperationObject;
|
|
176
|
+
spec?: OpenAPIV3_1.OperationObject | ((current: OpenAPIV3_1.OperationObject) => OpenAPIV3_1.OperationObject);
|
|
170
177
|
}
|
|
171
178
|
declare function mergeRoute(a: Route, b: Route): Route;
|
|
172
179
|
declare function prefixRoute(route: Route, prefix: HTTPPath): Route;
|
package/dist/index.d.ts
CHANGED
|
@@ -68,6 +68,13 @@ interface Route {
|
|
|
68
68
|
* @see {@link https://orpc.unnoq.com/docs/openapi/routing OpenAPI Routing Docs}
|
|
69
69
|
*/
|
|
70
70
|
path?: HTTPPath;
|
|
71
|
+
/**
|
|
72
|
+
* The operation ID of the endpoint.
|
|
73
|
+
* This option is typically relevant when integrating with OpenAPI.
|
|
74
|
+
*
|
|
75
|
+
* @default Concatenation of router segments
|
|
76
|
+
*/
|
|
77
|
+
operationId?: string;
|
|
71
78
|
/**
|
|
72
79
|
* The summary of the procedure.
|
|
73
80
|
* This option is typically relevant when integrating with OpenAPI.
|
|
@@ -166,7 +173,7 @@ interface Route {
|
|
|
166
173
|
*
|
|
167
174
|
* @see {@link https://orpc.unnoq.com/docs/openapi/openapi-specification#operation-metadata Operation Metadata Docs}
|
|
168
175
|
*/
|
|
169
|
-
spec?: OpenAPIV3_1.OperationObject;
|
|
176
|
+
spec?: OpenAPIV3_1.OperationObject | ((current: OpenAPIV3_1.OperationObject) => OpenAPIV3_1.OperationObject);
|
|
170
177
|
}
|
|
171
178
|
declare function mergeRoute(a: Route, b: Route): Route;
|
|
172
179
|
declare function prefixRoute(route: Route, prefix: HTTPPath): Route;
|
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.dea79a3",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://orpc.unnoq.com",
|
|
7
7
|
"repository": {
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@standard-schema/spec": "^1.0.0",
|
|
28
28
|
"openapi-types": "^12.1.3",
|
|
29
|
-
"@orpc/client": "0.0.0-next.
|
|
30
|
-
"@orpc/shared": "0.0.0-next.
|
|
29
|
+
"@orpc/client": "0.0.0-next.dea79a3",
|
|
30
|
+
"@orpc/shared": "0.0.0-next.dea79a3"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"arktype": "2.1.20",
|
|
34
34
|
"valibot": "^1.1.0",
|
|
35
|
-
"zod": "^
|
|
35
|
+
"zod": "^4.0.17"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build": "unbuild",
|