@trpc/react-query
Advanced tools
Comparing version 11.0.0-rc.601 to 11.0.0-rc.604
{ | ||
"bundleSize": 43624, | ||
"bundleOrigSize": 91523, | ||
"bundleReduction": 52.34, | ||
"bundleOrigSize": 91606, | ||
"bundleReduction": 52.38, | ||
"modules": [ | ||
@@ -38,3 +38,3 @@ { | ||
"size": 3972, | ||
"origSize": 6120, | ||
"origSize": 6126, | ||
"renderedExports": [ | ||
@@ -48,3 +48,3 @@ "createServerSideHelpers" | ||
"percent": 9.11, | ||
"reduction": 35.1 | ||
"reduction": 35.16 | ||
}, | ||
@@ -54,3 +54,3 @@ { | ||
"size": 3628, | ||
"origSize": 16556, | ||
"origSize": 16568, | ||
"renderedExports": [ | ||
@@ -66,3 +66,3 @@ "getQueryType", | ||
"percent": 8.32, | ||
"reduction": 78.09 | ||
"reduction": 78.1 | ||
}, | ||
@@ -72,3 +72,3 @@ { | ||
"size": 3233, | ||
"origSize": 5357, | ||
"origSize": 5362, | ||
"renderedExports": [ | ||
@@ -80,3 +80,3 @@ "createHydrationHelpers" | ||
"percent": 7.41, | ||
"reduction": 39.65 | ||
"reduction": 39.71 | ||
}, | ||
@@ -108,3 +108,3 @@ { | ||
"size": 875, | ||
"origSize": 13788, | ||
"origSize": 13840, | ||
"renderedExports": [ | ||
@@ -119,3 +119,3 @@ "createHooksInternal", | ||
"percent": 2.01, | ||
"reduction": 93.65 | ||
"reduction": 93.68 | ||
}, | ||
@@ -156,3 +156,3 @@ { | ||
"size": 569, | ||
"origSize": 3179, | ||
"origSize": 3187, | ||
"renderedExports": [ | ||
@@ -167,3 +167,3 @@ "createUseQueries" | ||
"percent": 1.3, | ||
"reduction": 82.1 | ||
"reduction": 82.15 | ||
}, | ||
@@ -170,0 +170,0 @@ { |
{ | ||
"name": "@trpc/react-query", | ||
"version": "11.0.0-rc.601+5a96855d9", | ||
"version": "11.0.0-rc.604+03cd991db", | ||
"description": "The tRPC React library", | ||
@@ -20,3 +20,3 @@ "author": "KATT", | ||
"codegen-entrypoints": "tsx entrypoints.script.ts", | ||
"lint": "eslint --cache --ext \".js,.ts,.tsx\" --ignore-path ../../.gitignore src", | ||
"lint": "eslint --cache src", | ||
"ts-watch": "tsc --watch" | ||
@@ -68,4 +68,4 @@ }, | ||
"@tanstack/react-query": "^5.59.15", | ||
"@trpc/client": "11.0.0-rc.601+5a96855d9", | ||
"@trpc/server": "11.0.0-rc.601+5a96855d9", | ||
"@trpc/client": "11.0.0-rc.604+03cd991db", | ||
"@trpc/server": "11.0.0-rc.604+03cd991db", | ||
"react": ">=18.2.0", | ||
@@ -76,10 +76,10 @@ "react-dom": ">=18.2.0" | ||
"@tanstack/react-query": "^5.59.15", | ||
"@trpc/client": "11.0.0-rc.601+5a96855d9", | ||
"@trpc/server": "11.0.0-rc.601+5a96855d9", | ||
"@trpc/client": "11.0.0-rc.604+03cd991db", | ||
"@trpc/server": "11.0.0-rc.604+03cd991db", | ||
"@types/express": "^4.17.17", | ||
"@types/node": "^22.0.0", | ||
"@types/node": "^20.17.3", | ||
"@types/react": "^18.3.1", | ||
"eslint": "^8.57.0", | ||
"eslint": "^9.13.0", | ||
"express": "^4.17.1", | ||
"next": "^14.2.5", | ||
"next": "^15.0.2", | ||
"react": "^18.3.1", | ||
@@ -98,3 +98,3 @@ "react-dom": "^18.3.1", | ||
], | ||
"gitHead": "5a96855d9f2f19dd2a8a9d43f82cf64ac40cb640" | ||
"gitHead": "03cd991dba00fe219759b308897137ecca1fe111" | ||
} |
@@ -128,15 +128,20 @@ import type { | ||
: TQueriesOptions extends [infer Head] | ||
? [...TResult, GetOptions<Head>] | ||
: TQueriesOptions extends [infer Head, ...infer Tail] | ||
? QueriesOptions<Tail, [...TResult, GetOptions<Head>]> | ||
: unknown[] extends TQueriesOptions | ||
? TQueriesOptions | ||
: TQueriesOptions extends UseQueryOptionsForUseQueries< | ||
infer TQueryFnData, | ||
infer TError, | ||
infer TData, | ||
infer TQueryKey | ||
>[] | ||
? UseQueryOptionsForUseQueries<TQueryFnData, TError, TData, TQueryKey>[] | ||
: UseQueryOptionsForUseQueries[]; | ||
? [...TResult, GetOptions<Head>] | ||
: TQueriesOptions extends [infer Head, ...infer Tail] | ||
? QueriesOptions<Tail, [...TResult, GetOptions<Head>]> | ||
: unknown[] extends TQueriesOptions | ||
? TQueriesOptions | ||
: TQueriesOptions extends UseQueryOptionsForUseQueries< | ||
infer TQueryFnData, | ||
infer TError, | ||
infer TData, | ||
infer TQueryKey | ||
>[] | ||
? UseQueryOptionsForUseQueries< | ||
TQueryFnData, | ||
TError, | ||
TData, | ||
TQueryKey | ||
>[] | ||
: UseQueryOptionsForUseQueries[]; | ||
@@ -157,20 +162,20 @@ type GetSuspenseOptions<TQueryOptions> = | ||
: TQueriesOptions extends [infer Head] | ||
? [...TResult, GetSuspenseOptions<Head>] | ||
: TQueriesOptions extends [infer Head, ...infer Tail] | ||
? SuspenseQueriesOptions<Tail, [...TResult, GetSuspenseOptions<Head>]> | ||
: unknown[] extends TQueriesOptions | ||
? TQueriesOptions | ||
: TQueriesOptions extends UseQueryOptionsForUseSuspenseQueries< | ||
infer TQueryFnData, | ||
infer TError, | ||
infer TData, | ||
infer TQueryKey | ||
>[] | ||
? UseQueryOptionsForUseSuspenseQueries< | ||
TQueryFnData, | ||
TError, | ||
TData, | ||
TQueryKey | ||
>[] | ||
: UseQueryOptionsForUseSuspenseQueries[]; | ||
? [...TResult, GetSuspenseOptions<Head>] | ||
: TQueriesOptions extends [infer Head, ...infer Tail] | ||
? SuspenseQueriesOptions<Tail, [...TResult, GetSuspenseOptions<Head>]> | ||
: unknown[] extends TQueriesOptions | ||
? TQueriesOptions | ||
: TQueriesOptions extends UseQueryOptionsForUseSuspenseQueries< | ||
infer TQueryFnData, | ||
infer TError, | ||
infer TData, | ||
infer TQueryKey | ||
>[] | ||
? UseQueryOptionsForUseSuspenseQueries< | ||
TQueryFnData, | ||
TError, | ||
TData, | ||
TQueryKey | ||
>[] | ||
: UseQueryOptionsForUseSuspenseQueries[]; | ||
@@ -177,0 +182,0 @@ /** |
@@ -70,5 +70,5 @@ import type { | ||
: // utils only apply to queries | ||
$Value extends AnyQueryProcedure | ||
? Pick<DecorateQueryProcedure<TRoot, $Value>, SSGFns> | ||
: never | ||
$Value extends AnyQueryProcedure | ||
? Pick<DecorateQueryProcedure<TRoot, $Value>, SSGFns> | ||
: never | ||
: never; | ||
@@ -75,0 +75,0 @@ }; |
@@ -246,7 +246,4 @@ import type { | ||
export type coerceAsyncIterableToArray<TValue> = TValue extends AsyncIterable< | ||
infer $Inferred | ||
> | ||
? $Inferred[] | ||
: TValue; | ||
export type coerceAsyncIterableToArray<TValue> = | ||
TValue extends AsyncIterable<infer $Inferred> ? $Inferred[] : TValue; | ||
@@ -253,0 +250,0 @@ /** |
@@ -29,5 +29,6 @@ import type { | ||
TMutationLike extends MutationLike<any, any>, | ||
> = TMutationLike extends MutationLike<any, infer $Procedure> | ||
? inferProcedureInput<$Procedure> | ||
: never; | ||
> = | ||
TMutationLike extends MutationLike<any, infer $Procedure> | ||
? inferProcedureInput<$Procedure> | ||
: never; | ||
@@ -39,4 +40,5 @@ /** | ||
TMutationLike extends MutationLike<any, any>, | ||
> = TMutationLike extends MutationLike<infer TRoot, infer TProcedure> | ||
? inferTransformedProcedureOutput<TRoot, TProcedure> | ||
: never; | ||
> = | ||
TMutationLike extends MutationLike<infer TRoot, infer TProcedure> | ||
? inferTransformedProcedureOutput<TRoot, TProcedure> | ||
: never; |
@@ -40,9 +40,8 @@ import type { TRPCClientErrorLike } from '@trpc/client'; | ||
*/ | ||
export type InferQueryLikeInput<TQueryLike> = TQueryLike extends DecoratedQuery< | ||
infer $Def | ||
> | ||
? $Def['input'] | ||
: TQueryLike extends QueryLike<any, infer TProcedure> | ||
? inferProcedureInput<TProcedure> | ||
: never; | ||
export type InferQueryLikeInput<TQueryLike> = | ||
TQueryLike extends DecoratedQuery<infer $Def> | ||
? $Def['input'] | ||
: TQueryLike extends QueryLike<any, infer TProcedure> | ||
? inferProcedureInput<TProcedure> | ||
: never; | ||
@@ -52,8 +51,7 @@ /** | ||
*/ | ||
export type InferQueryLikeData<TQueryLike> = TQueryLike extends DecoratedQuery< | ||
infer $Def | ||
> | ||
? $Def['output'] | ||
: TQueryLike extends QueryLike<infer TRoot, infer TProcedure> | ||
? inferTransformedProcedureOutput<TRoot, TProcedure> | ||
: never; | ||
export type InferQueryLikeData<TQueryLike> = | ||
TQueryLike extends DecoratedQuery<infer $Def> | ||
? $Def['output'] | ||
: TQueryLike extends QueryLike<infer TRoot, infer TProcedure> | ||
? inferTransformedProcedureOutput<TRoot, TProcedure> | ||
: never; |
@@ -26,6 +26,6 @@ import type { | ||
: $Value extends AnyQueryProcedure | ||
? QueryLike<TRoot, $Value> | ||
: $Value extends AnyMutationProcedure | ||
? MutationLike<TRoot, $Value> | ||
: never | ||
? QueryLike<TRoot, $Value> | ||
: $Value extends AnyMutationProcedure | ||
? MutationLike<TRoot, $Value> | ||
: never | ||
: never; | ||
@@ -32,0 +32,0 @@ }; |
@@ -47,4 +47,4 @@ import type { QueryOptions } from '@tanstack/react-query'; | ||
: $Value extends AnyQueryProcedure | ||
? GetQueryOptions<TRoot, $Value> | ||
: never | ||
? GetQueryOptions<TRoot, $Value> | ||
: never | ||
: never; | ||
@@ -80,4 +80,4 @@ }; | ||
: $Value extends AnyQueryProcedure | ||
? GetSuspenseQueryOptions<TRoot, $Value> | ||
: never | ||
? GetSuspenseQueryOptions<TRoot, $Value> | ||
: never | ||
: never; | ||
@@ -84,0 +84,0 @@ }; |
@@ -403,6 +403,6 @@ import type { | ||
: $Value extends AnyQueryProcedure | ||
? DecorateQueryProcedure<TRoot, $Value> | ||
: $Value extends AnyMutationProcedure | ||
? DecorateMutationProcedure<TRoot, $Value> | ||
: never | ||
? DecorateQueryProcedure<TRoot, $Value> | ||
: $Value extends AnyMutationProcedure | ||
? DecorateMutationProcedure<TRoot, $Value> | ||
: never | ||
: never; | ||
@@ -409,0 +409,0 @@ }; // Add functions that should be available at utils root |
@@ -83,6 +83,6 @@ import type { TRPCClientErrorLike } from '@trpc/client'; | ||
: $Value extends AnyMutationProcedure | ||
? InferMutationOptions<TRoot, $Value> | ||
: $Value extends AnyQueryProcedure | ||
? InferQueryOptions<TRoot, $Value> | ||
: never | ||
? InferMutationOptions<TRoot, $Value> | ||
: $Value extends AnyQueryProcedure | ||
? InferQueryOptions<TRoot, $Value> | ||
: never | ||
: never; | ||
@@ -89,0 +89,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
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
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
357868
8076