@orpc/server 1.11.3 → 1.12.1

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.
Files changed (41) hide show
  1. package/README.md +3 -3
  2. package/dist/adapters/aws-lambda/index.d.mts +7 -7
  3. package/dist/adapters/aws-lambda/index.d.ts +7 -7
  4. package/dist/adapters/bun-ws/index.d.mts +7 -7
  5. package/dist/adapters/bun-ws/index.d.ts +7 -7
  6. package/dist/adapters/crossws/index.d.mts +7 -7
  7. package/dist/adapters/crossws/index.d.ts +7 -7
  8. package/dist/adapters/fastify/index.d.mts +7 -7
  9. package/dist/adapters/fastify/index.d.ts +7 -7
  10. package/dist/adapters/fetch/index.d.mts +10 -10
  11. package/dist/adapters/fetch/index.d.ts +10 -10
  12. package/dist/adapters/message-port/index.d.mts +8 -8
  13. package/dist/adapters/message-port/index.d.ts +8 -8
  14. package/dist/adapters/node/index.d.mts +10 -10
  15. package/dist/adapters/node/index.d.ts +10 -10
  16. package/dist/adapters/standard/index.d.mts +6 -6
  17. package/dist/adapters/standard/index.d.ts +6 -6
  18. package/dist/adapters/standard-peer/index.d.mts +3 -3
  19. package/dist/adapters/standard-peer/index.d.ts +3 -3
  20. package/dist/adapters/websocket/index.d.mts +7 -7
  21. package/dist/adapters/websocket/index.d.ts +7 -7
  22. package/dist/adapters/ws/index.d.mts +7 -7
  23. package/dist/adapters/ws/index.d.ts +7 -7
  24. package/dist/hibernation/index.d.mts +4 -4
  25. package/dist/hibernation/index.d.ts +4 -4
  26. package/dist/index.d.mts +100 -100
  27. package/dist/index.d.ts +100 -100
  28. package/dist/index.mjs +25 -25
  29. package/dist/plugins/index.d.mts +8 -8
  30. package/dist/plugins/index.d.ts +8 -8
  31. package/dist/shared/{server.DPIFWpxG.d.ts → server.7cEtMB30.d.ts} +1 -1
  32. package/dist/shared/{server.CVKCo60T.d.mts → server.B8gYOD5g.d.mts} +2 -2
  33. package/dist/shared/{server.DBCUJijK.d.mts → server.BqadksTP.d.mts} +1 -1
  34. package/dist/shared/{server.DzV1hr3z.d.mts → server.C8_sRzQB.d.mts} +1 -1
  35. package/dist/shared/{server.Ck-gOLzq.d.mts → server.ChUyt5-i.d.mts} +3 -3
  36. package/dist/shared/{server.Cb6yD7DZ.d.ts → server.ChyoA9XY.d.ts} +1 -1
  37. package/dist/shared/{server.DNtJ-p60.d.ts → server.EfTOZ2Q7.d.ts} +2 -2
  38. package/dist/shared/{server.B4BGqy3Y.d.mts → server.qKsRrdxW.d.mts} +8 -8
  39. package/dist/shared/{server.B4BGqy3Y.d.ts → server.qKsRrdxW.d.ts} +8 -8
  40. package/dist/shared/{server.COL12UTb.d.ts → server.yoEB3Fx4.d.ts} +3 -3
  41. package/package.json +13 -13
