@trpc/react-query
Advanced tools
Comparing version 11.0.0-rc.584 to 11.0.0-rc.586
{ | ||
"bundleSize": 40313, | ||
"bundleOrigSize": 87501, | ||
"bundleReduction": 53.93, | ||
"bundleOrigSize": 88085, | ||
"bundleReduction": 54.23, | ||
"modules": [ | ||
@@ -52,3 +52,3 @@ { | ||
"size": 3628, | ||
"origSize": 15971, | ||
"origSize": 16556, | ||
"renderedExports": [ | ||
@@ -64,3 +64,3 @@ "getQueryType", | ||
"percent": 9, | ||
"reduction": 77.28 | ||
"reduction": 78.09 | ||
}, | ||
@@ -195,3 +195,3 @@ { | ||
"size": 154, | ||
"origSize": 9162, | ||
"origSize": 9161, | ||
"renderedExports": [ | ||
@@ -198,0 +198,0 @@ "contextProps", |
@@ -74,3 +74,3 @@ import type { CancelOptions, FetchInfiniteQueryOptions, FetchQueryOptions, InfiniteData, InvalidateOptions, InvalidateQueryFilters, MutationOptions, QueryClient, QueryFilters, QueryKey, RefetchOptions, RefetchQueryFilters, ResetOptions, SetDataOptions, Updater } from '@tanstack/react-query'; | ||
queryOptions(path: readonly string[], // <-- look into if needed | ||
queryKey: TRPCQueryKey, opts?: DefinedTRPCQueryOptionsIn<unknown, unknown, TRPCClientError<AnyClientTypes>>): DefinedTRPCQueryOptionsOut<unknown, unknown, TRPCClientError<AnyClientTypes>>; | ||
queryKey: TRPCQueryKey, opts: DefinedTRPCQueryOptionsIn<unknown, unknown, TRPCClientError<AnyClientTypes>>): DefinedTRPCQueryOptionsOut<unknown, unknown, TRPCClientError<AnyClientTypes>>; | ||
/** | ||
@@ -77,0 +77,0 @@ * @see https://tanstack.com/query/latest/docs/framework/react/reference/infiniteQueryOptions#infinitequeryoptions |
@@ -8,3 +8,3 @@ import type { CancelOptions, InfiniteData, InvalidateOptions, InvalidateQueryFilters, Query, QueryFilters, QueryKey, RefetchOptions, RefetchQueryFilters, ResetOptions, SetDataOptions, SkipToken, Updater } from '@tanstack/react-query'; | ||
import type { ExtractCursorType } from '../hooks/types'; | ||
import type { DefinedTRPCInfiniteQueryOptionsIn, DefinedTRPCInfiniteQueryOptionsOut, DefinedTRPCQueryOptionsIn, DefinedTRPCQueryOptionsOut, UndefinedTRPCInfiniteQueryOptionsIn, UndefinedTRPCInfiniteQueryOptionsOut, UndefinedTRPCQueryOptionsIn, UndefinedTRPCQueryOptionsOut, UnusedSkipTokenTRPCInfiniteQueryOptionsIn, UnusedSkipTokenTRPCInfiniteQueryOptionsOut } from '../types'; | ||
import type { DefinedTRPCInfiniteQueryOptionsIn, DefinedTRPCInfiniteQueryOptionsOut, DefinedTRPCQueryOptionsIn, DefinedTRPCQueryOptionsOut, UndefinedTRPCInfiniteQueryOptionsIn, UndefinedTRPCInfiniteQueryOptionsOut, UndefinedTRPCQueryOptionsIn, UndefinedTRPCQueryOptionsOut, UnusedSkipTokenTRPCInfiniteQueryOptionsIn, UnusedSkipTokenTRPCInfiniteQueryOptionsOut, UnusedSkipTokenTRPCQueryOptionsIn, UnusedSkipTokenTRPCQueryOptionsOut } from '../types'; | ||
export type DecorateQueryProcedure<TRoot extends AnyRootTypes, TProcedure extends AnyQueryProcedure> = { | ||
@@ -18,2 +18,6 @@ /** | ||
*/ | ||
queryOptions<TQueryFnData extends inferTransformedProcedureOutput<TRoot, TProcedure>, TData = TQueryFnData>(input: inferProcedureInput<TProcedure> | SkipToken, opts?: UnusedSkipTokenTRPCQueryOptionsIn<TQueryFnData, TData, TRPCClientError<TRoot>>): UnusedSkipTokenTRPCQueryOptionsOut<TQueryFnData, TData, TRPCClientError<TRoot>>; | ||
/** | ||
* @see https://tanstack.com/query/latest/docs/framework/react/reference/queryOptions#queryoptions | ||
*/ | ||
queryOptions<TQueryFnData extends inferTransformedProcedureOutput<TRoot, TProcedure>, TData = TQueryFnData>(input: inferProcedureInput<TProcedure> | SkipToken, opts?: UndefinedTRPCQueryOptionsIn<TQueryFnData, TData, TRPCClientError<TRoot>>): UndefinedTRPCQueryOptionsOut<TQueryFnData, TData, TRPCClientError<TRoot>>; | ||
@@ -20,0 +24,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import type { DataTag, DefinedInitialDataInfiniteOptions, DefinedInitialDataOptions, InfiniteData, QueryClient, UndefinedInitialDataInfiniteOptions, UndefinedInitialDataOptions, UnusedSkipTokenInfiniteOptions } from '@tanstack/react-query'; | ||
import type { DataTag, DefinedInitialDataInfiniteOptions, DefinedInitialDataOptions, InfiniteData, QueryClient, UndefinedInitialDataInfiniteOptions, UndefinedInitialDataOptions, UnusedSkipTokenInfiniteOptions, UnusedSkipTokenOptions } from '@tanstack/react-query'; | ||
import type { AnyRouter, DistributiveOmit, MaybePromise } from '@trpc/server/unstable-core-do-not-import'; | ||
@@ -31,2 +31,7 @@ import type { TRPCQueryKey } from '../internals/getQueryKey'; | ||
} | ||
export interface UnusedSkipTokenTRPCQueryOptionsIn<TQueryFnData, TData, TError> extends DistributiveOmit<UnusedSkipTokenOptions<coerceAsyncIterableToArray<TQueryFnData>, TError, coerceAsyncIterableToArray<TData>, TRPCQueryKey>, TRPCOptionOverrides>, TRPCQueryBaseOptions { | ||
} | ||
export interface UnusedSkipTokenTRPCQueryOptionsOut<TQueryFnData, TOutput, TError> extends UnusedSkipTokenOptions<coerceAsyncIterableToArray<TQueryFnData>, TError, coerceAsyncIterableToArray<TOutput>, TRPCQueryKey>, TRPCQueryOptionsResult { | ||
queryKey: DataTag<TRPCQueryKey, coerceAsyncIterableToArray<TOutput>>; | ||
} | ||
/** | ||
@@ -33,0 +38,0 @@ * InifiniteQueryOptions helpers |
{ | ||
"name": "@trpc/react-query", | ||
"version": "11.0.0-rc.584+c92c71b89", | ||
"version": "11.0.0-rc.586+3388c9691", | ||
"description": "The tRPC React library", | ||
@@ -67,4 +67,4 @@ "author": "KATT", | ||
"@tanstack/react-query": "^5.59.15", | ||
"@trpc/client": "11.0.0-rc.584+c92c71b89", | ||
"@trpc/server": "11.0.0-rc.584+c92c71b89", | ||
"@trpc/client": "11.0.0-rc.586+3388c9691", | ||
"@trpc/server": "11.0.0-rc.586+3388c9691", | ||
"react": ">=18.2.0", | ||
@@ -75,4 +75,4 @@ "react-dom": ">=18.2.0" | ||
"@tanstack/react-query": "^5.59.15", | ||
"@trpc/client": "11.0.0-rc.584+c92c71b89", | ||
"@trpc/server": "11.0.0-rc.584+c92c71b89", | ||
"@trpc/client": "11.0.0-rc.586+3388c9691", | ||
"@trpc/server": "11.0.0-rc.586+3388c9691", | ||
"@types/express": "^4.17.17", | ||
@@ -97,3 +97,3 @@ "@types/node": "^20.10.0", | ||
], | ||
"gitHead": "c92c71b897e03a80bddac16a56090edd84e54401" | ||
"gitHead": "3388c9691d122b9d4047b2de0caedcdf611354ab" | ||
} |
@@ -59,2 +59,4 @@ import type { | ||
UnusedSkipTokenTRPCInfiniteQueryOptionsOut, | ||
UnusedSkipTokenTRPCQueryOptionsIn, | ||
UnusedSkipTokenTRPCQueryOptionsOut, | ||
} from '../types'; | ||
@@ -88,2 +90,20 @@ | ||
input: inferProcedureInput<TProcedure> | SkipToken, | ||
opts?: UnusedSkipTokenTRPCQueryOptionsIn< | ||
TQueryFnData, | ||
TData, | ||
TRPCClientError<TRoot> | ||
>, | ||
): UnusedSkipTokenTRPCQueryOptionsOut< | ||
TQueryFnData, | ||
TData, | ||
TRPCClientError<TRoot> | ||
>; | ||
/** | ||
* @see https://tanstack.com/query/latest/docs/framework/react/reference/queryOptions#queryoptions | ||
*/ | ||
queryOptions< | ||
TQueryFnData extends inferTransformedProcedureOutput<TRoot, TProcedure>, | ||
TData = TQueryFnData, | ||
>( | ||
input: inferProcedureInput<TProcedure> | SkipToken, | ||
opts?: UndefinedTRPCQueryOptionsIn< | ||
@@ -90,0 +110,0 @@ TQueryFnData, |
@@ -10,2 +10,3 @@ import type { | ||
UnusedSkipTokenInfiniteOptions, | ||
UnusedSkipTokenOptions, | ||
} from '@tanstack/react-query'; | ||
@@ -89,2 +90,28 @@ import type { | ||
export interface UnusedSkipTokenTRPCQueryOptionsIn<TQueryFnData, TData, TError> | ||
extends DistributiveOmit< | ||
UnusedSkipTokenOptions< | ||
coerceAsyncIterableToArray<TQueryFnData>, | ||
TError, | ||
coerceAsyncIterableToArray<TData>, | ||
TRPCQueryKey | ||
>, | ||
TRPCOptionOverrides | ||
>, | ||
TRPCQueryBaseOptions {} | ||
export interface UnusedSkipTokenTRPCQueryOptionsOut< | ||
TQueryFnData, | ||
TOutput, | ||
TError, | ||
> extends UnusedSkipTokenOptions< | ||
coerceAsyncIterableToArray<TQueryFnData>, | ||
TError, | ||
coerceAsyncIterableToArray<TOutput>, | ||
TRPCQueryKey | ||
>, | ||
TRPCQueryOptionsResult { | ||
queryKey: DataTag<TRPCQueryKey, coerceAsyncIterableToArray<TOutput>>; | ||
} | ||
/** | ||
@@ -91,0 +118,0 @@ * InifiniteQueryOptions helpers |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
342875
7670