@trpc/react-query
Advanced tools
Comparing version 11.0.0-rc.791 to 11.0.0-rc.795
{ | ||
"bundleSize": 45008, | ||
"bundleOrigSize": 92916, | ||
"bundleReduction": 51.56, | ||
"bundleOrigSize": 92893, | ||
"bundleReduction": 51.55, | ||
"modules": [ | ||
@@ -23,3 +23,3 @@ { | ||
"size": 7226, | ||
"origSize": 7222, | ||
"origSize": 7210, | ||
"renderedExports": [ | ||
@@ -39,3 +39,3 @@ "createUtilityFunctions" | ||
"size": 3941, | ||
"origSize": 6059, | ||
"origSize": 6045, | ||
"renderedExports": [ | ||
@@ -49,3 +49,3 @@ "createServerSideHelpers" | ||
"percent": 8.76, | ||
"reduction": 34.96 | ||
"reduction": 34.81 | ||
}, | ||
@@ -92,4 +92,4 @@ { | ||
"dependents": [ | ||
"/src/index.ts", | ||
"/src/rsc.tsx", | ||
"/src/index.ts", | ||
"/src/server/ssgProxy.ts", | ||
@@ -152,3 +152,3 @@ "/src/shared/proxy/utilsProxy.ts", | ||
"size": 697, | ||
"origSize": 3404, | ||
"origSize": 3419, | ||
"renderedExports": [ | ||
@@ -163,3 +163,3 @@ "createUseQueries" | ||
"percent": 1.55, | ||
"reduction": 79.52 | ||
"reduction": 79.61 | ||
}, | ||
@@ -199,3 +199,3 @@ { | ||
"size": 154, | ||
"origSize": 9161, | ||
"origSize": 9149, | ||
"renderedExports": [ | ||
@@ -202,0 +202,0 @@ "contextProps", |
import type { CancelOptions, FetchInfiniteQueryOptions, FetchQueryOptions, InfiniteData, InvalidateOptions, InvalidateQueryFilters, MutationOptions, QueryClient, QueryFilters, QueryKey, RefetchOptions, RefetchQueryFilters, ResetOptions, SetDataOptions, Updater } from '@tanstack/react-query'; | ||
import type { CreateTRPCClient, TRPCClientError, TRPCRequestOptions, TRPCUntypedClient } from '@trpc/client'; | ||
import type { TRPCClient, TRPCClientError, TRPCRequestOptions, TRPCUntypedClient } from '@trpc/client'; | ||
import type { AnyClientTypes, AnyRouter, DistributiveOmit } from '@trpc/server/unstable-core-do-not-import'; | ||
@@ -50,3 +50,3 @@ import * as React from 'react'; | ||
export type DecoratedTRPCContextProps<TRouter extends AnyRouter, TSSRContext> = TRPCContextPropsBase<TRouter, TSSRContext> & { | ||
client: CreateTRPCClient<TRouter>; | ||
client: TRPCClient<TRouter>; | ||
}; | ||
@@ -53,0 +53,0 @@ export interface TRPCContextProps<TRouter extends AnyRouter, TSSRContext> extends TRPCContextPropsBase<TRouter, TSSRContext> { |
import type { DehydratedState, DehydrateOptions, QueryClient } from '@tanstack/react-query'; | ||
import type { inferRouterClient } from '@trpc/client'; | ||
import type { TRPCClient } from '@trpc/client'; | ||
import { TRPCUntypedClient } from '@trpc/client'; | ||
@@ -12,3 +12,3 @@ import { type TransformerOptions } from '@trpc/client/unstable-internals'; | ||
interface CreateSSGHelpersExternal<TRouter extends AnyRouter> { | ||
client: inferRouterClient<TRouter> | TRPCUntypedClient<TRouter>; | ||
client: TRPCClient<TRouter> | TRPCUntypedClient<TRouter>; | ||
} | ||
@@ -15,0 +15,0 @@ type CreateServerSideHelpersOptions<TRouter extends AnyRouter> = CreateTRPCReactQueryClientConfig & (CreateSSGHelpersExternal<TRouter> | CreateSSGHelpersInternal<TRouter>); |
@@ -12,3 +12,3 @@ import type { TRPCClientErrorLike } from '@trpc/client'; | ||
Provider: TRPCProvider<TRouter, TSSRContext>; | ||
createClient: (opts: import("@trpc/client").CreateTRPCClientOptions<TRouter>) => import("@trpc/client").CreateTRPCProxyClient<TRouter>; | ||
createClient: (opts: import("@trpc/client").CreateTRPCClientOptions<TRouter>) => import("@trpc/client").TRPCClient<TRouter>; | ||
useContext: () => TRPCContextState<TRouter, TSSRContext>; | ||
@@ -15,0 +15,0 @@ useUtils: () => TRPCContextState<TRouter, TSSRContext>; |
import type { DefinedUseQueryResult, FetchInfiniteQueryOptions, FetchQueryOptions, InfiniteData, InfiniteQueryObserverSuccessResult, InitialDataFunction, QueryObserverSuccessResult, QueryOptions, UseBaseQueryOptions, UseInfiniteQueryOptions, UseInfiniteQueryResult, UseMutationOptions, UseMutationResult, UseQueryResult, UseSuspenseInfiniteQueryOptions, UseSuspenseInfiniteQueryResult, UseSuspenseQueryOptions, UseSuspenseQueryResult } from '@tanstack/react-query'; | ||
import type { CreateTRPCClientOptions, inferRouterClient, TRPCRequestOptions, TRPCUntypedClient } from '@trpc/client'; | ||
import type { CreateTRPCClientOptions, TRPCClient, TRPCRequestOptions, TRPCUntypedClient } from '@trpc/client'; | ||
import type { AnyRouter, coerceAsyncIterableToArray, DistributiveOmit } from '@trpc/server/unstable-core-do-not-import'; | ||
@@ -110,3 +110,3 @@ import type { JSX, ReactNode } from 'react'; | ||
children: ReactNode; | ||
client: inferRouterClient<TRouter> | TRPCUntypedClient<TRouter>; | ||
client: TRPCClient<TRouter> | TRPCUntypedClient<TRouter>; | ||
} | ||
@@ -113,0 +113,0 @@ export type TRPCProvider<TRouter extends AnyRouter, TSSRContext> = (props: TRPCProviderProps<TRouter, TSSRContext>) => JSX.Element; |
@@ -1,2 +0,3 @@ | ||
import { TRPCUntypedClient, type inferRouterClient, type TRPCClientError } from '@trpc/client'; | ||
import type { TRPCClient } from '@trpc/client'; | ||
import { TRPCUntypedClient, type TRPCClientError } from '@trpc/client'; | ||
import type { AnyProcedure, AnyQueryProcedure, AnyRootTypes, AnyRouter, inferProcedureInput, inferTransformedProcedureOutput, RouterRecord } from '@trpc/server/unstable-core-do-not-import'; | ||
@@ -22,4 +23,4 @@ import type { TrpcQueryOptionsForUseQueries, TrpcQueryOptionsForUseSuspenseQueries } from '../../internals/useQueries'; | ||
*/ | ||
export declare function createUseQueries<TRouter extends AnyRouter>(client: TRPCUntypedClient<TRouter> | inferRouterClient<TRouter>): UseQueriesProcedureRecord<TRouter["_def"]["_config"]["$types"], TRouter["_def"]["record"]>; | ||
export declare function createUseQueries<TRouter extends AnyRouter>(client: TRPCUntypedClient<TRouter> | TRPCClient<TRouter>): UseQueriesProcedureRecord<TRouter["_def"]["_config"]["$types"], TRouter["_def"]["record"]>; | ||
export {}; | ||
//# sourceMappingURL=useQueriesProxy.d.ts.map |
import { type QueryClient } from '@tanstack/react-query'; | ||
import type { CreateTRPCClient } from '@trpc/client'; | ||
import type { TRPCClient } from '@trpc/client'; | ||
import { TRPCUntypedClient } from '@trpc/client'; | ||
@@ -10,3 +10,3 @@ import type { AnyRouter } from '@trpc/server/unstable-core-do-not-import'; | ||
*/ | ||
client: CreateTRPCClient<TRouter> | TRPCUntypedClient<TRouter>; | ||
client: TRPCClient<TRouter> | TRPCUntypedClient<TRouter>; | ||
/** | ||
@@ -13,0 +13,0 @@ * The `QueryClient` from `react-query` |
{ | ||
"name": "@trpc/react-query", | ||
"version": "11.0.0-rc.791+4eda4d50f", | ||
"version": "11.0.0-rc.795+394b0f5cc", | ||
"description": "The tRPC React library", | ||
@@ -68,4 +68,4 @@ "author": "KATT", | ||
"@tanstack/react-query": "^5.62.8", | ||
"@trpc/client": "11.0.0-rc.791+4eda4d50f", | ||
"@trpc/server": "11.0.0-rc.791+4eda4d50f", | ||
"@trpc/client": "11.0.0-rc.795+394b0f5cc", | ||
"@trpc/server": "11.0.0-rc.795+394b0f5cc", | ||
"react": ">=18.2.0", | ||
@@ -77,4 +77,4 @@ "react-dom": ">=18.2.0", | ||
"@tanstack/react-query": "^5.66.0", | ||
"@trpc/client": "11.0.0-rc.791+4eda4d50f", | ||
"@trpc/server": "11.0.0-rc.791+4eda4d50f", | ||
"@trpc/client": "11.0.0-rc.795+394b0f5cc", | ||
"@trpc/server": "11.0.0-rc.795+394b0f5cc", | ||
"@types/express": "^5.0.0", | ||
@@ -100,3 +100,3 @@ "@types/node": "^22.9.0", | ||
], | ||
"gitHead": "4eda4d50fb6eb3907dce587cd71c7c131ffb02fe" | ||
"gitHead": "394b0f5cc328937156cc75a772b3280231d4a2e2" | ||
} |
@@ -7,3 +7,3 @@ import type { | ||
import { dehydrate } from '@tanstack/react-query'; | ||
import type { inferRouterClient } from '@trpc/client'; | ||
import type { TRPCClient } from '@trpc/client'; | ||
import { getUntypedClient, TRPCUntypedClient } from '@trpc/client'; | ||
@@ -45,3 +45,3 @@ import type { CoercedTransformerParameters } from '@trpc/client/unstable-internals'; | ||
interface CreateSSGHelpersExternal<TRouter extends AnyRouter> { | ||
client: inferRouterClient<TRouter> | TRPCUntypedClient<TRouter>; | ||
client: TRPCClient<TRouter> | TRPCUntypedClient<TRouter>; | ||
} | ||
@@ -48,0 +48,0 @@ |
@@ -23,3 +23,3 @@ import type { | ||
CreateTRPCClientOptions, | ||
inferRouterClient, | ||
TRPCClient, | ||
TRPCRequestOptions, | ||
@@ -237,3 +237,3 @@ TRPCUntypedClient, | ||
children: ReactNode; | ||
client: inferRouterClient<TRouter> | TRPCUntypedClient<TRouter>; | ||
client: TRPCClient<TRouter> | TRPCUntypedClient<TRouter>; | ||
} | ||
@@ -240,0 +240,0 @@ |
import type { QueryOptions } from '@tanstack/react-query'; | ||
import type { TRPCClient } from '@trpc/client'; | ||
import { | ||
getUntypedClient, | ||
TRPCUntypedClient, | ||
type inferRouterClient, | ||
type TRPCClientError, | ||
@@ -94,3 +94,3 @@ } from '@trpc/client'; | ||
export function createUseQueries<TRouter extends AnyRouter>( | ||
client: TRPCUntypedClient<TRouter> | inferRouterClient<TRouter>, | ||
client: TRPCUntypedClient<TRouter> | TRPCClient<TRouter>, | ||
) { | ||
@@ -97,0 +97,0 @@ const untypedClient: TRPCUntypedClient<TRouter> = |
@@ -8,3 +8,3 @@ import type { QueryFunctionContext } from '@tanstack/react-query'; | ||
} from '@tanstack/react-query'; | ||
import type { CreateTRPCClient } from '@trpc/client'; | ||
import type { TRPCClient } from '@trpc/client'; | ||
import { getUntypedClient, TRPCUntypedClient } from '@trpc/client'; | ||
@@ -25,3 +25,3 @@ import type { AnyRouter } from '@trpc/server/unstable-core-do-not-import'; | ||
*/ | ||
client: CreateTRPCClient<TRouter> | TRPCUntypedClient<TRouter>; | ||
client: TRPCClient<TRouter> | TRPCUntypedClient<TRouter>; | ||
/** | ||
@@ -28,0 +28,0 @@ * The `QueryClient` from `react-query` |
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
8159
350
362482