Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@trpc/next

Package Overview
Dependencies
Maintainers
3
Versions
1023
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trpc/next - npm Package Compare versions

Comparing version 11.0.0-rc.666 to 11.0.0-rc.677

5

dist/app-dir/shared.d.ts

@@ -1,2 +0,3 @@

import type { CreateTRPCClientOptions, Resolver, TRPCUntypedClient } from '@trpc/client';
import type { CreateTRPCClientOptions, inferRouterClient, Resolver } from '@trpc/client';
import { TRPCUntypedClient } from '@trpc/client';
import type { inferProcedureOutput } from '@trpc/server';

@@ -15,3 +16,3 @@ import type { AnyClientTypes, AnyProcedure, AnyQueryProcedure, AnyRootTypes, AnyRouter, inferProcedureInput, inferTransformedProcedureOutput, ProtectedIntersection, RouterRecord } from '@trpc/server/unstable-core-do-not-import';

};
export declare function createUseProxy<TRouter extends AnyRouter>(client: TRPCUntypedClient<TRouter>): UseProcedureRecord<TRouter["_def"]["_config"]["$types"], TRouter["_def"]["record"]>;
export declare function createUseProxy<TRouter extends AnyRouter>(client: TRPCUntypedClient<TRouter> | inferRouterClient<TRouter>): UseProcedureRecord<TRouter["_def"]["_config"]["$types"], TRouter["_def"]["record"]>;
type NextAppRouterUse<TRouter extends AnyRouter> = {

@@ -18,0 +19,0 @@ <TData extends Promise<unknown>[]>(cb: (t: UseProcedureRecord<TRouter['_def']['_config']['$types'], TRouter['_def']['record']>) => [...TData]): {

1

dist/app-dir/shared.js
'use strict';
require('@trpc/client');
require('@trpc/server/unstable-core-do-not-import');

@@ -4,0 +5,0 @@

{
"bundleSize": 22997,
"bundleOrigSize": 37951,
"bundleReduction": 39.4,
"bundleOrigSize": 38240,
"bundleReduction": 39.86,
"modules": [

@@ -50,3 +50,3 @@ {

"size": 3424,
"origSize": 6138,
"origSize": 6193,
"renderedExports": [

@@ -61,3 +61,3 @@ "withTRPC"

"percent": 14.89,
"reduction": 44.22
"reduction": 44.71
},

@@ -117,3 +117,3 @@ {

"size": 335,
"origSize": 3158,
"origSize": 3392,
"renderedExports": [

@@ -128,8 +128,8 @@ "generateCacheTag",

"/src/app-dir/server.ts",
"/src/app-dir/links/nextHttp.ts",
"/src/app-dir/links/nextCache.ts",
"/src/app-dir/links/nextHttp.ts",
"/src/app-dir/create-action-hook.tsx"
],
"percent": 1.46,
"reduction": 89.39
"reduction": 90.12
},

@@ -136,0 +136,0 @@ {

@@ -6,3 +6,3 @@ /**

import type { QueryClient } from '@tanstack/react-query';
import type { CreateTRPCClientOptions, TRPCUntypedClient } from '@trpc/client';
import type { CreateTRPCClientOptions, inferRouterClient, TRPCUntypedClient } from '@trpc/client';
import { type TransformerOptions } from '@trpc/client/unstable-internals';

@@ -50,3 +50,3 @@ import type { TRPCClientError } from '@trpc/react-query';

queryClient: QueryClient;
trpcClient: TRPCUntypedClient<TRouter>;
trpcClient: TRPCUntypedClient<TRouter> | inferRouterClient<TRouter>;
ssrState: 'prepass';

@@ -53,0 +53,0 @@ ssrContext: TSSRContext;

{
"name": "@trpc/next",
"version": "11.0.0-rc.666+99556c074",
"version": "11.0.0-rc.677+1032f4880",
"description": "The tRPC Next.js library",

@@ -77,9 +77,9 @@ "author": "KATT",

"@tanstack/react-query": "^5.59.15",
"@trpc/client": "11.0.0-rc.666+99556c074",
"@trpc/react-query": "11.0.0-rc.666+99556c074",
"@trpc/server": "11.0.0-rc.666+99556c074",
"@trpc/client": "11.0.0-rc.677+1032f4880",
"@trpc/react-query": "11.0.0-rc.677+1032f4880",
"@trpc/server": "11.0.0-rc.677+1032f4880",
"next": "*",
"react": ">=16.8.0",
"react-dom": ">=16.8.0",
"typescript": ">=5.6.2"
"typescript": ">=5.7.2"
},

@@ -96,5 +96,5 @@ "peerDependenciesMeta": {

"@tanstack/react-query": "^5.62.8",
"@trpc/client": "11.0.0-rc.666+99556c074",
"@trpc/react-query": "11.0.0-rc.666+99556c074",
"@trpc/server": "11.0.0-rc.666+99556c074",
"@trpc/client": "11.0.0-rc.677+1032f4880",
"@trpc/react-query": "11.0.0-rc.677+1032f4880",
"@trpc/server": "11.0.0-rc.677+1032f4880",
"@types/express": "^4.17.17",

@@ -106,3 +106,3 @@ "@types/node": "^22.9.0",

"express": "^5.0.0",
"next": "^15.0.4",
"next": "^15.1.3",
"react": "^19.0.0",

@@ -112,3 +112,3 @@ "react-dom": "^19.0.0",

"tsx": "^4.0.0",
"typescript": "^5.7.0",
"typescript": "^5.7.2",
"zod": "^3.0.0"

@@ -122,3 +122,3 @@ },

],
"gitHead": "99556c0744cf8da7784c03d577f65cf5cd4dd624"
"gitHead": "1032f48805c74e814cad8aba2ba9811e914b7b85"
}
import type {
CreateTRPCClientOptions,
inferRouterClient,
Resolver,
TRPCUntypedClient,
} from '@trpc/client';
import { getUntypedClient, TRPCUntypedClient } from '@trpc/client';
import type { inferProcedureOutput } from '@trpc/server';

@@ -42,4 +43,7 @@ import type {

export function createUseProxy<TRouter extends AnyRouter>(
client: TRPCUntypedClient<TRouter>,
client: TRPCUntypedClient<TRouter> | inferRouterClient<TRouter>,
) {
const untypedClient: TRPCUntypedClient<TRouter> =
client instanceof TRPCUntypedClient ? client : getUntypedClient(client);
return createRecursiveProxy<

@@ -53,3 +57,3 @@ UseProcedureRecord<

return client.query(path, ...opts.args);
return untypedClient.query(path, ...opts.args);
});

@@ -56,0 +60,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc