@orpc/server 1.9.4 → 1.10.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/dist/index.d.mts +1 -1
 - package/dist/index.d.ts +1 -1
 - package/dist/index.mjs +1 -1
 - package/package.json +14 -13
 
    
        package/dist/index.d.mts
    CHANGED
    
    | 
         @@ -3,7 +3,7 @@ export { ClientContext, HTTPMethod, HTTPPath, ORPCError, isDefinedError, safe } 
     | 
|
| 
       3 
3 
     | 
    
         
             
            import { AnySchema, ErrorMap, InferSchemaInput, InferSchemaOutput, ErrorFromErrorMap, Meta, MergedErrorMap, Route, Schema, ContractRouter, ContractProcedureDef, AnyContractRouter, ContractProcedure, InferContractRouterErrorMap, InferContractRouterMeta, AnyContractProcedure } from '@orpc/contract';
         
     | 
| 
       4 
4 
     | 
    
         
             
            export { ContractProcedure, ContractProcedureDef, ContractRouter, ErrorMap, ErrorMapItem, InferSchemaInput, InferSchemaOutput, InputStructure, MergedErrorMap, Meta, OutputStructure, Route, Schema, ValidationError, eventIterator, type, validateORPCError } from '@orpc/contract';
         
     | 
| 
       5 
5 
     | 
    
         
             
            import { ThrowableError, IntersectPick, MaybeOptionalOptions } from '@orpc/shared';
         
     | 
| 
       6 
     | 
    
         
            -
            export { AsyncIteratorClass, EventPublisher, EventPublisherOptions, EventPublisherSubscribeIteratorOptions, IntersectPick, Registry, ThrowableError, asyncIteratorToStream as eventIteratorToStream, onError, onFinish, onStart, onSuccess, streamToAsyncIteratorClass as streamToEventIterator } from '@orpc/shared';
         
     | 
| 
      
 6 
     | 
    
         
            +
            export { AsyncIteratorClass, EventPublisher, EventPublisherOptions, EventPublisherSubscribeIteratorOptions, IntersectPick, Registry, ThrowableError, asyncIteratorToStream as eventIteratorToStream, asyncIteratorToUnproxiedDataStream as eventIteratorToUnproxiedDataStream, onError, onFinish, onStart, onSuccess, streamToAsyncIteratorClass as streamToEventIterator } from '@orpc/shared';
         
     | 
| 
       7 
7 
     | 
    
         
             
            import { C as Context, P as Procedure, e as Middleware, O as ORPCErrorConstructorMap, M as MergedInitialContext, f as MergedCurrentContext, g as MapInputMiddleware, h as CreateProcedureClientOptions, i as ProcedureClient, j as ProcedureHandler, R as Router, c as Lazy, a as AnyMiddleware, b as AnyRouter, A as AnyProcedure, L as Lazyable, I as InferRouterInitialContext } from './shared/server.B4BGqy3Y.mjs';
         
     | 
| 
       8 
8 
     | 
    
         
             
            export { H as InferRouterCurrentContexts, G as InferRouterInitialContexts, J as InferRouterInputs, K as InferRouterOutputs, o as LAZY_SYMBOL, p as LazyMeta, w as MiddlewareNextFn, v as MiddlewareNextFnOptions, y as MiddlewareOptions, x as MiddlewareOutputFn, t as MiddlewareResult, l as ORPCErrorConstructorMapItem, k as ORPCErrorConstructorMapItemOptions, d as ProcedureClientInterceptorOptions, D as ProcedureDef, B as ProcedureHandlerOptions, n as createORPCErrorConstructorMap, F as createProcedureClient, s as getLazyMeta, r as isLazy, E as isProcedure, q as lazy, m as mergeCurrentContext, z as middlewareOutputFn, u as unlazy } from './shared/server.B4BGqy3Y.mjs';
         
     | 
| 
       9 
9 
     | 
    
         
             
            import { E as EnhanceRouterOptions, a as EnhancedRouter } from './shared/server.DzV1hr3z.mjs';
         
     | 
    
        package/dist/index.d.ts
    CHANGED
    
    | 
         @@ -3,7 +3,7 @@ export { ClientContext, HTTPMethod, HTTPPath, ORPCError, isDefinedError, safe } 
     | 
|
| 
       3 
3 
     | 
    
         
             
            import { AnySchema, ErrorMap, InferSchemaInput, InferSchemaOutput, ErrorFromErrorMap, Meta, MergedErrorMap, Route, Schema, ContractRouter, ContractProcedureDef, AnyContractRouter, ContractProcedure, InferContractRouterErrorMap, InferContractRouterMeta, AnyContractProcedure } from '@orpc/contract';
         
     | 
