@trpc/react-query 11.0.0-alpha-tmp-export-from-main.211 → 11.0.0-alpha-tmp-export-from-main-nuke-core.229
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle-analysis.json +240 -0
- package/dist/{createHooksInternal-4285c71a.js → createHooksInternal-08a68de5.js} +2 -2
- package/dist/{createHooksInternal-e0b0564e.mjs → createHooksInternal-19d40d9b.mjs} +2 -2
- package/dist/{createHooksInternal-5d2fa367.js → createHooksInternal-7cefbae9.js} +4 -4
- package/dist/createTRPCQueryUtils.d.ts +1 -1
- package/dist/createTRPCQueryUtils.d.ts.map +1 -1
- package/dist/createTRPCReact.d.ts +1 -1
- package/dist/createTRPCReact.d.ts.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.mjs +4 -4
- package/dist/internals/context.d.ts +1 -1
- package/dist/internals/context.d.ts.map +1 -1
- package/dist/internals/getQueryKey.d.ts +1 -1
- package/dist/internals/getQueryKey.d.ts.map +1 -1
- package/dist/internals/useQueries.d.ts +1 -1
- package/dist/internals/useQueries.d.ts.map +1 -1
- package/dist/server/index.js +5 -5
- package/dist/server/index.mjs +2 -2
- package/dist/server/ssgProxy.d.ts +1 -1
- package/dist/server/ssgProxy.d.ts.map +1 -1
- package/dist/shared/hooks/createHooksInternal.d.ts +1 -1
- package/dist/shared/hooks/createHooksInternal.d.ts.map +1 -1
- package/dist/shared/hooks/types.d.ts +1 -1
- package/dist/shared/hooks/types.d.ts.map +1 -1
- package/dist/shared/index.js +3 -3
- package/dist/shared/index.mjs +3 -3
- package/dist/shared/polymorphism/mutationLike.d.ts +1 -1
- package/dist/shared/polymorphism/mutationLike.d.ts.map +1 -1
- package/dist/shared/polymorphism/queryLike.d.ts +1 -1
- package/dist/shared/polymorphism/queryLike.d.ts.map +1 -1
- package/dist/shared/polymorphism/routerLike.d.ts +1 -1
- package/dist/shared/polymorphism/routerLike.d.ts.map +1 -1
- package/dist/shared/polymorphism/utilsLike.d.ts +1 -1
- package/dist/shared/polymorphism/utilsLike.d.ts.map +1 -1
- package/dist/shared/proxy/decorationProxy.d.ts +1 -1
- package/dist/shared/proxy/decorationProxy.d.ts.map +1 -1
- package/dist/shared/proxy/useQueriesProxy.d.ts +1 -1
- package/dist/shared/proxy/useQueriesProxy.d.ts.map +1 -1
- package/dist/shared/proxy/utilsProxy.d.ts +1 -1
- package/dist/shared/proxy/utilsProxy.d.ts.map +1 -1
- package/dist/shared/types.d.ts +1 -1
- package/dist/shared/types.d.ts.map +1 -1
- package/dist/utils/createUtilityFunctions.d.ts +1 -1
- package/dist/utils/createUtilityFunctions.d.ts.map +1 -1
- package/dist/utils/inferReactQueryProcedure.d.ts +1 -1
- package/dist/utils/inferReactQueryProcedure.d.ts.map +1 -1
- package/dist/{utilsProxy-ff357a62.js → utilsProxy-6710b593.js} +1 -1
- package/dist/{utilsProxy-61a4601f.mjs → utilsProxy-96b3c563.mjs} +1 -1
- package/dist/{utilsProxy-0b88c1e3.js → utilsProxy-fdb291de.js} +4 -4
- package/package.json +15 -31
- package/src/createTRPCQueryUtils.tsx +1 -1
- package/src/createTRPCReact.tsx +2 -2
- package/src/internals/context.tsx +4 -1
- package/src/internals/getQueryKey.ts +1 -1
- package/src/internals/useQueries.ts +4 -1
- package/src/server/ssgProxy.ts +2 -2
- package/src/shared/hooks/createHooksInternal.tsx +1 -1
- package/src/shared/hooks/types.ts +4 -1
- package/src/shared/polymorphism/mutationLike.ts +1 -1
- package/src/shared/polymorphism/queryLike.ts +1 -1
- package/src/shared/polymorphism/routerLike.ts +1 -1
- package/src/shared/polymorphism/utilsLike.ts +1 -1
- package/src/shared/proxy/decorationProxy.ts +2 -2
- package/src/shared/proxy/useQueriesProxy.ts +2 -2
- package/src/shared/proxy/utilsProxy.ts +5 -2
- package/src/shared/types.ts +4 -1
- package/src/utils/createUtilityFunctions.ts +1 -1
- package/src/utils/inferReactQueryProcedure.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { TRPCClientErrorLike } from '@trpc/client';
|
|
2
|
-
import type { AnyProcedure, AnyRootConfig, inferProcedureInput, inferProcedureOutput, inferTransformedProcedureOutput } from '@trpc/core';
|
|
2
|
+
import type { AnyProcedure, AnyRootConfig, inferProcedureInput, inferProcedureOutput, inferTransformedProcedureOutput } from '@trpc/server/unstable-core-do-not-import';
|
|
3
3
|
import type { InferQueryOptions, InferQueryResult } from '../../utils/inferReactQueryProcedure';
|
|
4
4
|
import type { UseTRPCSuspenseQueryResult } from '../hooks/types';
|
|
5
5
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queryLike.d.ts","sourceRoot":"","sources":["../../../src/shared/polymorphism/queryLike.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,KAAK,EACV,YAAY,EACZ,aAAa,EACb,mBAAmB,EACnB,oBAAoB,EACpB,+BAA+B,EAChC,MAAM,
|
|
1
|
+
{"version":3,"file":"queryLike.d.ts","sourceRoot":"","sources":["../../../src/shared/polymorphism/queryLike.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,KAAK,EACV,YAAY,EACZ,aAAa,EACb,mBAAmB,EACnB,oBAAoB,EACpB,+BAA+B,EAChC,MAAM,0CAA0C,CAAC;AAClD,OAAO,KAAK,EACV,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AAEjE;;GAEG;AACH,MAAM,MAAM,SAAS,CACnB,OAAO,SAAS,aAAa,EAC7B,UAAU,SAAS,YAAY,IAC7B;IACF,QAAQ,EAAE,CACR,SAAS,EAAE,mBAAmB,CAAC,UAAU,CAAC,EAC1C,IAAI,CAAC,EAAE,iBAAiB,CAAC,OAAO,EAAE,UAAU,EAAE,GAAG,CAAC,KAC/C,gBAAgB,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;IAE3C,gBAAgB,EAAE,CAChB,SAAS,EAAE,mBAAmB,CAAC,UAAU,CAAC,EAC1C,IAAI,CAAC,EAAE,iBAAiB,CAAC,OAAO,EAAE,UAAU,EAAE,GAAG,CAAC,KAC/C,0BAA0B,CAC7B,oBAAoB,CAAC,UAAU,CAAC,EAChC,mBAAmB,CAAC,OAAO,CAAC,CAC7B,CAAC;CACH,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,mBAAmB,CAAC,UAAU,SAAS,SAAS,CAAC,GAAG,EAAE,GAAG,CAAC,IACpE,UAAU,SAAS,SAAS,CAAC,GAAG,EAAE,MAAM,UAAU,CAAC,GAC/C,mBAAmB,CAAC,UAAU,CAAC,GAC/B,KAAK,CAAC;AAEZ;;GAEG;AACH,MAAM,MAAM,kBAAkB,CAAC,UAAU,SAAS,SAAS,CAAC,GAAG,EAAE,GAAG,CAAC,IACnE,UAAU,SAAS,SAAS,CAAC,MAAM,OAAO,EAAE,MAAM,UAAU,CAAC,GACzD,+BAA+B,CAAC,OAAO,EAAE,UAAU,CAAC,GACpD,KAAK,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AnyMutationProcedure, AnyProcedure, AnyQueryProcedure, AnyRootConfig, AnyRouter } from '@trpc/core';
|
|
1
|
+
import type { AnyMutationProcedure, AnyProcedure, AnyQueryProcedure, AnyRootConfig, AnyRouter } from '@trpc/server/unstable-core-do-not-import';
|
|
2
2
|
import type { MutationLike } from './mutationLike';
|
|
3
3
|
import type { QueryLike } from './queryLike';
|
|
4
4
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routerLike.d.ts","sourceRoot":"","sources":["../../../src/shared/polymorphism/routerLike.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,SAAS,EACV,MAAM,
|
|
1
|
+
{"version":3,"file":"routerLike.d.ts","sourceRoot":"","sources":["../../../src/shared/polymorphism/routerLike.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,SAAS,EACV,MAAM,0CAA0C,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C;;GAEG;AACH,MAAM,MAAM,UAAU,CAAC,OAAO,SAAS,SAAS,IAAI,eAAe,CACjE,OAAO,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,EAC1B,OAAO,CAAC,MAAM,CAAC,CAAC,YAAY,CAAC,CAC9B,CAAC;AACF,MAAM,MAAM,eAAe,CACzB,OAAO,SAAS,aAAa,EAC7B,WAAW,SAAS,YAAY,IAC9B;KACD,IAAI,IAAI,MAAM,WAAW,GAAG,WAAW,CAAC,IAAI,CAAC,SAAS,SAAS,GAC5D,eAAe,CAAC,OAAO,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,CAAC,GAC7D,WAAW,CAAC,IAAI,CAAC,SAAS,iBAAiB,GAC3C,SAAS,CAAC,OAAO,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC,GACrC,WAAW,CAAC,IAAI,CAAC,SAAS,oBAAoB,GAC9C,YAAY,CAAC,OAAO,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC,GACxC,KAAK;CACV,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AnyRouter } from '@trpc/core';
|
|
1
|
+
import type { AnyRouter } from '@trpc/server/unstable-core-do-not-import';
|
|
2
2
|
import type { DecoratedProcedureUtilsRecord } from '../proxy/utilsProxy';
|
|
3
3
|
/**
|
|
4
4
|
* Use to describe a Utils/Context path which matches the given route's interface
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utilsLike.d.ts","sourceRoot":"","sources":["../../../src/shared/polymorphism/utilsLike.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"utilsLike.d.ts","sourceRoot":"","sources":["../../../src/shared/polymorphism/utilsLike.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AAC1E,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,qBAAqB,CAAC;AAEzE;;GAEG;AACH,MAAM,MAAM,SAAS,CAAC,OAAO,SAAS,SAAS,IAC7C,6BAA6B,CAAC,OAAO,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decorationProxy.d.ts","sourceRoot":"","sources":["../../../src/shared/proxy/decorationProxy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"decorationProxy.d.ts","sourceRoot":"","sources":["../../../src/shared/proxy/decorationProxy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AAE1E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAE1E;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,SAAS,SAAS,EACzB,WAAW,GAAG,OAAO,EACrB,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,qBAAqB,CAAC,OAAO,EAAE,WAAW,CAAC,WAuBjE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { TRPCClientError, TRPCUntypedClient } from '@trpc/client';
|
|
2
|
-
import type { AnyProcedure, AnyQueryProcedure, AnyRootConfig, AnyRouter, Filter, inferProcedureInput, inferTransformedProcedureOutput } from '@trpc/core';
|
|
2
|
+
import type { AnyProcedure, AnyQueryProcedure, AnyRootConfig, AnyRouter, Filter, inferProcedureInput, inferTransformedProcedureOutput } from '@trpc/server/unstable-core-do-not-import';
|
|
3
3
|
import type { TrpcQueryOptionsForUseQueries, TrpcQueryOptionsForUseSuspenseQueries } from '../../internals/useQueries';
|
|
4
4
|
type GetQueryOptions<TConfig extends AnyRootConfig, TProcedure extends AnyProcedure> = <TData = inferTransformedProcedureOutput<TConfig, TProcedure>>(input: inferProcedureInput<TProcedure>, opts?: TrpcQueryOptionsForUseQueries<inferTransformedProcedureOutput<TConfig, TProcedure>, TData, TRPCClientError<TConfig>>) => TrpcQueryOptionsForUseQueries<inferTransformedProcedureOutput<TConfig, TProcedure>, TData, TRPCClientError<TConfig>>;
|
|
5
5
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useQueriesProxy.d.ts","sourceRoot":"","sources":["../../../src/shared/proxy/useQueriesProxy.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACvE,OAAO,KAAK,EACV,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,SAAS,EACT,MAAM,EACN,mBAAmB,EACnB,+BAA+B,EAChC,MAAM,
|
|
1
|
+
{"version":3,"file":"useQueriesProxy.d.ts","sourceRoot":"","sources":["../../../src/shared/proxy/useQueriesProxy.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACvE,OAAO,KAAK,EACV,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,SAAS,EACT,MAAM,EACN,mBAAmB,EACnB,+BAA+B,EAChC,MAAM,0CAA0C,CAAC;AAGlD,OAAO,KAAK,EACV,6BAA6B,EAC7B,qCAAqC,EACtC,MAAM,4BAA4B,CAAC;AAGpC,KAAK,eAAe,CAClB,OAAO,SAAS,aAAa,EAC7B,UAAU,SAAS,YAAY,IAC7B,CAAC,KAAK,GAAG,+BAA+B,CAAC,OA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AAM,MAAM,iCAAiC,CAAC,OAAO,SAAS,SAAS,IAAI;KACxE,IAAI,IAAI,MAAM,MAAM,CACnB,OAAO,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,EACzB,iBAAiB,GAAG,SAAS,CAC9B,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GACjD,iCAAiC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,GAClE,uBAAuB,CACrB,OAAO,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,EAC1B,OAAO,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAChC;CACN,CAAC;AAEF;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,SAAS,SAAS,EACxD,MAAM,EAAE,iBAAiB,CAAC,OAAO,CAAC,sCAoBnC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CancelOptions, InfiniteData, InvalidateOptions, InvalidateQueryFilters, Query, RefetchOptions, RefetchQueryFilters, ResetOptions, SetDataOptions, Updater } from '@tanstack/react-query';
|
|
2
2
|
import type { TRPCClientError } from '@trpc/client';
|
|
3
|
-
import type { AnyQueryProcedure, AnyRootConfig, AnyRouter, DeepPartial, Filter, inferProcedureInput, inferTransformedProcedureOutput, ProtectedIntersection } from '@trpc/core';
|
|
3
|
+
import type { AnyQueryProcedure, AnyRootConfig, AnyRouter, DeepPartial, Filter, inferProcedureInput, inferTransformedProcedureOutput, ProtectedIntersection } from '@trpc/server/unstable-core-do-not-import';
|
|
4
4
|
import type { DecoratedTRPCContextProps, TRPCContextState, TRPCFetchInfiniteQueryOptions, TRPCFetchQueryOptions, TRPCQueryUtils } from '../../internals/context';
|
|
5
5
|
import type { QueryKeyKnown, QueryType } from '../../internals/getQueryKey';
|
|
6
6
|
import type { ExtractCursorType } from '../hooks/types';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utilsProxy.d.ts","sourceRoot":"","sources":["../../../src/shared/proxy/utilsProxy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,sBAAsB,EACtB,KAAK,EACL,cAAc,EACd,mBAAmB,EACnB,YAAY,EACZ,cAAc,EACd,OAAO,EACR,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,OAAO,KAAK,EACV,iBAAiB,EACjB,aAAa,EACb,SAAS,EACT,WAAW,EACX,MAAM,EACN,mBAAmB,EACnB,+BAA+B,EAC/B,qBAAqB,EACtB,MAAM,
|
|
1
|
+
{"version":3,"file":"utilsProxy.d.ts","sourceRoot":"","sources":["../../../src/shared/proxy/utilsProxy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,sBAAsB,EACtB,KAAK,EACL,cAAc,EACd,mBAAmB,EACnB,YAAY,EACZ,cAAc,EACd,OAAO,EACR,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,OAAO,KAAK,EACV,iBAAiB,EACjB,aAAa,EACb,SAAS,EACT,WAAW,EACX,MAAM,EACN,mBAAmB,EACnB,+BAA+B,EAC/B,qBAAqB,EACtB,MAAM,0CAA0C,CAAC;AAKlD,OAAO,KAAK,EACV,yBAAyB,EACzB,gBAAgB,EAChB,6BAA6B,EAC7B,qBAAqB,EACrB,cAAc,EACf,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAE5E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAExD,KAAK,iBAAiB,CACpB,OAAO,SAAS,aAAa,EAC7B,UAAU,SAAS,iBAA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+1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { QueryClient } from '@tanstack/react-query';
|
|
3
|
-
import type { AnyRouter, MaybePromise } from '@trpc/core';
|
|
3
|
+
import type { AnyRouter, MaybePromise } from '@trpc/server/unstable-core-do-not-import';
|
|
4
4
|
/**
|
|
5
5
|
* @internal
|
|
6
6
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/shared/types.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/shared/types.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,KAAK,EACV,SAAS,EACT,YAAY,EACb,MAAM,0CAA0C,CAAC;AAElD;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,CAAC,IAAI,EAAE;QAChB;;WAEG;QACH,UAAU,EAAE,MAAM,YAAY,CAAC,OAAO,CAAC,CAAC;QACxC,WAAW,EAAE,WAAW,CAAC;QACzB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC/B,KAAK,YAAY,CAAC,OAAO,CAAC,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB,CAAC,QAAQ,SAAS,SAAS;IAChE;;OAEG;IACH,SAAS,CAAC,EAAE;QACV,WAAW,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;KAC5C,CAAC;IAEF;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;;OAGG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;CAC9B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { QueryClient } from '@tanstack/react-query';
|
|
2
2
|
import type { CreateTRPCClient } from '@trpc/client';
|
|
3
3
|
import { TRPCUntypedClient } from '@trpc/client';
|
|
4
|
-
import type { AnyRouter } from '@trpc/core';
|
|
4
|
+
import type { AnyRouter } from '@trpc/server/unstable-core-do-not-import';
|
|
5
5
|
import type { TRPCQueryUtils } from '../shared';
|
|
6
6
|
export interface CreateQueryUtilsOptions<TRouter extends AnyRouter> {
|
|
7
7
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createUtilityFunctions.d.ts","sourceRoot":"","sources":["../../src/utils/createUtilityFunctions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAoB,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"createUtilityFunctions.d.ts","sourceRoot":"","sources":["../../src/utils/createUtilityFunctions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAoB,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AAE1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEhD,MAAM,WAAW,uBAAuB,CAAC,OAAO,SAAS,SAAS;IAChE;;OAEG;IACH,MAAM,EAAE,gBAAgB,CAAC,OAAO,CAAC,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAC/D;;OAEG;IACH,WAAW,EAAE,WAAW,CAAC;CAC1B;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,SAAS,SAAS,EAC9D,IAAI,EAAE,uBAAuB,CAAC,OAAO,CAAC,GACrC,cAAc,CAAC,OAAO,CAAC,CA8GzB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { TRPCClientErrorLike } from '@trpc/client';
|
|
2
|
-
import type { AnyMutationProcedure, AnyProcedure, AnyQueryProcedure, AnyRootConfig, AnyRouter, inferProcedureInput, inferTransformedProcedureOutput } from '@trpc/core';
|
|
2
|
+
import type { AnyMutationProcedure, AnyProcedure, AnyQueryProcedure, AnyRootConfig, AnyRouter, inferProcedureInput, inferTransformedProcedureOutput } from '@trpc/server/unstable-core-do-not-import';
|
|
3
3
|
import type { UseTRPCMutationOptions, UseTRPCMutationResult, UseTRPCQueryOptions, UseTRPCQueryResult } from '../shared';
|
|
4
4
|
/**
|
|
5
5
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inferReactQueryProcedure.d.ts","sourceRoot":"","sources":["../../src/utils/inferReactQueryProcedure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,KAAK,EACV,oBAAoB,EACpB,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,SAAS,EACT,mBAAmB,EACnB,+BAA+B,EAChC,MAAM,
|
|
1
|
+
{"version":3,"file":"inferReactQueryProcedure.d.ts","sourceRoot":"","sources":["../../src/utils/inferReactQueryProcedure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,KAAK,EACV,oBAAoB,EACpB,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,SAAS,EACT,mBAAmB,EACnB,+BAA+B,EAChC,MAAM,0CAA0C,CAAC;AAClD,OAAO,KAAK,EACV,sBAAsB,EACtB,qBAAqB,EACrB,mBAAmB,EACnB,kBAAkB,EACnB,MAAM,WAAW,CAAC;A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AkB,GACvG,kBAAkB,SAAS,SAAS,GAClC,+BAA+B,CAAC,kBAAkB,CAAC,GACnD,kBAAkB,SAAS,oBAAoB,GAC/C,oBAAoB,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,EAAE,kBAAkB,CAAC,GACpE,kBAAkB,SAAS,iBAAiB,GAC5C,iBAAiB,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,EAAE,kBAAkB,CAAC,GACjE,KAAK,GACP,KAAK;CACV,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var client = require('@trpc/client');
|
|
4
|
-
var
|
|
4
|
+
var unstableCoreDoNotImport = require('@trpc/server/unstable-core-do-not-import');
|
|
5
5
|
var React = require('react');
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
@@ -96,7 +96,7 @@ const getQueryType = (utilName)=>{
|
|
|
96
96
|
/**
|
|
97
97
|
* @internal
|
|
98
98
|
*/ function createRecursiveUtilsProxy(context, key) {
|
|
99
|
-
return
|
|
99
|
+
return unstableCoreDoNotImport.createRecursiveProxy((opts)=>{
|
|
100
100
|
const path = [
|
|
101
101
|
key,
|
|
102
102
|
...opts.path
|
|
@@ -133,7 +133,7 @@ const getQueryType = (utilName)=>{
|
|
|
133
133
|
/**
|
|
134
134
|
* @internal
|
|
135
135
|
*/ function createReactQueryUtils(context) {
|
|
136
|
-
return
|
|
136
|
+
return unstableCoreDoNotImport.createFlatProxy((key)=>{
|
|
137
137
|
const contextName = key;
|
|
138
138
|
if (contextName === 'client') {
|
|
139
139
|
return client.createTRPCClientProxy(context.client);
|
|
@@ -147,7 +147,7 @@ const getQueryType = (utilName)=>{
|
|
|
147
147
|
/**
|
|
148
148
|
* @internal
|
|
149
149
|
*/ function createQueryUtilsProxy(context) {
|
|
150
|
-
return
|
|
150
|
+
return unstableCoreDoNotImport.createFlatProxy((key)=>{
|
|
151
151
|
return createRecursiveUtilsProxy(context, key);
|
|
152
152
|
});
|
|
153
153
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trpc/react-query",
|
|
3
|
-
"version": "11.0.0-alpha-tmp-export-from-main.
|
|
3
|
+
"version": "11.0.0-alpha-tmp-export-from-main-nuke-core.229+14b75f259",
|
|
4
4
|
"description": "The tRPC React library",
|
|
5
5
|
"author": "KATT",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,34 +23,19 @@
|
|
|
23
23
|
"exports": {
|
|
24
24
|
"./package.json": "./package.json",
|
|
25
25
|
".": {
|
|
26
|
-
"import":
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
},
|
|
30
|
-
"require": {
|
|
31
|
-
"types": "./dist/index.d.ts",
|
|
32
|
-
"default": "./dist/index.js"
|
|
33
|
-
}
|
|
26
|
+
"import": "./dist/index.mjs",
|
|
27
|
+
"require": "./dist/index.js",
|
|
28
|
+
"default": "./dist/index.js"
|
|
34
29
|
},
|
|
35
30
|
"./server": {
|
|
36
|
-
"import":
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
},
|
|
40
|
-
"require": {
|
|
41
|
-
"types": "./dist/server/index.d.ts",
|
|
42
|
-
"default": "./dist/server/index.js"
|
|
43
|
-
}
|
|
31
|
+
"import": "./dist/server/index.mjs",
|
|
32
|
+
"require": "./dist/server/index.js",
|
|
33
|
+
"default": "./dist/server/index.js"
|
|
44
34
|
},
|
|
45
35
|
"./shared": {
|
|
46
|
-
"import":
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
},
|
|
50
|
-
"require": {
|
|
51
|
-
"types": "./dist/shared/index.d.ts",
|
|
52
|
-
"default": "./dist/shared/index.js"
|
|
53
|
-
}
|
|
36
|
+
"import": "./dist/shared/index.mjs",
|
|
37
|
+
"require": "./dist/shared/index.js",
|
|
38
|
+
"default": "./dist/shared/index.js"
|
|
54
39
|
}
|
|
55
40
|
},
|
|
56
41
|
"files": [
|
|
@@ -71,18 +56,17 @@
|
|
|
71
56
|
]
|
|
72
57
|
}
|
|
73
58
|
},
|
|
74
|
-
"dependencies": {
|
|
75
|
-
"@trpc/core": "11.0.0-alpha-tmp-export-from-main.211+de13a9c6f"
|
|
76
|
-
},
|
|
77
59
|
"peerDependencies": {
|
|
78
60
|
"@tanstack/react-query": "^5.0.0",
|
|
79
|
-
"@trpc/client": "11.0.0-alpha-tmp-export-from-main.
|
|
61
|
+
"@trpc/client": "11.0.0-alpha-tmp-export-from-main-nuke-core.229+14b75f259",
|
|
62
|
+
"@trpc/server": "11.0.0-alpha-tmp-export-from-main-nuke-core.229+14b75f259",
|
|
80
63
|
"react": ">=18.2.0",
|
|
81
64
|
"react-dom": ">=18.2.0"
|
|
82
65
|
},
|
|
83
66
|
"devDependencies": {
|
|
84
67
|
"@tanstack/react-query": "^5.0.0",
|
|
85
|
-
"@trpc/client": "11.0.0-alpha-tmp-export-from-main.
|
|
68
|
+
"@trpc/client": "11.0.0-alpha-tmp-export-from-main-nuke-core.229+14b75f259",
|
|
69
|
+
"@trpc/server": "11.0.0-alpha-tmp-export-from-main-nuke-core.229+14b75f259",
|
|
86
70
|
"@types/express": "^4.17.17",
|
|
87
71
|
"@types/node": "^20.10.0",
|
|
88
72
|
"@types/react": "^18.2.33",
|
|
@@ -101,5 +85,5 @@
|
|
|
101
85
|
"funding": [
|
|
102
86
|
"https://trpc.io/sponsor"
|
|
103
87
|
],
|
|
104
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "14b75f259c0f68905e8f29421796d9ebeb7b7b12"
|
|
105
89
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AnyRouter } from '@trpc/core';
|
|
1
|
+
import type { AnyRouter } from '@trpc/server/unstable-core-do-not-import';
|
|
2
2
|
import { createQueryUtilsProxy } from './shared';
|
|
3
3
|
import type { CreateQueryUtilsOptions } from './utils/createUtilityFunctions';
|
|
4
4
|
import { createUtilityFunctions } from './utils/createUtilityFunctions';
|
package/src/createTRPCReact.tsx
CHANGED
|
@@ -11,8 +11,8 @@ import type {
|
|
|
11
11
|
inferTransformedSubscriptionOutput,
|
|
12
12
|
ProcedureRouterRecord,
|
|
13
13
|
ProtectedIntersection,
|
|
14
|
-
} from '@trpc/core';
|
|
15
|
-
import { createFlatProxy } from '@trpc/core';
|
|
14
|
+
} from '@trpc/server/unstable-core-do-not-import';
|
|
15
|
+
import { createFlatProxy } from '@trpc/server/unstable-core-do-not-import';
|
|
16
16
|
import * as React from 'react';
|
|
17
17
|
import type {
|
|
18
18
|
TRPCUseQueries,
|
|
@@ -19,7 +19,10 @@ import type {
|
|
|
19
19
|
TRPCRequestOptions,
|
|
20
20
|
TRPCUntypedClient,
|
|
21
21
|
} from '@trpc/client';
|
|
22
|
-
import type {
|
|
22
|
+
import type {
|
|
23
|
+
AnyRouter,
|
|
24
|
+
DistributiveOmit,
|
|
25
|
+
} from '@trpc/server/unstable-core-do-not-import';
|
|
23
26
|
import * as React from 'react';
|
|
24
27
|
import type { ExtractCursorType } from '../shared';
|
|
25
28
|
import type { TRPCQueryKey } from './getQueryKey';
|
|
@@ -5,7 +5,7 @@ import type {
|
|
|
5
5
|
AnyRouter,
|
|
6
6
|
DeepPartial,
|
|
7
7
|
inferProcedureInput,
|
|
8
|
-
} from '@trpc/core';
|
|
8
|
+
} from '@trpc/server/unstable-core-do-not-import';
|
|
9
9
|
import type { DecoratedProcedureRecord, DecorateProcedure } from '../shared';
|
|
10
10
|
|
|
11
11
|
export type QueryType = 'any' | 'infinite' | 'query';
|
|
@@ -4,7 +4,10 @@ import type {
|
|
|
4
4
|
UseSuspenseQueryOptions,
|
|
5
5
|
UseSuspenseQueryResult,
|
|
6
6
|
} from '@tanstack/react-query';
|
|
7
|
-
import type {
|
|
7
|
+
import type {
|
|
8
|
+
AnyRouter,
|
|
9
|
+
DistributiveOmit,
|
|
10
|
+
} from '@trpc/server/unstable-core-do-not-import';
|
|
8
11
|
import type {
|
|
9
12
|
UseQueriesProcedureRecord,
|
|
10
13
|
UseSuspenseQueriesProcedureRecord,
|
package/src/server/ssgProxy.ts
CHANGED
|
@@ -19,12 +19,12 @@ import type {
|
|
|
19
19
|
inferTransformedProcedureOutput,
|
|
20
20
|
Maybe,
|
|
21
21
|
ProtectedIntersection,
|
|
22
|
-
} from '@trpc/core';
|
|
22
|
+
} from '@trpc/server/unstable-core-do-not-import';
|
|
23
23
|
import {
|
|
24
24
|
callProcedure,
|
|
25
25
|
createFlatProxy,
|
|
26
26
|
createRecursiveProxy,
|
|
27
|
-
} from '@trpc/core';
|
|
27
|
+
} from '@trpc/server/unstable-core-do-not-import';
|
|
28
28
|
import { getQueryKeyInternal } from '../internals/getQueryKey';
|
|
29
29
|
import type {
|
|
30
30
|
CreateTRPCReactQueryClientConfig,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from '@tanstack/react-query';
|
|
13
13
|
import type { TRPCClientErrorLike } from '@trpc/client';
|
|
14
14
|
import { createTRPCUntypedClient } from '@trpc/client';
|
|
15
|
-
import type { AnyRouter } from '@trpc/core';
|
|
15
|
+
import type { AnyRouter } from '@trpc/server/unstable-core-do-not-import';
|
|
16
16
|
import * as React from 'react';
|
|
17
17
|
import type { SSRState, TRPCContextState } from '../../internals/context';
|
|
18
18
|
import { TRPCContext } from '../../internals/context';
|
|
@@ -22,7 +22,10 @@ import type {
|
|
|
22
22
|
TRPCRequestOptions,
|
|
23
23
|
TRPCUntypedClient,
|
|
24
24
|
} from '@trpc/client';
|
|
25
|
-
import type {
|
|
25
|
+
import type {
|
|
26
|
+
AnyRouter,
|
|
27
|
+
DistributiveOmit,
|
|
28
|
+
} from '@trpc/server/unstable-core-do-not-import';
|
|
26
29
|
import type { ReactNode } from 'react';
|
|
27
30
|
import type { TRPCContextProps } from '../../internals/context';
|
|
28
31
|
import type { TRPCQueryKey } from '../../internals/getQueryKey';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { AnyRouter } from '@trpc/core';
|
|
2
|
-
import { createRecursiveProxy } from '@trpc/core';
|
|
1
|
+
import type { AnyRouter } from '@trpc/server/unstable-core-do-not-import';
|
|
2
|
+
import { createRecursiveProxy } from '@trpc/server/unstable-core-do-not-import';
|
|
3
3
|
import type { CreateReactQueryHooks } from '../hooks/createHooksInternal';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -8,8 +8,8 @@ import type {
|
|
|
8
8
|
Filter,
|
|
9
9
|
inferProcedureInput,
|
|
10
10
|
inferTransformedProcedureOutput,
|
|
11
|
-
} from '@trpc/core';
|
|
12
|
-
import { createRecursiveProxy } from '@trpc/core';
|
|
11
|
+
} from '@trpc/server/unstable-core-do-not-import';
|
|
12
|
+
import { createRecursiveProxy } from '@trpc/server/unstable-core-do-not-import';
|
|
13
13
|
import { getQueryKeyInternal } from '../../internals/getQueryKey';
|
|
14
14
|
import type {
|
|
15
15
|
TrpcQueryOptionsForUseQueries,
|
|
@@ -21,8 +21,11 @@ import type {
|
|
|
21
21
|
inferProcedureInput,
|
|
22
22
|
inferTransformedProcedureOutput,
|
|
23
23
|
ProtectedIntersection,
|
|
24
|
-
} from '@trpc/core';
|
|
25
|
-
import {
|
|
24
|
+
} from '@trpc/server/unstable-core-do-not-import';
|
|
25
|
+
import {
|
|
26
|
+
createFlatProxy,
|
|
27
|
+
createRecursiveProxy,
|
|
28
|
+
} from '@trpc/server/unstable-core-do-not-import';
|
|
26
29
|
import type {
|
|
27
30
|
DecoratedTRPCContextProps,
|
|
28
31
|
TRPCContextState,
|
package/src/shared/types.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { QueryClient } from '@tanstack/react-query';
|
|
2
2
|
import type { CreateTRPCClient } from '@trpc/client';
|
|
3
3
|
import { getUntypedClient, TRPCUntypedClient } from '@trpc/client';
|
|
4
|
-
import type { AnyRouter } from '@trpc/core';
|
|
4
|
+
import type { AnyRouter } from '@trpc/server/unstable-core-do-not-import';
|
|
5
5
|
import { getClientArgs } from '../internals/getClientArgs';
|
|
6
6
|
import type { TRPCQueryUtils } from '../shared';
|
|
7
7
|
|