@trpc/client 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/{TRPCClientError-67aefe1c.js → TRPCClientError-1cb79dee.js} +3 -3
- package/dist/{TRPCClientError-3414c3d5.mjs → TRPCClientError-5bb04387.mjs} +1 -1
- package/dist/{TRPCClientError-27d80214.js → TRPCClientError-687cd762.js} +1 -1
- package/dist/TRPCClientError.d.ts +2 -2
- package/dist/TRPCClientError.d.ts.map +1 -1
- package/dist/bundle-analysis.json +296 -0
- package/dist/createTRPCClient.d.ts +2 -1
- package/dist/createTRPCClient.d.ts.map +1 -1
- package/dist/createTRPCUntypedClient.d.ts +1 -1
- package/dist/createTRPCUntypedClient.d.ts.map +1 -1
- package/dist/{httpBatchLink-c5101526.mjs → httpBatchLink-6d8cf0b0.mjs} +4 -3
- package/dist/{httpBatchLink-1de0fe31.js → httpBatchLink-a5c42218.js} +4 -3
- package/dist/{httpBatchLink-63113d09.js → httpBatchLink-fb556922.js} +6 -5
- package/dist/{httpUtils-60af4c3d.js → httpUtils-1b546ac3.js} +1 -1
- package/dist/{httpUtils-82ae6a64.mjs → httpUtils-83ed44b5.mjs} +1 -1
- package/dist/{httpUtils-49fa3edc.js → httpUtils-fc0558ee.js} +1 -1
- package/dist/index.js +10 -9
- package/dist/index.mjs +10 -9
- package/dist/internals/TRPCUntypedClient.d.ts +3 -1
- package/dist/internals/TRPCUntypedClient.d.ts.map +1 -1
- package/dist/internals/getAbortController.d.ts +1 -1
- package/dist/internals/getAbortController.d.ts.map +1 -1
- package/dist/links/httpBatchLink.d.ts +1 -1
- package/dist/links/httpBatchLink.d.ts.map +1 -1
- package/dist/links/httpBatchLink.js +5 -4
- package/dist/links/httpBatchLink.mjs +5 -4
- package/dist/links/httpBatchStreamLink.d.ts +1 -1
- package/dist/links/httpBatchStreamLink.d.ts.map +1 -1
- package/dist/links/httpFormDataLink.d.ts +1 -1
- package/dist/links/httpFormDataLink.d.ts.map +1 -1
- package/dist/links/httpLink.d.ts +1 -1
- package/dist/links/httpLink.d.ts.map +1 -1
- package/dist/links/httpLink.js +6 -5
- package/dist/links/httpLink.mjs +4 -3
- package/dist/links/internals/createChain.d.ts +1 -1
- package/dist/links/internals/createChain.d.ts.map +1 -1
- package/dist/links/internals/createHTTPBatchLink.d.ts +1 -1
- package/dist/links/internals/createHTTPBatchLink.d.ts.map +1 -1
- package/dist/links/internals/dedupeLink.d.ts +1 -1
- package/dist/links/internals/dedupeLink.d.ts.map +1 -1
- package/dist/links/internals/httpUtils.d.ts +1 -1
- package/dist/links/internals/httpUtils.d.ts.map +1 -1
- package/dist/links/internals/retryLink.d.ts +1 -1
- package/dist/links/internals/retryLink.d.ts.map +1 -1
- package/dist/links/loggerLink.d.ts +1 -1
- package/dist/links/loggerLink.d.ts.map +1 -1
- package/dist/links/loggerLink.js +3 -3
- package/dist/links/loggerLink.mjs +1 -1
- package/dist/links/splitLink.d.ts +1 -1
- package/dist/links/splitLink.d.ts.map +1 -1
- package/dist/links/splitLink.js +2 -2
- package/dist/links/splitLink.mjs +2 -2
- package/dist/links/types.d.ts +2 -1
- package/dist/links/types.d.ts.map +1 -1
- package/dist/links/wsLink.d.ts +2 -1
- package/dist/links/wsLink.d.ts.map +1 -1
- package/dist/links/wsLink.js +5 -4
- package/dist/links/wsLink.mjs +3 -2
- package/dist/{splitLink-7dca81ef.js → splitLink-0df96fdc.js} +1 -1
- package/dist/{splitLink-47716d78.mjs → splitLink-4c75f7be.mjs} +1 -1
- package/dist/{splitLink-f52aa788.js → splitLink-f29e84be.js} +3 -3
- package/package.json +23 -52
- package/src/TRPCClientError.ts +2 -2
- package/src/createTRPCClient.ts +6 -3
- package/src/createTRPCUntypedClient.ts +1 -1
- package/src/internals/TRPCUntypedClient.ts +8 -5
- package/src/internals/getAbortController.ts +1 -1
- package/src/links/httpLink.ts +3 -2
- package/src/links/internals/createChain.ts +2 -2
- package/src/links/internals/createHTTPBatchLink.ts +6 -2
- package/src/links/internals/dedupeLink.ts +3 -2
- package/src/links/internals/httpUtils.ts +4 -1
- package/src/links/internals/parseJSONStream.ts +1 -1
- package/src/links/internals/retryLink.ts +3 -2
- package/src/links/loggerLink.ts +2 -2
- package/src/links/splitLink.ts +2 -2
- package/src/links/types.ts +2 -3
- package/src/links/wsLink.ts +4 -4
package/src/links/loggerLink.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
// Using triple-slash directive makes sure that it will be available,
|
|
6
6
|
// even if end-user `tsconfig.json` omits it in the `lib` array.
|
|
7
7
|
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
8
|
+
import { observable, tap } from '@trpc/server/observable';
|
|
9
|
+
import type { AnyRouter } from '@trpc/server/unstable-core-do-not-import';
|
|
10
10
|
import type { TRPCClientError } from '../TRPCClientError';
|
|
11
11
|
import type { Operation, OperationResultEnvelope, TRPCLink } from './types';
|
|
12
12
|
|
package/src/links/splitLink.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { observable } from '@trpc/server/observable';
|
|
2
|
+
import type { AnyRouter } from '@trpc/server/unstable-core-do-not-import';
|
|
3
3
|
import { createChain } from './internals/createChain';
|
|
4
4
|
import type { Operation, TRPCLink } from './types';
|
|
5
5
|
|
package/src/links/types.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
+
import type { Observable, Observer } from '@trpc/server/observable';
|
|
1
2
|
import type {
|
|
2
3
|
AnyRouter,
|
|
3
4
|
CombinedDataTransformer,
|
|
4
5
|
DataTransformer,
|
|
5
|
-
Observable,
|
|
6
|
-
Observer,
|
|
7
6
|
TRPCResultMessage,
|
|
8
7
|
TRPCSuccessResponse,
|
|
9
|
-
} from '@trpc/core';
|
|
8
|
+
} from '@trpc/server/unstable-core-do-not-import';
|
|
10
9
|
import type { ResponseEsque } from '../internals/types';
|
|
11
10
|
import type { TRPCClientError } from '../TRPCClientError';
|
|
12
11
|
|
package/src/links/wsLink.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
+
import type { Observer, UnsubscribeFn } from '@trpc/server/observable';
|
|
2
|
+
import { observable } from '@trpc/server/observable';
|
|
1
3
|
import type {
|
|
2
4
|
AnyRouter,
|
|
3
5
|
inferRouterError,
|
|
4
6
|
MaybePromise,
|
|
5
|
-
Observer,
|
|
6
7
|
ProcedureType,
|
|
7
8
|
TRPCClientIncomingMessage,
|
|
8
9
|
TRPCClientIncomingRequest,
|
|
9
10
|
TRPCClientOutgoingMessage,
|
|
10
11
|
TRPCRequestMessage,
|
|
11
12
|
TRPCResponseMessage,
|
|
12
|
-
|
|
13
|
-
} from '@trpc/core';
|
|
14
|
-
import { observable, transformResult } from '@trpc/core';
|
|
13
|
+
} from '@trpc/server/unstable-core-do-not-import';
|
|
14
|
+
import { transformResult } from '@trpc/server/unstable-core-do-not-import';
|
|
15
15
|
import { TRPCClientError } from '../TRPCClientError';
|
|
16
16
|
import type { Operation, TRPCLink } from './types';
|
|
17
17
|
|