@trpc/server breaking changes
Updated December 4, 2026
On this page
Latest version 11.36.3, released December 4, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
@trpc/server 11.31.7 breaking changes
- Behavior changed
onError
Errors thrown by createContext are now passed to the onError handler. Errors from nextAppDirCaller in Next.js are rethrown instead. Code with an onError handler may now receive these errors. github.com
@trpc/server 11.31.2 breaking changes
- Signature changed
unstable-core-do-not-import:jsonlStreamConsumer
Was function jsonlStreamConsumer<THead>(opts: {from: NodeJSReadableStreamEsque | WebReadableStreamEsque; deserialize?: Deserialize$1; onError?: ConsumerOnError; formatError?: (opts: {error: unknown;}) => Error; abortController... npmjs.com
@trpc/server 11.30.0 breaking changes
- Signature changed
adapters/ws:applyWSSHandler
Was function applyWSSHandler<TRouter extends AnyRouter>(opts: WSSHandlerOptions<TRouter>): {broadcastReconnectNotification: () => void;}; now function applyWSSHandler<TRouter extends AnyRouter, TServer extends WSServer<WSClient> =... npmjs.com - Signature changed
adapters/ws:CreateWSSContextFn
Was type CreateWSSContextFn<TRouter extends AnyRouter> = (opts: CreateWSSContextFnOptions) => MaybePromise<inferRouterContext<TRouter>>; now type CreateWSSContextFn<TRouter extends AnyRouter, TClient extends WSClient = WebSocket> = (opts... npmjs.com - Signature changed
adapters/ws:CreateWSSContextFnOptions
Was type CreateWSSContextFnOptions = NodeHTTPCreateContextFnOptions<IncomingMessage, WebSocket>; now type CreateWSSContextFnOptions<TClient extends WSClient = WebSocket> = NodeHTTPCreateContextFnOptions<IncomingMessage, TClient>. npmjs.com - Signature changed
adapters/ws:getWSConnectionHandler
Was function getWSConnectionHandler<TRouter extends AnyRouter>(opts: WSSHandlerOptions<TRouter>): (client: WebSocket, req: IncomingMessage) => void; now function getWSConnectionHandler<TRouter extends AnyRouter, TServer extends... npmjs.com - Signature changed
adapters/ws:handleKeepAlive
Was function handleKeepAlive(client: WebSocket, pingMs?: number, pongWaitMs?: number): void; now function handleKeepAlive(client: WSClient, pingMs?: number, pongWaitMs?: number): void. npmjs.com - Signature changed
adapters/ws:WSConnectionHandlerOptions
Was type WSConnectionHandlerOptions<TRouter extends AnyRouter> = BaseHandlerOptions<TRouter, IncomingMessage> & CreateContextCallback<inferRouterContext<TRouter>, CreateWSSContextFn<TRouter>>; now type WSConnectionHandlerOptions<TRouter... npmjs.com - Signature changed
adapters/ws:WSSHandlerOptions
Was type WSSHandlerOptions<TRouter extends AnyRouter> = WSConnectionHandlerOptions<TRouter> & {wss: WebSocketServer; prefix?: string; keepAlive?: {enabled: boolean; pingMs?: number; pongWaitMs?: number;}; dangerouslyDisablePong?: boolean... npmjs.com
@trpc/server 11.29.11 breaking changes
- Behavior changed
formDataToObject
formDataToObject now only builds an array from FormData indices with no gaps. Code that relied on the previous array output for gapped indices may need to change. github.com - Behavior changed
nextAppDirCaller
Procedures called through nextAppDirCaller now get only validated input. Code that relied on unvalidated input there must be updated. github.com
@trpc/server 11.28.6 breaking changes
- Behavior changed
mergeRouters
When merging routers, the root options of the first router are now kept. Code that relied on the later router's root options must be checked. github.com
@trpc/server 11.25.0 breaking changes
- Signature changed
observable:observableToAsyncIterable
Was function observableToAsyncIterable<TValue>(observable: Observable<TValue, unknown>, signal: AbortSignal): AsyncIterable<TValue>; now function observableToAsyncIterable<TValue>(observable: Observable<TValue, unknown>, signal... npmjs.com
Older versions
20 older versions, each with its first changes. Sign up to see every change
Show 20 older versions
@trpc/server 11.24.0 breaking changes
- Behavior changed
WebSocket batches larger than maxBatchSize are now rejected, where they previously were not limited. Check that your batch size limit fits your clients. github.com - Behavior changed
Errors whose data is not an object are now mapped to their own HTTP status instead of the previous status. Check any code that depends on the old response status. github.com
And 4 more in this version.
@trpc/server 11.23.0 breaking changes
- Renamed
unstable_localLink
The client export unstable_localLink is now named localLink. Update code that imports or calls the old name. github.com - Signature changed
adapters/ws:CreateWSSContextFnOptions
Was type CreateWSSContextFnOptions = NodeHTTPCreateContextFnOptions<IncomingMessage, ws.WebSocket>; now type CreateWSSContextFnOptions = NodeHTTPCreateContextFnOptions<IncomingMessage, WebSocket>. npmjs.com
And 4 more in this version.
@trpc/server 11.22.1 breaking changes
- Signature changed
adapters/fastify:FastifyTRPCPluginOptions.trpcOptions
Was trpcOptions: FastifyHandlerOptions<TRouter, FastifyRequest, FastifyReply>; now trpcOptions: FastifyHandlerOptions<TRouter, FastifyRequest, FastifyReply> & Pick<WSSHandlerOptions<TRouter>, 'keepAlive' | 'dangerouslyDisablePong' |... npmjs.com - Signature changed
adapters/node-http:NodeHTTPHandlerOptions
Was type NodeHTTPHandlerOptions<TRouter extends AnyRouter, TRequest extends NodeHTTPRequest, TResponse extends NodeHTTPResponse> = HTTPBaseHandlerOptions<TRouter, TRequest> & NodeHTTPCreateContextOption<TRouter, TRequest, TResponse> &... npmjs.com
And 41 more in this version.
@trpc/server 11.19.0 breaking changes
- Behavior changed
assertIsRequestId
Invalid non-NaN values that previously passed silently are now rejected. Check callers that relied on assertIsRequestId accepting them. github.com - Signature changed
adapters/next:NextApiHandler
Was export {CreateNextContextOptions, NextApiHandler, NextApiRequest, NextApiResponse, createNextApiHandler}; now export type {NextApiHandler, NextApiRequest, NextApiResponse}. npmjs.com
And 7 more in this version.
@trpc/server 11.17.0 breaking changes
- Signature changed
unstable-core-do-not-import:AnyProcedureBuilder.subscription
Was subscription<$Output extends AsyncIterable<any, void, any>>(resolver: ProcedureResolver<TContext, TMeta, TContextOverrides, TInputOut, TOutputIn, $Output>): TCaller extends true ? TypeError<'Not implemented'>... npmjs.com - Signature changed
unstable-core-do-not-import:ProcedureBuilder.subscription
Was subscription<$Output extends AsyncIterable<any, void, any>>(resolver: ProcedureResolver<TContext, TMeta, TContextOverrides, TInputOut, TOutputIn, $Output>): TCaller extends true ? TypeError<'Not implemented'>... npmjs.com
@trpc/server 11.10.0 breaking changes
- Signature changed
TRPCMiddlewareFunction
Was type MiddlewareFunction<TContext, TMeta, TContextOverridesIn, $ContextOverridesOut, TInputOut> = {(opts: {ctx: Simplify<Overwrite<TContext, TContextOverridesIn>>; type: ProcedureType; path: string; input: TInputOut; getRawInput... npmjs.com - Signature changed
unstable-core-do-not-import:MiddlewareFunction
Was type MiddlewareFunction<TContext, TMeta, TContextOverridesIn, $ContextOverridesOut, TInputOut> = {(opts: {ctx: Simplify<Overwrite<TContext, TContextOverridesIn>>; type: ProcedureType; path: string; input: TInputOut; getRawInput... npmjs.com
@trpc/server 11.9.0 breaking changes
- Signature changed
adapters/ws:WSSHandlerOptions
Was type WSSHandlerOptions<TRouter extends AnyRouter> = WSConnectionHandlerOptions<TRouter> & {wss: ws.WebSocketServer; prefix?: string; keepAlive?: {enabled: boolean; pingMs?: number; pongWaitMs?: number;}; dangerouslyDisablePong?... npmjs.com
@trpc/server 11.8.1 breaking changes
- Removed
unstable-core-do-not-import:omitPrototype
omitPrototype was removed in @trpc/server 11.8.1 npmjs.com - Removed
unstable-core-do-not-import:withMaxDuration
withMaxDuration was removed in @trpc/server 11.8.1 npmjs.com
@trpc/server 11.8.0 breaking changes
- Signature changed
adapters/aws-lambda:awsLambdaStreamingRequestHandler
Was function awsLambdaStreamingRequestHandler<TRouter extends AnyRouter, TEvent extends APIGatewayProxyEventV2>(opts: AWSLambdaOptions<TRouter, TEvent>): StreamifyHandler<TEvent>; now function awsLambdaStreamingRequestHandler<TRouter... npmjs.com
@trpc/server 11.6.0 breaking changes
- Signature changed
rpc:TRPC_ERROR_CODES_BY_KEY
Was const TRPC_ERROR_CODES_BY_KEY: {readonly PARSE_ERROR: -32700; readonly BAD_REQUEST: -32600; readonly INTERNAL_SERVER_ERROR: -32603; readonly NOT_IMPLEMENTED: -32603; readonly BAD_GATEWAY: -32603; readonly SERVICE_UNAVAILABLE: -32603... npmjs.com - Signature changed
TRPCError.code
Was readonly code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "BAD_GATEWAY" | "SERVICE_UNAVAILABLE" | "GATEWAY_TIMEOUT" | "UNAUTHORIZED" | "PAYMENT_REQUIRED" | "FORBIDDEN" | "NOT_FOUND" |... npmjs.com
And 1 more in this version.
@trpc/server 11.5.0 breaking changes
- Signature changed
unstable-core-do-not-import:inferParser
Was type inferParser<TParser extends Parser> = TParser extends ParserWithInputOutput<infer $TIn, infer $TOut> ? {in: $TIn; out: $TOut;} : TParser extends ParserWithoutInput<infer $InOut> ? {in: $InOut; out: $InOut;} : never; now type... npmjs.com
@trpc/server 11.4.4 breaking changes
- Signature changed
unstable-core-do-not-import:DataTransformer.deserialize
Was deserialize: (object: any) => any; now deserialize(object: any): any. npmjs.com - Signature changed
unstable-core-do-not-import:DataTransformer.serialize
Was serialize: (object: any) => any; now serialize(object: any): any. npmjs.com
And 3 more in this version.
@trpc/server 11.4.0 breaking changes
- Removed
AnyRouter._def._config
AnyRouter._def._config was removed in @trpc/server 11.4.0 npmjs.com - Removed
AnyRouter._def.lazy
AnyRouter._def.lazy was removed in @trpc/server 11.4.0 npmjs.com
And 40 more in this version.
@trpc/server 11.3.1 breaking changes
- Signature changed
unstable-core-do-not-import:Serialize
Was type Serialize<T> = IsAny<T> extends true ? any : unknown extends T ? unknown : T extends AsyncIterable<infer $T, infer $Return, infer $Next> ? AsyncIterable<Serialize<$T>, Serialize<$Return>, Serialize<$Next>> : T extends... npmjs.com
@trpc/server 11.3.0 breaking changes
- Signature changed
unstable-core-do-not-import:LegacyObservableSubscriptionProcedure._def
Was _def: {$types: {input: TDef['input']; output: TDef['output'];}; procedure: true; type: TType; meta: unknown; experimental_caller: boolean;}; now _def: {$types: {input: TDef['input']; output: TDef['output'];}; procedure: true; type... npmjs.com - Signature changed
unstable-core-do-not-import:MutationProcedure._def
Was _def: {$types: {input: TDef['input']; output: TDef['output'];}; procedure: true; type: TType; meta: unknown; experimental_caller: boolean;}; now _def: {$types: {input: TDef['input']; output: TDef['output'];}; procedure: true; type... npmjs.com
@trpc/server 11.2.0 breaking changes
- Signature changed
rpc:TRPC_ERROR_CODES_BY_KEY
Was const TRPC_ERROR_CODES_BY_KEY: {readonly PARSE_ERROR: -32700; readonly BAD_REQUEST: -32600; readonly INTERNAL_SERVER_ERROR: -32603; readonly NOT_IMPLEMENTED: -32603; readonly BAD_GATEWAY: -32603; readonly SERVICE_UNAVAILABLE: -32603... npmjs.com - Signature changed
TRPCError.code
Was readonly code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "BAD_GATEWAY" | "SERVICE_UNAVAILABLE" | "GATEWAY_TIMEOUT" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" |... npmjs.com
@trpc/server 11.1.4 breaking changes
- Behavior changed
The TanStack React Query integration no longer infers initialData types; code relying on that inference may need explicit typing. github.com
@trpc/server 11.1.3 breaking changes
- Signature changed
unstable-core-do-not-import:AnyProcedureBuilder.mutation
Was mutation<$Output>(resolver: ProcedureResolver<TContext, TMeta, TContextOverrides, TInputOut, TOutputIn, $Output>): TCaller extends true ? (input: DefaultValue<TInputIn, void>) => Promise<DefaultValue<TOutputOut, $Output>>... npmjs.com - Signature changed
unstable-core-do-not-import:AnyProcedureBuilder.query
Was query<$Output>(resolver: ProcedureResolver<TContext, TMeta, TContextOverrides, TInputOut, TOutputIn, $Output>): TCaller extends true ? (input: DefaultValue<TInputIn, void>) => Promise<DefaultValue<TOutputOut, $Output>>... npmjs.com
And 4 more in this version.
@trpc/server 11.1.1 breaking changes
- Signature changed
adapters/ws:getWSConnectionHandler
Was function getWSConnectionHandler<TRouter extends AnyRouter>(opts: WSSHandlerOptions<TRouter>): (client: ws.WebSocket, req: IncomingMessage) => Promise<void>; now function getWSConnectionHandler<TRouter extends AnyRouter>(opts... npmjs.com
@trpc/server 11.0.0 breaking changes
- Removed
The v9-to-v10 interop mode is gone. trpc.io - Removed
Older browsers need a polyfill added by the user. trpc.io
And 169 more in this version.
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.