| 
       4 
4 
     | 
    
         
             
            export { ContractProcedure, ContractProcedureDef, ContractRouter, ErrorMap, ErrorMapItem, InferSchemaInput, InferSchemaOutput, InputStructure, MergedErrorMap, Meta, OutputStructure, Route, Schema, ValidationError, eventIterator, type, validateORPCError } from '@orpc/contract';
         
     | 
| 
       5 
5 
     | 
    
         
             
            import { ThrowableError, IntersectPick, MaybeOptionalOptions } from '@orpc/shared';
         
     | 
| 
       6 
     | 
    
         
            -
            export { AsyncIteratorClass, EventPublisher, EventPublisherOptions, EventPublisherSubscribeIteratorOptions, IntersectPick, Registry, ThrowableError, asyncIteratorToStream as eventIteratorToStream, onError, onFinish, onStart, onSuccess, streamToAsyncIteratorClass as streamToEventIterator } from '@orpc/shared';
         
     | 
| 
      
 6 
     | 
    
         
            +
            export { AsyncIteratorClass, EventPublisher, EventPublisherOptions, EventPublisherSubscribeIteratorOptions, IntersectPick, Registry, ThrowableError, asyncIteratorToStream as eventIteratorToStream, asyncIteratorToUnproxiedDataStream as eventIteratorToUnproxiedDataStream, onError, onFinish, onStart, onSuccess, streamToAsyncIteratorClass as streamToEventIterator } from '@orpc/shared';
         
     | 
| 
       7 
7 
     | 
    
         
             
            import { C as Context, P as Procedure, e as Middleware, O as ORPCErrorConstructorMap, M as MergedInitialContext, f as MergedCurrentContext, g as MapInputMiddleware, h as CreateProcedureClientOptions, i as ProcedureClient, j as ProcedureHandler, R as Router, c as Lazy, a as AnyMiddleware, b as AnyRouter, A as AnyProcedure, L as Lazyable, I as InferRouterInitialContext } from './shared/server.B4BGqy3Y.js';
         
     | 
| 
       8 
8 
     | 
    
         
             
            export { H as InferRouterCurrentContexts, G as InferRouterInitialContexts, J as InferRouterInputs, K as InferRouterOutputs, o as LAZY_SYMBOL, p as LazyMeta, w as MiddlewareNextFn, v as MiddlewareNextFnOptions, y as MiddlewareOptions, x as MiddlewareOutputFn, t as MiddlewareResult, l as ORPCErrorConstructorMapItem, k as ORPCErrorConstructorMapItemOptions, d as ProcedureClientInterceptorOptions, D as ProcedureDef, B as ProcedureHandlerOptions, n as createORPCErrorConstructorMap, F as createProcedureClient, s as getLazyMeta, r as isLazy, E as isProcedure, q as lazy, m as mergeCurrentContext, z as middlewareOutputFn, u as unlazy } from './shared/server.B4BGqy3Y.js';
         
     | 
| 
       9 