package/dist/index.mjs CHANGED
@@ -68,7 +68,7 @@ class DecoratedProcedure extends Procedure {
68
68
  * Adds type-safe custom errors.
69
69
  * The provided errors are spared-merged with any existing errors.
70
70
  *
71
- * @see {@link https://orpc.unnoq.com/docs/error-handling#type%E2%80%90safe-error-handling Type-Safe Error Handling Docs}
71
+ * @see {@link https://orpc.dev/docs/error-handling#type%E2%80%90safe-error-handling Type-Safe Error Handling Docs}
72
72
  */
73
73
  errors(errors) {
74
74
  return new DecoratedProcedure({
@@ -80,7 +80,7 @@ class DecoratedProcedure extends Procedure {
80
80
  * Sets or updates the metadata.
81
81
  * The provided metadata is spared-merged with any existing metadata.
82
82
  *
83
- * @see {@link https://orpc.unnoq.com/docs/metadata Metadata Docs}
83
+ * @see {@link https://orpc.dev/docs/metadata Metadata Docs}
84
84
  */
85
85
  meta(meta) {
86
86
  return new DecoratedProcedure({
@@ -93,8 +93,8 @@ class DecoratedProcedure extends Procedure {
93
93
  * The provided route is spared-merged with any existing route.
94
94
  * This option is typically relevant when integrating with OpenAPI.
95
95
  *
96
- * @see {@link https://orpc.unnoq.com/docs/openapi/routing OpenAPI Routing Docs}
97
- * @see {@link https://orpc.unnoq.com/docs/openapi/input-output-structure OpenAPI Input/Output Structure Docs}
96
+ * @see {@link https://orpc.dev/docs/openapi/routing OpenAPI Routing Docs}
97
+ * @see {@link https://orpc.dev/docs/openapi/input-output-structure OpenAPI Input/Output Structure Docs}
98
98
  */
99
99
  route(route) {
100
100
  return new DecoratedProcedure({
@@ -112,7 +112,7 @@ class DecoratedProcedure extends Procedure {
112
112
  /**
113
113
  * Make this procedure callable (works like a function while still being a procedure).
114
114
  *
115
- * @see {@link https://orpc.unnoq.com/docs/client/server-side Server-side Client Docs}
115
+ * @see {@link https://orpc.dev/docs/client/server-side Server-side Client Docs}
116
116
  */
117
117
  callable(...rest) {
118
118
  const client = createProcedureClient(this, ...rest);
@@ -128,7 +128,7 @@ class DecoratedProcedure extends Procedure {
128
128
  /**
129
129
  * Make this procedure compatible with server action.
130
130
  *
131
- * @see {@link https://orpc.unnoq.com/docs/server-action Server Action Docs}
131
+ * @see {@link https://orpc.dev/docs/server-action Server Action Docs}
132
132
  */
133
133
  actionable(...rest) {
134
134
  const action = createActionableClient(createProcedureClient(this, ...rest));
@@ -154,8 +154,8 @@ class Builder {
154
154
  /**
155
155
  * Sets or overrides the config.
156
156
  *
157
- * @see {@link https://orpc.unnoq.com/docs/client/server-side#middlewares-order Middlewares Order Docs}
158
- * @see {@link https://orpc.unnoq.com/docs/best-practices/dedupe-middleware#configuration Dedupe Middleware Docs}
157
+ * @see {@link https://orpc.dev/docs/client/server-side#middlewares-order Middlewares Order Docs}
158
+ * @see {@link https://orpc.dev/docs/best-practices/dedupe-middleware#configuration Dedupe Middleware Docs}
159
159
  */
160
160
  $config(config) {
161
161
  const inputValidationCount = this["~orpc"].inputValidationIndex - fallbackConfig("initialInputValidationIndex", this["~orpc"].config.initialInputValidationIndex);
@@ -171,7 +171,7 @@ class Builder {
171
171
  /**
172
172
  * Set or override the initial context.
173
173
  *
174
- * @see {@link https://orpc.unnoq.com/docs/context Context Docs}
174
+ * @see {@link https://orpc.dev/docs/context Context Docs}
175
175
  */
176
176
  $context() {
177
177
  return new Builder({
@@ -184,7 +184,7 @@ class Builder {
184
184
  /**
185
185
  * Sets or overrides the initial meta.
186
186
  *
187
- * @see {@link https://orpc.unnoq.com/docs/metadata Metadata Docs}
187
+ * @see {@link https://orpc.dev/docs/metadata Metadata Docs}
188
188
  */
189
189
  $meta(initialMeta) {
190
190
  return new Builder({
@@ -196,8 +196,8 @@ class Builder {
196
196
  * Sets or overrides the initial route.
197
197
  * This option is typically relevant when integrating with OpenAPI.
198
198
  *
199
- * @see {@link https://orpc.unnoq.com/docs/openapi/routing OpenAPI Routing Docs}
200
- * @see {@link https://orpc.unnoq.com/docs/openapi/input-output-structure OpenAPI Input/Output Structure Docs}
199
+ * @see {@link https://orpc.dev/docs/openapi/routing OpenAPI Routing Docs}
200
+ * @see {@link https://orpc.dev/docs/openapi/input-output-structure OpenAPI Input/Output Structure Docs}
201
201
  */
202
202
  $route(initialRoute) {
203
203
  return new Builder({
@@ -208,7 +208,7 @@ class Builder {
208
208
  /**
209
209
  * Sets or overrides the initial input schema.
210
210
  *
211
- * @see {@link https://orpc.unnoq.com/docs/procedure#initial-configuration Initial Procedure Configuration Docs}
211
+ * @see {@link https://orpc.dev/docs/procedure#initial-configuration Initial Procedure Configuration Docs}
212
212
  */
213
213
  $input(initialInputSchema) {
214
214
  return new Builder({
@@ -219,7 +219,7 @@ class Builder {
219
219
  /**
220
220
  * Creates a middleware.
221
221
  *
222
- * @see {@link https://orpc.unnoq.com/docs/middleware Middleware Docs}
222
+ * @see {@link https://orpc.dev/docs/middleware Middleware Docs}
223
223
  */
224
224
  middleware(middleware) {
225
225
  return decorateMiddleware(middleware);
@@ -228,7 +228,7 @@ class Builder {
228
228
  * Adds type-safe custom errors.
229
229
  * The provided errors are spared-merged with any existing errors.
230
230
  *
231
- * @see {@link https://orpc.unnoq.com/docs/error-handling#type%E2%80%90safe-error-handling Type-Safe Error Handling Docs}
231
+ * @see {@link https://orpc.dev/docs/error-handling#type%E2%80%90safe-error-handling Type-Safe Error Handling Docs}
232
232
  */
233
233
  errors(errors) {
234
234
  return new Builder({
@@ -247,7 +247,7 @@ class Builder {
247
247
  * Sets or updates the metadata.
248
248
  * The provided metadata is spared-merged with any existing metadata.
249
249
  *
250
- * @see {@link https://orpc.unnoq.com/docs/metadata Metadata Docs}
250
+ * @see {@link https://orpc.dev/docs/metadata Metadata Docs}
251
251
  */
252
252
  meta(meta) {
253
253
  return new Builder({
@@ -260,8 +260,8 @@ class Builder {
260
260
  * The provided route is spared-merged with any existing route.
261
261
  * This option is typically relevant when integrating with OpenAPI.
262
262
  *
263
- * @see {@link https://orpc.unnoq.com/docs/openapi/routing OpenAPI Routing Docs}
264
- * @see {@link https://orpc.unnoq.com/docs/openapi/input-output-structure OpenAPI Input/Output Structure Docs}
263
+ * @see {@link https://orpc.dev/docs/openapi/routing OpenAPI Routing Docs}
264
+ * @see {@link https://orpc.dev/docs/openapi/input-output-structure OpenAPI Input/Output Structure Docs}
265
265
  */
266
266
  route(route) {
267
267
  return new Builder({
@@ -272,7 +272,7 @@ class Builder {
272
272
  /**
273
273
  * Defines the input validation schema.
274
274
  *
275
- * @see {@link https://orpc.unnoq.com/docs/procedure#input-output-validation Input Validation Docs}
275
+ * @see {@link https://orpc.dev/docs/procedure#input-output-validation Input Validation Docs}
276
276
  */
277
277
  input(schema) {
278
278
  return new Builder({
@@ -284,7 +284,7 @@ class Builder {
284
284
  /**
285
285
  * Defines the output validation schema.
286
286
  *
287
- * @see {@link https://orpc.unnoq.com/docs/procedure#input-output-validation Output Validation Docs}
287
+ * @see {@link https://orpc.dev/docs/procedure#input-output-validation Output Validation Docs}
288
288
  */
289
289
  output(schema) {
290
290
  return new Builder({
@@ -296,7 +296,7 @@ class Builder {
296
296
  /**
297
297
  * Defines the handler of the procedure.
298
298
  *
299
- * @see {@link https://orpc.unnoq.com/docs/procedure Procedure Docs}
299
+ * @see {@link https://orpc.dev/docs/procedure Procedure Docs}
300
300
  */
301
301
  handler(handler) {
302
302
  return new DecoratedProcedure({
@@ -310,7 +310,7 @@ class Builder {
310
310
  *
311
311
  * @note This option does not affect procedures that do not define a path in their route definition.
312
312
  *
313
- * @see {@link https://orpc.unnoq.com/docs/openapi/routing#route-prefixes OpenAPI Route Prefixes Docs}
313
+ * @see {@link https://orpc.dev/docs/openapi/routing#route-prefixes OpenAPI Route Prefixes Docs}
314
314
  */
315
315
  prefix(prefix) {
316
316
  return new Builder({
@@ -322,7 +322,7 @@ class Builder {
322
322
  * Adds tags to all procedures in the router.
323
323
  * This helpful when you want to group procedures together in the OpenAPI specification.
324
324
  *
325
- * @see {@link https://orpc.unnoq.com/docs/openapi/openapi-specification#operation-metadata OpenAPI Operation Metadata Docs}
325
+ * @see {@link https://orpc.dev/docs/openapi/openapi-specification#operation-metadata OpenAPI Operation Metadata Docs}
326
326
  */
327
327
  tag(...tags) {
328
328
  return new Builder({
@@ -333,7 +333,7 @@ class Builder {
333
333
  /**
334
334
  * Applies all of the previously defined options to the specified router.
335
335
  *
336
- * @see {@link https://orpc.unnoq.com/docs/router#extending-router Extending Router Docs}
336
+ * @see {@link https://orpc.dev/docs/router#extending-router Extending Router Docs}
337
337
  */
338
338
  router(router) {
339
339
  return enhanceRouter(router, this["~orpc"]);
@@ -342,7 +342,7 @@ class Builder {
342
342
  * Create a lazy router
343
343
  * And applies all of the previously defined options to the specified router.
344
344
  *
345
- * @see {@link https://orpc.unnoq.com/docs/router#extending-router Extending Router Docs}
345
+ * @see {@link https://orpc.dev/docs/router#extending-router Extending Router Docs}
346
346
  */
347
347
  lazy(loader) {
348
348
  return enhanceRouter(lazy(loader), this["~orpc"]);
@@ -1,8 +1,8 @@
1
1
  import { Value, Promisable } from '@orpc/shared';
2
2
  import { StandardRequest, StandardHeaders } from '@orpc/standard-server';
3
3
  import { BatchResponseBodyItem } from '@orpc/standard-server/batch';
4
- import { d as StandardHandlerInterceptorOptions, g as StandardHandlerPlugin, e as StandardHandlerOptions } from '../shared/server.DBCUJijK.mjs';
5
- import { C as Context, d as ProcedureClientInterceptorOptions } from '../shared/server.B4BGqy3Y.mjs';
4
+ import { d as StandardHandlerInterceptorOptions, g as StandardHandlerPlugin, e as StandardHandlerOptions } from '../shared/server.BqadksTP.mjs';
5
+ import { C as Context, d as ProcedureClientInterceptorOptions } from '../shared/server.qKsRrdxW.mjs';
6
6
  import { Meta, ORPCError as ORPCError$1 } from '@orpc/contract';
7
7
  import { ORPCError } from '@orpc/client';
8
8
 
@@ -36,7 +36,7 @@ interface BatchHandlerOptions<T extends Context> {
36
36
  * The Batch Requests Plugin allows you to combine multiple requests and responses into a single batch,
37
37
  * reducing the overhead of sending each one separately.
38
38
  *
39
- * @see {@link https://orpc.unnoq.com/docs/plugins/batch-requests Batch Requests Plugin Docs}
39
+ * @see {@link https://orpc.dev/docs/plugins/batch-requests Batch Requests Plugin Docs}
40
40
  */
41
41
  declare class BatchHandlerPlugin<T extends Context> implements StandardHandlerPlugin<T> {
42
42
  private readonly maxSize;
@@ -60,7 +60,7 @@ interface CORSOptions<T extends Context> {
60
60
  /**
61
61
  * CORSPlugin is a plugin for oRPC that allows you to configure CORS for your API.
62
62
  *
63
- * @see {@link https://orpc.unnoq.com/docs/plugins/cors CORS Plugin Docs}
63
+ * @see {@link https://orpc.dev/docs/plugins/cors CORS Plugin Docs}
64
64
  */
65
65
  declare class CORSPlugin<T extends Context> implements StandardHandlerPlugin<T> {
66
66
  private readonly options;
@@ -76,7 +76,7 @@ interface RequestHeadersPluginContext {
76
76
  * The Request Headers Plugin injects a `reqHeaders` instance into the context,
77
77
  * allowing access to request headers in oRPC.
78
78
  *
79
- * @see {@link https://orpc.unnoq.com/docs/plugins/request-headers Request Headers Plugin Docs}
79
+ * @see {@link https://orpc.dev/docs/plugins/request-headers Request Headers Plugin Docs}
80
80
  */
81
81
  declare class RequestHeadersPlugin<T extends RequestHeadersPluginContext> implements StandardHandlerPlugin<T> {
82
82
  init(options: StandardHandlerOptions<T>): void;
@@ -89,7 +89,7 @@ interface ResponseHeadersPluginContext {
89
89
  * The Response Headers Plugin allows you to set response headers in oRPC.
90
90
  * It injects a resHeaders instance into the context, enabling you to modify response headers easily.
91
91
  *
92
- * @see {@link https://orpc.unnoq.com/docs/plugins/response-headers Response Headers Plugin Docs}
92
+ * @see {@link https://orpc.dev/docs/plugins/response-headers Response Headers Plugin Docs}
93
93
  */
94
94
  declare class ResponseHeadersPlugin<T extends ResponseHeadersPluginContext> implements StandardHandlerPlugin<T> {
95
95
  init(options: StandardHandlerOptions<T>): void;
@@ -131,7 +131,7 @@ interface SimpleCsrfProtectionHandlerPluginOptions<T extends Context> {
131
131
  * It helps ensure that requests to your procedures originate from JavaScript code,
132
132
  * not from other sources like standard HTML forms or direct browser navigation.
133
133
  *
134
- * @see {@link https://orpc.unnoq.com/docs/plugins/simple-csrf-protection Simple CSRF Protection Plugin Docs}
134
+ * @see {@link https://orpc.dev/docs/plugins/simple-csrf-protection Simple CSRF Protection Plugin Docs}
135
135
  */
136
136
  declare class SimpleCsrfProtectionHandlerPlugin<T extends Context> implements StandardHandlerPlugin<T> {
137
137
  private readonly headerName;
@@ -156,7 +156,7 @@ interface StrictGetMethodPluginOptions {
156
156
  * can be called using the HTTP GET method for RPC Protocol. This helps prevent certain types of
157
157
  * Cross-Site Request Forgery (CSRF) attacks.
158
158
  *
159
- * @see {@link https://orpc.unnoq.com/docs/plugins/strict-get-method Strict Get Method Plugin Docs}
159
+ * @see {@link https://orpc.dev/docs/plugins/strict-get-method Strict Get Method Plugin Docs}
160
160
  */
161
161
  declare class StrictGetMethodPlugin<T extends Context> implements StandardHandlerPlugin<T> {
162
162
  private readonly error;
@@ -1,8 +1,8 @@
1
1
  import { Value, Promisable } from '@orpc/shared';
2
2
  import { StandardRequest, StandardHeaders } from '@orpc/standard-server';
3
3
  import { BatchResponseBodyItem } from '@orpc/standard-server/batch';
4
- import { d as StandardHandlerInterceptorOptions, g as StandardHandlerPlugin, e as StandardHandlerOptions } from '../shared/server.DPIFWpxG.js';
5
- import { C as Context, d as ProcedureClientInterceptorOptions } from '../shared/server.B4BGqy3Y.js';
4
+ import { d as StandardHandlerInterceptorOptions, g as StandardHandlerPlugin, e as StandardHandlerOptions } from '../shared/server.7cEtMB30.js';
5
+ import { C as Context, d as ProcedureClientInterceptorOptions } from '../shared/server.qKsRrdxW.js';
6
6
  import { Meta, ORPCError as ORPCError$1 } from '@orpc/contract';
7
7
  import { ORPCError } from '@orpc/client';
8
8
 
@@ -36,7 +36,7 @@ interface BatchHandlerOptions<T extends Context> {
36
36
  * The Batch Requests Plugin allows you to combine multiple requests and responses into a single batch,
37
37
  * reducing the overhead of sending each one separately.
38
38
  *
39
- * @see {@link https://orpc.unnoq.com/docs/plugins/batch-requests Batch Requests Plugin Docs}
39
+ * @see {@link https://orpc.dev/docs/plugins/batch-requests Batch Requests Plugin Docs}
40
40
  */
41
41
  declare class BatchHandlerPlugin<T extends Context> implements StandardHandlerPlugin<T> {
42
42
  private readonly maxSize;
@@ -60,7 +60,7 @@ interface CORSOptions<T extends Context> {
60
60
  /**
61
61
  * CORSPlugin is a plugin for oRPC that allows you to configure CORS for your API.
62
62
  *
63
- * @see {@link https://orpc.unnoq.com/docs/plugins/cors CORS Plugin Docs}
63
+ * @see {@link https://orpc.dev/docs/plugins/cors CORS Plugin Docs}
64
64
  */
65
65
  declare class CORSPlugin<T extends Context> implements StandardHandlerPlugin<T> {
66
66
  private readonly options;
@@ -76,7 +76,7 @@ interface RequestHeadersPluginContext {
76
76
  * The Request Headers Plugin injects a `reqHeaders` instance into the context,
77
77
  * allowing access to request headers in oRPC.
78
78
  *
79
- * @see {@link https://orpc.unnoq.com/docs/plugins/request-headers Request Headers Plugin Docs}
79
+ * @see {@link https://orpc.dev/docs/plugins/request-headers Request Headers Plugin Docs}
80
80
  */
81
81
  declare class RequestHeadersPlugin<T extends RequestHeadersPluginContext> implements StandardHandlerPlugin<T> {
82
82
  init(options: StandardHandlerOptions<T>): void;
@@ -89,7 +89,7 @@ interface ResponseHeadersPluginContext {
89
89
  * The Response Headers Plugin allows you to set response headers in oRPC.
90
90
  * It injects a resHeaders instance into the context, enabling you to modify response headers easily.
91
91
  *
92
- * @see {@link https://orpc.unnoq.com/docs/plugins/response-headers Response Headers Plugin Docs}
92
+ * @see {@link https://orpc.dev/docs/plugins/response-headers Response Headers Plugin Docs}
93
93
  */
94
94
  declare class ResponseHeadersPlugin<T extends ResponseHeadersPluginContext> implements StandardHandlerPlugin<T> {
95
95
  init(options: StandardHandlerOptions<T>): void;
@@ -131,7 +131,7 @@ interface SimpleCsrfProtectionHandlerPluginOptions<T extends Context> {
131
131
  * It helps ensure that requests to your procedures originate from JavaScript code,
132
132
  * not from other sources like standard HTML forms or direct browser navigation.
133
133
  *
134
- * @see {@link https://orpc.unnoq.com/docs/plugins/simple-csrf-protection Simple CSRF Protection Plugin Docs}
134
+ * @see {@link https://orpc.dev/docs/plugins/simple-csrf-protection Simple CSRF Protection Plugin Docs}
135
135
  */
136
136
  declare class SimpleCsrfProtectionHandlerPlugin<T extends Context> implements StandardHandlerPlugin<T> {
137
137
  private readonly headerName;
@@ -156,7 +156,7 @@ interface StrictGetMethodPluginOptions {
156
156
  * can be called using the HTTP GET method for RPC Protocol. This helps prevent certain types of
157
157
  * Cross-Site Request Forgery (CSRF) attacks.
158
158
  *
159
- * @see {@link https://orpc.unnoq.com/docs/plugins/strict-get-method Strict Get Method Plugin Docs}
159
+ * @see {@link https://orpc.dev/docs/plugins/strict-get-method Strict Get Method Plugin Docs}
160
160
  */
161
161
  declare class StrictGetMethodPlugin<T extends Context> implements StandardHandlerPlugin<T> {
162
162
  private readonly error;
@@ -2,7 +2,7 @@ import { HTTPPath, ORPCError } from '@orpc/client';
2
2
  import { Meta } from '@orpc/contract';
3
3
  import { Interceptor } from '@orpc/shared';
4
4
  import { StandardResponse, StandardLazyRequest } from '@orpc/standard-server';
5
- import { C as Context, R as Router, b as AnyRouter, A as AnyProcedure, d as ProcedureClientInterceptorOptions } from './server.B4BGqy3Y.js';
5
+ import { C as Context, R as Router, b as AnyRouter, A as AnyProcedure, d as ProcedureClientInterceptorOptions } from './server.qKsRrdxW.js';
6
6
 
7
7
  interface StandardHandlerPlugin<T extends Context> {
8
8
  order?: number;
@@ -1,5 +1,5 @@
1
- import { C as Context } from './server.B4BGqy3Y.mjs';
2
- import { b as StandardHandleOptions } from './server.DBCUJijK.mjs';
1
+ import { C as Context } from './server.qKsRrdxW.mjs';
2
+ import { b as StandardHandleOptions } from './server.BqadksTP.mjs';
3
3
 
4
4
  type FriendlyStandardHandleOptions<T extends Context> = Omit<StandardHandleOptions<T>, 'context'> & (Record<never, never> extends T ? {
5
5
  context?: T;
@@ -2,7 +2,7 @@ import { HTTPPath, ORPCError } from '@orpc/client';
2
2
  import { Meta } from '@orpc/contract';
3
3
  import { Interceptor } from '@orpc/shared';
4
4
  import { StandardResponse, StandardLazyRequest } from '@orpc/standard-server';
5
- import { C as Context, R as Router, b as AnyRouter, A as AnyProcedure, d as ProcedureClientInterceptorOptions } from './server.B4BGqy3Y.mjs';
5
+ import { C as Context, R as Router, b as AnyRouter, A as AnyProcedure, d as ProcedureClientInterceptorOptions } from './server.qKsRrdxW.mjs';
6
6
 
7
7
  interface StandardHandlerPlugin<T extends Context> {
8
8
  order?: number;
@@ -1,5 +1,5 @@
1
1
  import { ErrorMap, EnhanceRouteOptions, MergedErrorMap, AnyContractRouter, AnyContractProcedure } from '@orpc/contract';
2
- import { a as AnyMiddleware, L as Lazyable, b as AnyRouter, C as Context, c as Lazy, A as AnyProcedure, P as Procedure, M as MergedInitialContext } from './server.B4BGqy3Y.mjs';
2
+ import { a as AnyMiddleware, L as Lazyable, b as AnyRouter, C as Context, c as Lazy, A as AnyProcedure, P as Procedure, M as MergedInitialContext } from './server.qKsRrdxW.mjs';
3
3
 
4
4
  declare function getRouter<T extends Lazyable<AnyRouter | undefined>>(router: T, path: readonly string[]): T extends Lazy<any> ? Lazy<AnyRouter | undefined> : Lazyable<AnyRouter | undefined>;
5
5
  type AccessibleLazyRouter<T extends Lazyable<AnyRouter | undefined>> = T extends Lazy<infer U extends AnyRouter | undefined | Lazy<AnyRouter | undefined>> ? AccessibleLazyRouter<U> : T extends AnyProcedure | undefined ? Lazy<T> : Lazy<T> & {
@@ -1,9 +1,9 @@
1
1
  import { StandardRPCJsonSerializerOptions } from '@orpc/client/standard';
2
- import { b as AnyRouter, C as Context, R as Router } from './server.B4BGqy3Y.mjs';
3
- import { i as StandardMatcher, h as StandardMatchResult, e as StandardHandlerOptions, f as StandardHandler } from './server.DBCUJijK.mjs';
2
+ import { b as AnyRouter, C as Context, R as Router } from './server.qKsRrdxW.mjs';
3
+ import { i as StandardMatcher, h as StandardMatchResult, e as StandardHandlerOptions, f as StandardHandler } from './server.BqadksTP.mjs';
4
4
  import { HTTPPath } from '@orpc/client';
5
5
  import { Value } from '@orpc/shared';
6
- import { T as TraverseContractProcedureCallbackOptions } from './server.DzV1hr3z.mjs';
6
+ import { T as TraverseContractProcedureCallbackOptions } from './server.C8_sRzQB.mjs';
7
7
 
8
8
  interface StandardRPCMatcherOptions {
9
9
  /**
@@ -1,5 +1,5 @@
1
1
  import { ErrorMap, EnhanceRouteOptions, MergedErrorMap, AnyContractRouter, AnyContractProcedure } from '@orpc/contract';
2
- import { a as AnyMiddleware, L as Lazyable, b as AnyRouter, C as Context, c as Lazy, A as AnyProcedure, P as Procedure, M as MergedInitialContext } from './server.B4BGqy3Y.js';
2
+ import { a as AnyMiddleware, L as Lazyable, b as AnyRouter, C as Context, c as Lazy, A as AnyProcedure, P as Procedure, M as MergedInitialContext } from './server.qKsRrdxW.js';
3
3
 
4
4
  declare function getRouter<T extends Lazyable<AnyRouter | undefined>>(router: T, path: readonly string[]): T extends Lazy<any> ? Lazy<AnyRouter | undefined> : Lazyable<AnyRouter | undefined>;
5
5
  type AccessibleLazyRouter<T extends Lazyable<AnyRouter | undefined>> = T extends Lazy<infer U extends AnyRouter | undefined | Lazy<AnyRouter | undefined>> ? AccessibleLazyRouter<U> : T extends AnyProcedure | undefined ? Lazy<T> : Lazy<T> & {
@@ -1,5 +1,5 @@
1
- import { C as Context } from './server.B4BGqy3Y.js';
2
- import { b as StandardHandleOptions } from './server.DPIFWpxG.js';
1
+ import { C as Context } from './server.qKsRrdxW.js';
2
+ import { b as StandardHandleOptions } from './server.7cEtMB30.js';
3
3
 
4
4
  type FriendlyStandardHandleOptions<T extends Context> = Omit<StandardHandleOptions<T>, 'context'> & (Record<never, never> extends T ? {
5
5
  context?: T;
@@ -63,7 +63,7 @@ interface ProcedureDef<TInitialContext extends Context, TCurrentContext extends
63
63
  /**
64
64
  * This class represents a procedure.
65
65
  *
66
- * @see {@link https://orpc.unnoq.com/docs/procedure Procedure Docs}
66
+ * @see {@link https://orpc.dev/docs/procedure Procedure Docs}
67
67
  */
68
68
  declare class Procedure<TInitialContext extends Context, TCurrentContext extends Context, TInputSchema extends AnySchema, TOutputSchema extends AnySchema, TErrorMap extends ErrorMap, TMeta extends Meta> {
69
69
  /**
@@ -102,7 +102,7 @@ interface MiddlewareOptions<TInContext extends Context, TOutput, TErrorConstruct
102
102
  /**
103
103
  * A function that represents a middleware.
104
104
  *
105
- * @see {@link https://orpc.unnoq.com/docs/middleware Middleware Docs}
105
+ * @see {@link https://orpc.dev/docs/middleware Middleware Docs}
106
106
  */
107
107
  interface Middleware<TInContext extends Context, TOutContext extends Context, TInput, TOutput, TErrorConstructorMap extends ORPCErrorConstructorMap<any>, TMeta extends Meta> {
108
108
  (options: MiddlewareOptions<TInContext, TOutput, TErrorConstructorMap, TMeta>, input: TInput, output: MiddlewareOutputFn<TOutput>): Promisable<MiddlewareResult<TOutContext, TOutput>>;
@@ -137,7 +137,7 @@ type CreateProcedureClientOptions<TInitialContext extends Context, TOutputSchema
137
137
  /**
138
138
  * Create Server-side client from a procedure.
139
139
  *
140
- * @see {@link https://orpc.unnoq.com/docs/client/server-side Server-side Client Docs}
140
+ * @see {@link https://orpc.dev/docs/client/server-side Server-side Client Docs}
141
141
  */
142
142
  declare function createProcedureClient<TInitialContext extends Context, TInputSchema extends AnySchema, TOutputSchema extends AnySchema, TErrorMap extends ErrorMap, TMeta extends Meta, TClientContext extends ClientContext>(lazyableProcedure: Lazyable<Procedure<TInitialContext, any, TInputSchema, TOutputSchema, TErrorMap, TMeta>>, ...rest: MaybeOptionalOptions<CreateProcedureClientOptions<TInitialContext, TOutputSchema, TErrorMap, TMeta, TClientContext>>): ProcedureClient<TClientContext, TInputSchema, TOutputSchema, TErrorMap>;
143
143
 
@@ -145,7 +145,7 @@ declare function createProcedureClient<TInitialContext extends Context, TInputSc
145
145
  * Represents a router, which defines a hierarchical structure of procedures.
146
146
  *
147
147
  * @info A procedure is a router too.
148
- * @see {@link https://orpc.unnoq.com/docs/contract-first/define-contract#contract-router Contract Router Docs}
148
+ * @see {@link https://orpc.dev/docs/contract-first/define-contract#contract-router Contract Router Docs}
149
149
  */
150
150
  type Router<T extends AnyContractRouter, TInitialContext extends Context> = T extends ContractProcedure<infer UInputSchema, infer UOutputSchema, infer UErrorMap, infer UMeta> ? Procedure<TInitialContext, any, UInputSchema, UOutputSchema, UErrorMap, UMeta> : {
151
151
  [K in keyof T]: T[K] extends AnyContractRouter ? Lazyable<Router<T[K], TInitialContext>> : never;
@@ -156,7 +156,7 @@ type InferRouterInitialContext<T extends AnyRouter> = T extends Router<any, infe
156
156
  * Infer all initial context of the router.
157
157
  *
158
158
  * @info A procedure is a router too.
159
- * @see {@link https://orpc.unnoq.com/docs/router#utilities Router Utilities Docs}
159
+ * @see {@link https://orpc.dev/docs/router#utilities Router Utilities Docs}
160
160
  */
161
161
  type InferRouterInitialContexts<T extends AnyRouter> = T extends Procedure<infer UInitialContext, any, any, any, any, any> ? UInitialContext : {
162
162
  [K in keyof T]: T[K] extends Lazyable<infer U extends AnyRouter> ? InferRouterInitialContexts<U> : never;
@@ -165,7 +165,7 @@ type InferRouterInitialContexts<T extends AnyRouter> = T extends Procedure<infer
165
165
  * Infer all current context of the router.
166
166
  *
167
167
  * @info A procedure is a router too.
168
- * @see {@link https://orpc.unnoq.com/docs/router#utilities Router Utilities Docs}
168
+ * @see {@link https://orpc.dev/docs/router#utilities Router Utilities Docs}
169
169
  */
170
170
  type InferRouterCurrentContexts<T extends AnyRouter> = T extends Procedure<any, infer UCurrentContext, any, any, any, any> ? UCurrentContext : {
171
171
  [K in keyof T]: T[K] extends Lazyable<infer U extends AnyRouter> ? InferRouterCurrentContexts<U> : never;
@@ -174,7 +174,7 @@ type InferRouterCurrentContexts<T extends AnyRouter> = T extends Procedure<any,
174
174
  * Infer all router inputs
175
175
  *
176
176
  * @info A procedure is a router too.
177
- * @see {@link https://orpc.unnoq.com/docs/router#utilities Router Utilities Docs}
177
+ * @see {@link https://orpc.dev/docs/router#utilities Router Utilities Docs}
178
178
  */
179
179
  type InferRouterInputs<T extends AnyRouter> = T extends Procedure<any, any, infer UInputSchema, any, any, any> ? InferSchemaInput<UInputSchema> : {
180
180
  [K in keyof T]: T[K] extends Lazyable<infer U extends AnyRouter> ? InferRouterInputs<U> : never;
@@ -183,7 +183,7 @@ type InferRouterInputs<T extends AnyRouter> = T extends Procedure<any, any, infe
183
183
  * Infer all router outputs
184
184
  *
185
185
  * @info A procedure is a router too.
186
- * @see {@link https://orpc.unnoq.com/docs/router#utilities Router Utilities Docs}
186
+ * @see {@link https://orpc.dev/docs/router#utilities Router Utilities Docs}
187
187
  */
188
188
  type InferRouterOutputs<T extends AnyRouter> = T extends Procedure<any, any, any, infer UOutputSchema, any, any> ? InferSchemaOutput<UOutputSchema> : {
189
189
  [K in keyof T]: T[K] extends Lazyable<infer U extends AnyRouter> ? InferRouterOutputs<U> : never;
@@ -63,7 +63,7 @@ interface ProcedureDef<TInitialContext extends Context, TCurrentContext extends
63
63
  /**
64
64
  * This class represents a procedure.
65
65
  *
66
- * @see {@link https://orpc.unnoq.com/docs/procedure Procedure Docs}
66
+ * @see {@link https://orpc.dev/docs/procedure Procedure Docs}
67
67
  */
68
68
  declare class Procedure<TInitialContext extends Context, TCurrentContext extends Context, TInputSchema extends AnySchema, TOutputSchema extends AnySchema, TErrorMap extends ErrorMap, TMeta extends Meta> {
69
69
  /**
@@ -102,7 +102,7 @@ interface MiddlewareOptions<TInContext extends Context, TOutput, TErrorConstruct
102
102
  /**
103
103
  * A function that represents a middleware.
104
104
  *
105
- * @see {@link https://orpc.unnoq.com/docs/middleware Middleware Docs}
105
+ * @see {@link https://orpc.dev/docs/middleware Middleware Docs}
106
106
  */
107
107
  interface Middleware<TInContext extends Context, TOutContext extends Context, TInput, TOutput, TErrorConstructorMap extends ORPCErrorConstructorMap<any>, TMeta extends Meta> {
108
108
  (options: MiddlewareOptions<TInContext, TOutput, TErrorConstructorMap, TMeta>, input: TInput, output: MiddlewareOutputFn<TOutput>): Promisable<MiddlewareResult<TOutContext, TOutput>>;
@@ -137,7 +137,7 @@ type CreateProcedureClientOptions<TInitialContext extends Context, TOutputSchema
137
137
  /**
138
138
  * Create Server-side client from a procedure.
139
139
  *
140
- * @see {@link https://orpc.unnoq.com/docs/client/server-side Server-side Client Docs}
140
+ * @see {@link https://orpc.dev/docs/client/server-side Server-side Client Docs}
141
141
  */
142
142
  declare function createProcedureClient<TInitialContext extends Context, TInputSchema extends AnySchema, TOutputSchema extends AnySchema, TErrorMap extends ErrorMap, TMeta extends Meta, TClientContext extends ClientContext>(lazyableProcedure: Lazyable<Procedure<TInitialContext, any, TInputSchema, TOutputSchema, TErrorMap, TMeta>>, ...rest: MaybeOptionalOptions<CreateProcedureClientOptions<TInitialContext, TOutputSchema, TErrorMap, TMeta, TClientContext>>): ProcedureClient<TClientContext, TInputSchema, TOutputSchema, TErrorMap>;
143
143
 
@@ -145,7 +145,7 @@ declare function createProcedureClient<TInitialContext extends Context, TInputSc
145
145
  * Represents a router, which defines a hierarchical structure of procedures.
146
146
  *
147
147
  * @info A procedure is a router too.
148
- * @see {@link https://orpc.unnoq.com/docs/contract-first/define-contract#contract-router Contract Router Docs}
148
+ * @see {@link https://orpc.dev/docs/contract-first/define-contract#contract-router Contract Router Docs}
149
149
  */
150
150
  type Router<T extends AnyContractRouter, TInitialContext extends Context> = T extends ContractProcedure<infer UInputSchema, infer UOutputSchema, infer UErrorMap, infer UMeta> ? Procedure<TInitialContext, any, UInputSchema, UOutputSchema, UErrorMap, UMeta> : {
151
151
  [K in keyof T]: T[K] extends AnyContractRouter ? Lazyable<Router<T[K], TInitialContext>> : never;
@@ -156,7 +156,7 @@ type InferRouterInitialContext<T extends AnyRouter> = T extends Router<any, infe
156
156
  * Infer all initial context of the router.
157
157
  *
158
158
  * @info A procedure is a router too.
159
- * @see {@link https://orpc.unnoq.com/docs/router#utilities Router Utilities Docs}
159
+ * @see {@link https://orpc.dev/docs/router#utilities Router Utilities Docs}
160
160
  */
161
161
  type InferRouterInitialContexts<T extends AnyRouter> = T extends Procedure<infer UInitialContext, any, any, any, any, any> ? UInitialContext : {
162
162
  [K in keyof T]: T[K] extends Lazyable<infer U extends AnyRouter> ? InferRouterInitialContexts<U> : never;
@@ -165,7 +165,7 @@ type InferRouterInitialContexts<T extends AnyRouter> = T extends Procedure<infer
165
165
  * Infer all current context of the router.
166
166
  *
167
167
  * @info A procedure is a router too.
168
- * @see {@link https://orpc.unnoq.com/docs/router#utilities Router Utilities Docs}
168
+ * @see {@link https://orpc.dev/docs/router#utilities Router Utilities Docs}
169
169
  */
170
170
  type InferRouterCurrentContexts<T extends AnyRouter> = T extends Procedure<any, infer UCurrentContext, any, any, any, any> ? UCurrentContext : {
171
171
  [K in keyof T]: T[K] extends Lazyable<infer U extends AnyRouter> ? InferRouterCurrentContexts<U> : never;
@@ -174,7 +174,7 @@ type InferRouterCurrentContexts<T extends AnyRouter> = T extends Procedure<any,
174
174
  * Infer all router inputs
175
175
  *
176
176
  * @info A procedure is a router too.
177
- * @see {@link https://orpc.unnoq.com/docs/router#utilities Router Utilities Docs}
177
+ * @see {@link https://orpc.dev/docs/router#utilities Router Utilities Docs}
178
178
  */
179
179
  type InferRouterInputs<T extends AnyRouter> = T extends Procedure<any, any, infer UInputSchema, any, any, any> ? InferSchemaInput<UInputSchema> : {
180
180
  [K in keyof T]: T[K] extends Lazyable<infer U extends AnyRouter> ? InferRouterInputs<U> : never;
@@ -183,7 +183,7 @@ type InferRouterInputs<T extends AnyRouter> = T extends Procedure<any, any, infe
183
183
  * Infer all router outputs
184
184
  *
185
185
  * @info A procedure is a router too.
186
- * @see {@link https://orpc.unnoq.com/docs/router#utilities Router Utilities Docs}
186
+ * @see {@link https://orpc.dev/docs/router#utilities Router Utilities Docs}
187
187
  */
188
188
  type InferRouterOutputs<T extends AnyRouter> = T extends Procedure<any, any, any, infer UOutputSchema, any, any> ? InferSchemaOutput<UOutputSchema> : {
189
189
  [K in keyof T]: T[K] extends Lazyable<infer U extends AnyRouter> ? InferRouterOutputs<U> : never;
@@ -1,9 +1,9 @@
1
1
  import { StandardRPCJsonSerializerOptions } from '@orpc/client/standard';
2
- import { b as AnyRouter, C as Context, R as Router } from './server.B4BGqy3Y.js';
3
- import { i as StandardMatcher, h as StandardMatchResult, e as StandardHandlerOptions, f as StandardHandler } from './server.DPIFWpxG.js';
2
+ import { b as AnyRouter, C as Context, R as Router } from './server.qKsRrdxW.js';
3
+ import { i as StandardMatcher, h as StandardMatchResult, e as StandardHandlerOptions, f as StandardHandler } from './server.7cEtMB30.js';
4
4
  import { HTTPPath } from '@orpc/client';
5
5
  import { Value } from '@orpc/shared';
6
- import { T as TraverseContractProcedureCallbackOptions } from './server.Cb6yD7DZ.js';
6
+ import { T as TraverseContractProcedureCallbackOptions } from './server.ChyoA9XY.js';
7
7
 
8
8
  interface StandardRPCMatcherOptions {
9
9
  /**
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@orpc/server",
3
3
  "type": "module",
4
- "version": "1.11.3",
4
+ "version": "1.12.1",
5
5
  "license": "MIT",
6
- "homepage": "https://orpc.unnoq.com",
6
+ "homepage": "https://orpc.dev",
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "git+https://github.com/unnoq/orpc.git",
@@ -107,19 +107,19 @@
107
107
  },
108
108
  "dependencies": {
109
109
  "cookie": "^1.0.2",
110
- "@orpc/client": "1.11.3",
111
- "@orpc/interop": "1.11.3",
112
- "@orpc/shared": "1.11.3",
113
- "@orpc/contract": "1.11.3",
114
- "@orpc/standard-server-fastify": "1.11.3",
115
- "@orpc/standard-server-fetch": "1.11.3",
116
- "@orpc/standard-server": "1.11.3",
117
- "@orpc/standard-server-aws-lambda": "1.11.3",
118
- "@orpc/standard-server-node": "1.11.3",
119
- "@orpc/standard-server-peer": "1.11.3"
110
+ "@orpc/client": "1.12.1",
111
+ "@orpc/contract": "1.12.1",
112
+ "@orpc/interop": "1.12.1",
113
+ "@orpc/standard-server": "1.12.1",
114
+ "@orpc/shared": "1.12.1",
115
+ "@orpc/standard-server-fastify": "1.12.1",
116
+ "@orpc/standard-server-aws-lambda": "1.12.1",
117
+ "@orpc/standard-server-peer": "1.12.1",
118
+ "@orpc/standard-server-node": "1.12.1",
119
+ "@orpc/standard-server-fetch": "1.12.1"
120
120
  },
121
121
  "devDependencies": {
122
- "@tanstack/router-core": "^1.136.1",
122
+ "@tanstack/router-core": "^1.139.1",
123
123
  "@types/ws": "^8.18.1",
124
124
  "crossws": "^0.4.1",
125
125
  "fastify": "^5.6.2",