9 
     | 
    
         
             
            import { E as EnhanceRouterOptions, a as EnhancedRouter } from './shared/server.Cb6yD7DZ.js';
         
     | 
    
        package/dist/index.mjs
    CHANGED
    
    | 
         @@ -5,7 +5,7 @@ export { L as LAZY_SYMBOL, p as call, r as createAccessibleLazyRouter, a as crea 
     | 
|
| 
       5 
5 
     | 
    
         
             
            import { toORPCError } from '@orpc/client';
         
     | 
| 
       6 
6 
     | 
    
         
             
            export { ORPCError, isDefinedError, safe } from '@orpc/client';
         
     | 
| 
       7 
7 
     | 
    
         
             
            import { isObject, resolveMaybeOptionalOptions } from '@orpc/shared';
         
     | 
| 
       8 
     | 
    
         
            -
            export { AsyncIteratorClass, EventPublisher, asyncIteratorToStream as eventIteratorToStream, onError, onFinish, onStart, onSuccess, streamToAsyncIteratorClass as streamToEventIterator } from '@orpc/shared';
         
     | 
| 
      
 8 
     | 
    
         
            +
            export { AsyncIteratorClass, EventPublisher, asyncIteratorToStream as eventIteratorToStream, asyncIteratorToUnproxiedDataStream as eventIteratorToUnproxiedDataStream, onError, onFinish, onStart, onSuccess, streamToAsyncIteratorClass as streamToEventIterator } from '@orpc/shared';
         
     | 
| 
       9 
9 
     | 
    
         
             
            export { getEventMeta, withEventMeta } from '@orpc/standard-server';
         
     | 
| 
       10 
10 
     | 
    
         | 
| 
       11 
11 
     | 
    
         
             
            const DEFAULT_CONFIG = {
         
     | 
    
        package/package.json
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            {
         
     | 
| 
       2 
2 
     | 
    
         
             
              "name": "@orpc/server",
         
     | 
| 
       3 
3 
     | 
    
         
             
              "type": "module",
         
     | 
| 
       4 
     | 
    
         
            -
              "version": "1. 
     | 
| 
      
 4 
     | 
    
         
            +
              "version": "1.10.0",
         
     | 
| 
       5 
5 
     | 
    
         
             
              "license": "MIT",
         
     | 
| 
       6 
6 
     | 
    
         
             
              "homepage": "https://orpc.unnoq.com",
         
     | 
| 
       7 
7 
     | 
    
         
             
              "repository": {
         
     | 
| 
         @@ -102,23 +102,24 @@ 
     | 
|
| 
       102 
102 
     | 
    
         
             
              },
         
     | 
| 
       103 
103 
     | 
    
         
             
              "dependencies": {
         
     | 
| 
       104 
104 
     | 
    
         
             
                "cookie": "^1.0.2",
         
     | 
| 
       105 
     | 
    
         
            -
                "@orpc/client": "1. 
     | 
| 
       106 
     | 
    
         
            -
                "@orpc/contract": "1. 
     | 
| 
       107 
     | 
    
         
            -
                "@orpc/ 
     | 
| 
       108 
     | 
    
         
            -
                "@orpc/ 
     | 
| 
       109 
     | 
    
         
            -
                "@orpc/standard-server 
     | 
| 
       110 
     | 
    
         
            -
                "@orpc/standard-server- 
     | 
| 
       111 
     | 
    
         
            -
                "@orpc/standard-server": "1. 
     | 
| 
       112 
     | 
    
         
            -
                "@orpc/standard-server-node": "1. 
     | 
| 
       113 
     | 
    
         
            -
                "@orpc/standard-server-peer": "1. 
     | 
| 
      
 105 
     | 
    
         
            +
                "@orpc/client": "1.10.0",
         
     | 
| 
      
 106 
     | 
    
         
            +
                "@orpc/contract": "1.10.0",
         
     | 
| 
      
 107 
     | 
    
         
            +
                "@orpc/shared": "1.10.0",
         
     | 
| 
      
 108 
     | 
    
         
            +
                "@orpc/interop": "1.10.0",
         
     | 
| 
      
 109 
     | 
    
         
            +
                "@orpc/standard-server": "1.10.0",
         
     | 
| 
      
 110 
     | 
    
         
            +
                "@orpc/standard-server-aws-lambda": "1.10.0",
         
     | 
| 
      
 111 
     | 
    
         
            +
                "@orpc/standard-server-fetch": "1.10.0",
         
     | 
| 
      
 112 
     | 
    
         
            +
                "@orpc/standard-server-node": "1.10.0",
         
     | 
| 
      
 113 
     | 
    
         
            +
                "@orpc/standard-server-peer": "1.10.0"
         
     | 
| 
       114 
114 
     | 
    
         
             
              },
         
     | 
| 
       115 
115 
     | 
    
         
             
              "devDependencies": {
         
     | 
| 
       116 
     | 
    
         
            -
                "@tanstack/router-core": "^1. 
     | 
| 
      
 116 
     | 
    
         
            +
                "@tanstack/router-core": "^1.133.3",
         
     | 
| 
       117 
117 
     | 
    
         
             
                "@types/ws": "^8.18.1",
         
     | 
| 
       118 
118 
     | 
    
         
             
                "crossws": "^0.4.1",
         
     | 
| 
       119 
     | 
    
         
            -
                "next": "^15.5. 
     | 
| 
      
 119 
     | 
    
         
            +
                "next": "^15.5.6",
         
     | 
| 
       120 
120 
     | 
    
         
             
                "supertest": "^7.1.4",
         
     | 
| 
       121 
     | 
    
         
            -
                "ws": "^8.18.3"
         
     | 
| 
      
 121 
     | 
    
         
            +
                "ws": "^8.18.3",
         
     | 
| 
      
 122 
     | 
    
         
            +
                "zod": "^4.1.11"
         
     | 
| 
       122 
123 
     | 
    
         
             
              },
         
     | 
| 
       123 
124 
     | 
    
         
             
              "scripts": {
         
     | 
| 
       124 
125 
     | 
    
         
             
                "build": "unbuild",
         
     |