@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.
Files changed (78) hide show
  1. package/dist/{TRPCClientError-67aefe1c.js → TRPCClientError-1cb79dee.js} +3 -3
  2. package/dist/{TRPCClientError-3414c3d5.mjs → TRPCClientError-5bb04387.mjs} +1 -1
  3. package/dist/{TRPCClientError-27d80214.js → TRPCClientError-687cd762.js} +1 -1
  4. package/dist/TRPCClientError.d.ts +2 -2
  5. package/dist/TRPCClientError.d.ts.map +1 -1
  6. package/dist/bundle-analysis.json +296 -0
  7. package/dist/createTRPCClient.d.ts +2 -1
  8. package/dist/createTRPCClient.d.ts.map +1 -1
  9. package/dist/createTRPCUntypedClient.d.ts +1 -1
  10. package/dist/createTRPCUntypedClient.d.ts.map +1 -1
  11. package/dist/{httpBatchLink-c5101526.mjs → httpBatchLink-6d8cf0b0.mjs} +4 -3
  12. package/dist/{httpBatchLink-1de0fe31.js → httpBatchLink-a5c42218.js} +4 -3
  13. package/dist/{httpBatchLink-63113d09.js → httpBatchLink-fb556922.js} +6 -5
  14. package/dist/{httpUtils-60af4c3d.js → httpUtils-1b546ac3.js} +1 -1
  15. package/dist/{httpUtils-82ae6a64.mjs → httpUtils-83ed44b5.mjs} +1 -1
  16. package/dist/{httpUtils-49fa3edc.js → httpUtils-fc0558ee.js} +1 -1
  17. package/dist/index.js +10 -9
  18. package/dist/index.mjs +10 -9
  19. package/dist/internals/TRPCUntypedClient.d.ts +3 -1
  20. package/dist/internals/TRPCUntypedClient.d.ts.map +1 -1
  21. package/dist/internals/getAbortController.d.ts +1 -1
  22. package/dist/internals/getAbortController.d.ts.map +1 -1
  23. package/dist/links/httpBatchLink.d.ts +1 -1
  24. package/dist/links/httpBatchLink.d.ts.map +1 -1
  25. package/dist/links/httpBatchLink.js +5 -4
  26. package/dist/links/httpBatchLink.mjs +5 -4
  27. package/dist/links/httpBatchStreamLink.d.ts +1 -1
  28. package/dist/links/httpBatchStreamLink.d.ts.map +1 -1
  29. package/dist/links/httpFormDataLink.d.ts +1 -1
  30. package/dist/links/httpFormDataLink.d.ts.map +1 -1
  31. package/dist/links/httpLink.d.ts +1 -1
  32. package/dist/links/httpLink.d.ts.map +1 -1
  33. package/dist/links/httpLink.js +6 -5
  34. package/dist/links/httpLink.mjs +4 -3
  35. package/dist/links/internals/createChain.d.ts +1 -1
  36. package/dist/links/internals/createChain.d.ts.map +1 -1
  37. package/dist/links/internals/createHTTPBatchLink.d.ts +1 -1
  38. package/dist/links/internals/createHTTPBatchLink.d.ts.map +1 -1
  39. package/dist/links/internals/dedupeLink.d.ts +1 -1
  40. package/dist/links/internals/dedupeLink.d.ts.map +1 -1
  41. package/dist/links/internals/httpUtils.d.ts +1 -1
  42. package/dist/links/internals/httpUtils.d.ts.map +1 -1
  43. package/dist/links/internals/retryLink.d.ts +1 -1
  44. package/dist/links/internals/retryLink.d.ts.map +1 -1
  45. package/dist/links/loggerLink.d.ts +1 -1
  46. package/dist/links/loggerLink.d.ts.map +1 -1
  47. package/dist/links/loggerLink.js +3 -3
  48. package/dist/links/loggerLink.mjs +1 -1
  49. package/dist/links/splitLink.d.ts +1 -1
  50. package/dist/links/splitLink.d.ts.map +1 -1
  51. package/dist/links/splitLink.js +2 -2
  52. package/dist/links/splitLink.mjs +2 -2
  53. package/dist/links/types.d.ts +2 -1
  54. package/dist/links/types.d.ts.map +1 -1
  55. package/dist/links/wsLink.d.ts +2 -1
  56. package/dist/links/wsLink.d.ts.map +1 -1
  57. package/dist/links/wsLink.js +5 -4
  58. package/dist/links/wsLink.mjs +3 -2
  59. package/dist/{splitLink-7dca81ef.js → splitLink-0df96fdc.js} +1 -1
  60. package/dist/{splitLink-47716d78.mjs → splitLink-4c75f7be.mjs} +1 -1
  61. package/dist/{splitLink-f52aa788.js → splitLink-f29e84be.js} +3 -3
  62. package/package.json +23 -52
  63. package/src/TRPCClientError.ts +2 -2
  64. package/src/createTRPCClient.ts +6 -3
  65. package/src/createTRPCUntypedClient.ts +1 -1
  66. package/src/internals/TRPCUntypedClient.ts +8 -5
  67. package/src/internals/getAbortController.ts +1 -1
  68. package/src/links/httpLink.ts +3 -2
  69. package/src/links/internals/createChain.ts +2 -2
  70. package/src/links/internals/createHTTPBatchLink.ts +6 -2
  71. package/src/links/internals/dedupeLink.ts +3 -2
  72. package/src/links/internals/httpUtils.ts +4 -1
  73. package/src/links/internals/parseJSONStream.ts +1 -1
  74. package/src/links/internals/retryLink.ts +3 -2
  75. package/src/links/loggerLink.ts +2 -2
  76. package/src/links/splitLink.ts +2 -2
  77. package/src/links/types.ts +2 -3
  78. package/src/links/wsLink.ts +4 -4
@@ -1 +1 @@
1
- {"version":3,"file":"httpFormDataLink.d.ts","sourceRoot":"","sources":["../../src/links/httpFormDataLink.ts"],"names":[],"mappings":"AA0BA,eAAO,MAAM,yBAAyB,qIAEpC,CAAC"}
1
+ {"version":3,"file":"httpFormDataLink.d.ts","sourceRoot":"","sources":["../../src/links/httpFormDataLink.ts"],"names":[],"mappings":"AA0BA,eAAO,MAAM,yBAAyB,mKAEpC,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 { HTTPLinkBaseOptions, Requester } from './internals/httpUtils';
3
3
  import type { HTTPHeaders, Operation, TRPCLink } from './types';
4
4
  export interface HTTPLinkOptions extends HTTPLinkBaseOptions {
@@ -1 +1 @@
1
- {"version":3,"file":"httpLink.d.ts","sourceRoot":"","sources":["../../src/links/httpLink.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAG5C,OAAO,KAAK,EACV,mBAAmB,EAEnB,SAAS,EACV,MAAM,uBAAuB,CAAC;AAK/B,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEhE,MAAM,WAAW,eAAgB,SAAQ,mBAAmB;IAC1D;;;OAGG;IACH,OAAO,CAAC,EACJ,WAAW,GACX,CAAC,CAAC,IAAI,EAAE;QAAE,EAAE,EAAE,SAAS,CAAA;KAAE,KAAK,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC;CACvE;AAED,wBAAgB,eAAe,CAAC,WAAW,EAAE;IAAE,SAAS,EAAE,SAAS,CAAA;CAAE,qCAE3D,eAAe,uBA0DxB;AAED;;GAEG;AACH,eAAO,MAAM,QAAQ,oCA/DX,eAAe,sBA+DgD,CAAC"}
1
+ {"version":3,"file":"httpLink.d.ts","sourceRoot":"","sources":["../../src/links/httpLink.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AAG1E,OAAO,KAAK,EACV,mBAAmB,EAEnB,SAAS,EACV,MAAM,uBAAuB,CAAC;AAK/B,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEhE,MAAM,WAAW,eAAgB,SAAQ,mBAAmB;IAC1D;;;OAGG;IACH,OAAO,CAAC,EACJ,WAAW,GACX,CAAC,CAAC,IAAI,EAAE;QAAE,EAAE,EAAE,SAAS,CAAA;KAAE,KAAK,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC;CACvE;AAED,wBAAgB,eAAe,CAAC,WAAW,EAAE;IAAE,SAAS,EAAE,SAAS,CAAA;CAAE,qCAE3D,eAAe,uBA0DxB;AAED;;GAEG;AACH,eAAO,MAAM,QAAQ,oCA/DX,eAAe,sBA+DgD,CAAC"}
@@ -2,14 +2,15 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var core = require('@trpc/core');
6
- var TRPCClientError = require('../TRPCClientError-67aefe1c.js');
7
- var httpUtils = require('../httpUtils-60af4c3d.js');
5
+ var observable = require('@trpc/server/observable');
6
+ var unstableCoreDoNotImport = require('@trpc/server/unstable-core-do-not-import');
7
+ var TRPCClientError = require('../TRPCClientError-1cb79dee.js');
8
+ var httpUtils = require('../httpUtils-1b546ac3.js');
8
9
 
9
10
  function httpLinkFactory(factoryOpts) {
10
11
  return (opts)=>{
11
12
  const resolvedOpts = httpUtils.resolveHTTPLinkOptions(opts);
12
- return (runtime)=>({ op })=>core.observable((observer)=>{
13
+ return (runtime)=>({ op })=>observable.observable((observer)=>{
13
14
  const { path , input , type } = op;
14
15
  const { promise , cancel } = factoryOpts.requester({
15
16
  ...resolvedOpts,
@@ -32,7 +33,7 @@ function httpLinkFactory(factoryOpts) {
32
33
  let meta = undefined;
33
34
  promise.then((res)=>{
34
35
  meta = res.meta;
35
- const transformed = core.transformResult(res.json, runtime.transformer);
36
+ const transformed = unstableCoreDoNotImport.transformResult(res.json, runtime.transformer);
36
37
  if (!transformed.ok) {
37
38
  observer.error(TRPCClientError.TRPCClientError.from(transformed.error, {
38
39
  meta
@@ -1,6 +1,7 @@
1
- import { observable, transformResult } from '@trpc/core';
2
- import { T as TRPCClientError } from '../TRPCClientError-3414c3d5.mjs';
3
- import { r as resolveHTTPLinkOptions, j as jsonHttpRequester } from '../httpUtils-82ae6a64.mjs';
1
+ import { observable } from '@trpc/server/observable';
2
+ import { transformResult } from '@trpc/server/unstable-core-do-not-import';
3
+ import { T as TRPCClientError } from '../TRPCClientError-5bb04387.mjs';
4
+ import { r as resolveHTTPLinkOptions, j as jsonHttpRequester } from '../httpUtils-83ed44b5.mjs';
4
5
 
5
6
  function httpLinkFactory(factoryOpts) {
6
7
  return (opts)=>{
@@ -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 { Operation, OperationLink, OperationResultObservable } from '../types';
3
3
  /** @internal */
4
4
  export declare function createChain<TRouter extends AnyRouter, TInput = unknown, TOutput = unknown>(opts: {
@@ -1 +1 @@
1
- {"version":3,"file":"createChain.d.ts","sourceRoot":"","sources":["../../../src/links/internals/createChain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,KAAK,EACV,SAAS,EACT,aAAa,EACb,yBAAyB,EAC1B,MAAM,UAAU,CAAC;AAElB,gBAAgB;AAChB,wBAAgB,WAAW,CACzB,OAAO,SAAS,SAAS,EACzB,MAAM,GAAG,OAAO,EAChB,OAAO,GAAG,OAAO,EACjB,IAAI,EAAE;IACN,KAAK,EAAE,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;IACjD,EAAE,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;CACvB,GAAG,yBAAyB,CAAC,OAAO,EAAE,OAAO,CAAC,CAuB9C"}
1
+ {"version":3,"file":"createChain.d.ts","sourceRoot":"","sources":["../../../src/links/internals/createChain.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AAC1E,OAAO,KAAK,EACV,SAAS,EACT,aAAa,EACb,yBAAyB,EAC1B,MAAM,UAAU,CAAC;AAElB,gBAAgB;AAChB,wBAAgB,WAAW,CACzB,OAAO,SAAS,SAAS,EACzB,MAAM,GAAG,OAAO,EAChB,OAAO,GAAG,OAAO,EACjB,IAAI,EAAE;IACN,KAAK,EAAE,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;IACjD,EAAE,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;CACvB,GAAG,yBAAyB,CAAC,OAAO,EAAE,OAAO,CAAC,CAuB9C"}
@@ -1,4 +1,4 @@
1
- import type { AnyRouter, ProcedureType } from '@trpc/core';
1
+ import type { AnyRouter, ProcedureType } from '@trpc/server/unstable-core-do-not-import';
2
2
  import type { HTTPBatchLinkOptions } from '../HTTPBatchLinkOptions';
3
3
  import type { CancelFn, Operation, TRPCClientRuntime, TRPCLink } from '../types';
4
4
  import type { HTTPResult, ResolvedHTTPLinkOptions } from './httpUtils';
@@ -1 +1 @@
1
- {"version":3,"file":"createHTTPBatchLink.d.ts","sourceRoot":"","sources":["../../../src/links/internals/createHTTPBatchLink.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAI3D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,KAAK,EACV,QAAQ,EACR,SAAS,EACT,iBAAiB,EACjB,QAAQ,EACT,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAAE,UAAU,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAGvE;;GAEG;AACH,MAAM,MAAM,WAAW,CAAC,QAAQ,SAAS,oBAAoB,IAAI,CAC/D,aAAa,EAAE,uBAAuB,GAAG;IACvC,OAAO,EAAE,iBAAiB,CAAC;IAC3B,IAAI,EAAE,aAAa,CAAC;IACpB,IAAI,EAAE,QAAQ,CAAC;CAChB,KACE,CACH,QAAQ,EAAE,SAAS,EAAE,EACrB,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,CAAC,UAAU,CAAC,KAAK,IAAI,KAClE;IACH,OAAO,EAAE,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC;IAC/B,MAAM,EAAE,QAAQ,CAAC;CAClB,CAAC;AAEF;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,SAAS,oBAAoB,EACvE,SAAS,EAAE,WAAW,CAAC,QAAQ,CAAC,qCAGxB,QAAQ,uBAyFjB"}
1
+ {"version":3,"file":"createHTTPBatchLink.d.ts","sourceRoot":"","sources":["../../../src/links/internals/createHTTPBatchLink.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,SAAS,EACT,aAAa,EACd,MAAM,0CAA0C,CAAC;AAIlD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,KAAK,EACV,QAAQ,EACR,SAAS,EACT,iBAAiB,EACjB,QAAQ,EACT,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAAE,UAAU,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAGvE;;GAEG;AACH,MAAM,MAAM,WAAW,CAAC,QAAQ,SAAS,oBAAoB,IAAI,CAC/D,aAAa,EAAE,uBAAuB,GAAG;IACvC,OAAO,EAAE,iBAAiB,CAAC;IAC3B,IAAI,EAAE,aAAa,CAAC;IACpB,IAAI,EAAE,QAAQ,CAAC;CAChB,KACE,CACH,QAAQ,EAAE,SAAS,EAAE,EACrB,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,CAAC,UAAU,CAAC,KAAK,IAAI,KAClE;IACH,OAAO,EAAE,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC;IAC/B,MAAM,EAAE,QAAQ,CAAC;CAClB,CAAC;AAEF;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,SAAS,oBAAoB,EACvE,SAAS,EAAE,WAAW,CAAC,QAAQ,CAAC,qCAGxB,QAAQ,uBAyFjB"}
@@ -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 { TRPCLink } from '../types';
3
3
  /**
4
4
  * @internal used for testing
@@ -1 +1 @@
1
- {"version":3,"file":"dedupeLink.d.ts","sourceRoot":"","sources":["../../../src/links/internals/dedupeLink.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAc,MAAM,YAAY,CAAC;AAExD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzC;;GAEG;AACH,wBAAgB,UAAU,CACxB,OAAO,SAAS,SAAS,GAAG,SAAS,KAClC,QAAQ,CAAC,OAAO,CAAC,CA2CrB"}
1
+ {"version":3,"file":"dedupeLink.d.ts","sourceRoot":"","sources":["../../../src/links/internals/dedupeLink.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AAC1E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzC;;GAEG;AACH,wBAAgB,UAAU,CACxB,OAAO,SAAS,SAAS,GAAG,SAAS,KAClC,QAAQ,CAAC,OAAO,CAAC,CA2CrB"}
@@ -1,4 +1,4 @@
1
- import type { ProcedureType, TRPCResponse } from '@trpc/core';
1
+ import type { ProcedureType, TRPCResponse } from '@trpc/server/unstable-core-do-not-import';
2
2
  import type { AbortControllerEsque, AbortControllerInstanceEsque, FetchEsque, RequestInitEsque, ResponseEsque } from '../../internals/types';
3
3
  import type { TextDecoderEsque } from '../internals/streamingUtils';
4
4
  import type { HTTPHeaders, PromiseAndCancel, TRPCClientRuntime } from '../types';
@@ -1 +1 @@
1
- {"version":3,"file":"httpUtils.d.ts","sourceRoot":"","sources":["../../../src/links/internals/httpUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAG9D,OAAO,KAAK,EACV,oBAAoB,EACpB,4BAA4B,EAC5B,UAAU,EACV,gBAAgB,EAChB,aAAa,EACd,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,KAAK,EACV,WAAW,EACX,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,UAAU,CAAC;AAElB;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;IAClB;;OAEG;IACH,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB;;OAEG;IACH,eAAe,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;CAC/C;AAED,MAAM,WAAW,uBAAuB;IACtC,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,CAAC;IAClD,WAAW,CAAC,EAAE,gBAAgB,CAAC;CAChC,CAAC;AAEJ,wBAAsB,iBAAiB,CACrC,IAAI,EAAE,kBAAkB,EACxB,EAAE,CAAC,EAAE,4BAA4B,GAAG,IAAI,0BAgCzC;AAED,wBAAgB,WAAW,CACzB,IAAI,EAAE,kBAAkB,GACvB,gBAAgB,CAAC,UAAU,CAAC,CA8B9B"}
@@ -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 { TRPCLink } from '../types';
3
3
  /**
4
4
  * @internal used for testing
@@ -1 +1 @@
1
- {"version":3,"file":"retryLink.d.ts","sourceRoot":"","sources":["../../../src/links/internals/retryLink.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAkB,MAAM,YAAY,CAAC;AAE5D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzC;;GAEG;AACH,wBAAgB,SAAS,CAAC,OAAO,SAAS,SAAS,GAAG,SAAS,EAAE,IAAI,EAAE;IACrE,QAAQ,EAAE,MAAM,CAAC;CAClB,GAAG,QAAQ,CAAC,OAAO,CAAC,CAwCpB"}
1
+ {"version":3,"file":"retryLink.d.ts","sourceRoot":"","sources":["../../../src/links/internals/retryLink.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AAC1E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzC;;GAEG;AACH,wBAAgB,SAAS,CAAC,OAAO,SAAS,SAAS,GAAG,SAAS,EAAE,IAAI,EAAE;IACrE,QAAQ,EAAE,MAAM,CAAC;CAClB,GAAG,QAAQ,CAAC,OAAO,CAAC,CAwCpB"}
@@ -1,5 +1,5 @@
1
1
  /// <reference lib="dom.iterable" />
2
- import type { AnyRouter } from '@trpc/core';
2
+ import type { AnyRouter } from '@trpc/server/unstable-core-do-not-import';
3
3
  import type { TRPCClientError } from '../TRPCClientError';
4
4
  import type { Operation, OperationResultEnvelope, TRPCLink } from './types';
5
5
  type ConsoleEsque = {
@@ -1 +1 @@
1
- {"version":3,"file":"loggerLink.d.ts","sourceRoot":"","sources":["../../src/links/loggerLink.ts"],"names":[],"mappings":";AAOA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,uBAAuB,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAE5E,KAAK,YAAY,GAAG;IAClB,GAAG,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;IAC9B,KAAK,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;CACjC,CAAC;AAEF,KAAK,eAAe,CAAC,OAAO,SAAS,SAAS,IAC1C;IACE,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,uBAAuB,CAAC,OAAO,CAAC,GAAG,eAAe,CAAC,OAAO,CAAC,CAAC;CACrE,GACD,CAAC,SAAS,GAAG;IACX,SAAS,EAAE,IAAI,CAAC;CACjB,CAAC,CAAC;AACP,KAAK,SAAS,CAAC,OAAO,SAAS,SAAS,IAAI,CAC1C,IAAI,EAAE,eAAe,CAAC,OAAO,CAAC,KAC3B,OAAO,CAAC;AAEb,KAAK,mBAAmB,CAAC,OAAO,SAAS,SAAS,IAAI,SAAS,GAC7D,CACI;IACE;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,uBAAuB,CAAC,OAAO,CAAC,GAAG,eAAe,CAAC,OAAO,CAAC,CAAC;IACpE,SAAS,EAAE,MAAM,CAAC;CACnB,GACD;IACE;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;CACjB,CACJ,CAAC;AAEJ,KAAK,YAAY,C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,SAAS,CAAC,OAAO,SAAS,SAAS,IAAI,CAC1C,IAAI,EAAE,eAAe,CAAC,OAAO,CAAC,KAC3B,OAAO,CAAC;AAEb,KAAK,mBAAmB,CAAC,OAAO,SAAS,SAAS,IAAI,SAAS,GAC7D,CACI;IACE;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,uBAAuB,CAAC,OAAO,CAAC,GAAG,eAAe,CAAC,OAAO,CAAC,CAAC;IACpE,SAAS,EAAE,MAAM,CAAC;CACnB,GACD;IACE;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;CACjB,CACJ,CAAC;AAEJ,KAAK,YAAY,CAAC,OAAO,SAAS,SAAS,IAAI,CAC7C,IAAI,EAAE,mBAAmB,CAAC,OAAO,CAAC,KAC/B,IAAI,CAAC;AAEV,MAAM,WAAW,iBAAiB,CAAC,OAAO,SAAS,SAAS;IAC1D,MAAM,CAAC,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;IAC/B,OAAO,CAAC,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC;IAC7B;;OAEG;IACH,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;CAC5B;AAsID;;GAEG;AACH,wBAAgB,UAAU,CAAC,OAAO,SAAS,SAAS,GAAG,SAAS,EAC9D,IAAI,GAAE,iBAAiB,CAAC,OAAO,CAAM,GACpC,QAAQ,CAAC,OAAO,CAAC,CA6CnB"}
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var core = require('@trpc/core');
5
+ var observable = require('@trpc/server/observable');
6
6
 
7
7
  /// <reference lib="dom.iterable" />
8
8
  function isFormData(value) {
@@ -138,7 +138,7 @@ const defaultLogger = ({ c =console , colorMode ='css' })=>(props)=>{
138
138
  }) } = opts;
139
139
  return ()=>{
140
140
  return ({ op , next })=>{
141
- return core.observable((observer)=>{
141
+ return observable.observable((observer)=>{
142
142
  // ->
143
143
  enabled({
144
144
  ...op,
@@ -161,7 +161,7 @@ const defaultLogger = ({ c =console , colorMode ='css' })=>(props)=>{
161
161
  result
162
162
  });
163
163
  }
164
- return next(op).pipe(core.tap({
164
+ return next(op).pipe(observable.tap({
165
165
  next (result) {
166
166
  logResult(result);
167
167
  },
@@ -1,4 +1,4 @@
1
- import { observable, tap } from '@trpc/core';
1
+ import { observable, tap } from '@trpc/server/observable';
2
2
 
3
3
  /// <reference lib="dom.iterable" />
4
4
  function isFormData(value) {
@@ -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 { Operation, TRPCLink } from './types';
3
3
  export declare function splitLink<TRouter extends AnyRouter = AnyRouter>(opts: {
4
4
  condition: (op: Operation) => boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"splitLink.d.ts","sourceRoot":"","sources":["../../src/links/splitLink.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAG5C,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAKnD,wBAAgB,SAAS,CAAC,OAAO,SAAS,SAAS,GAAG,SAAS,EAAE,IAAI,EAAE;IACrE,SAAS,EAAE,CAAC,EAAE,EAAE,SAAS,KAAK,OAAO,CAAC;IACtC;;OAEG;IACH,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;IAC9C;;OAEG;IACH,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;CAChD,GAAG,QAAQ,CAAC,OAAO,CAAC,CAWpB"}
1
+ {"version":3,"file":"splitLink.d.ts","sourceRoot":"","sources":["../../src/links/splitLink.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AAE1E,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAKnD,wBAAgB,SAAS,CAAC,OAAO,SAAS,SAAS,GAAG,SAAS,EAAE,IAAI,EAAE;IACrE,SAAS,EAAE,CAAC,EAAE,EAAE,SAAS,KAAK,OAAO,CAAC;IACtC;;OAEG;IACH,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;IAC9C;;OAEG;IACH,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;CAChD,GAAG,QAAQ,CAAC,OAAO,CAAC,CAWpB"}
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('@trpc/core');
6
- var links_splitLink = require('../splitLink-f52aa788.js');
5
+ require('@trpc/server/observable');
6
+ var links_splitLink = require('../splitLink-f29e84be.js');
7
7
 
8
8
 
9
9
 
@@ -1,2 +1,2 @@
1
- import '@trpc/core';
2
- export { s as splitLink } from '../splitLink-47716d78.mjs';
1
+ import '@trpc/server/observable';
2
+ export { s as splitLink } from '../splitLink-4c75f7be.mjs';
@@ -1,4 +1,5 @@
1
- import type { AnyRouter, CombinedDataTransformer, DataTransformer, Observable, Observer, TRPCResultMessage, TRPCSuccessResponse } from '@trpc/core';
1
+ import type { Observable, Observer } from '@trpc/server/observable';
2
+ import type { AnyRouter, CombinedDataTransformer, DataTransformer, TRPCResultMessage, TRPCSuccessResponse } from '@trpc/server/unstable-core-do-not-import';
2
3
  import type { ResponseEsque } from '../internals/types';
3
4
  import type { TRPCClientError } from '../TRPCClientError';
4
5
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/links/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,uB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BAAuB,CAAC,OAAO;IAC9C,MAAM,EACF,iBAAiB,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,GACpC,mBAAmB,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC;IAC3C,OAAO,CAAC,EAAE,gBAAgB,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,MAAM,yBAAyB,CACnC,OAAO,SAAS,SAAS,EACzB,OAAO,IACL,UAAU,CAAC,uBAAuB,CAAC,OAAO,CAAC,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC;AAE3E;;GAEG;AACH,MAAM,MAAM,uBAAuB,CACjC,OAAO,SAAS,SAAS,EACzB,OAAO,IACL,QAAQ,CAAC,uBAAuB,CAAC,OAAO,CAAC,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC;AAEzE;;GAEG;AACH,MAAM,MAAM,aAAa,CACvB,OAAO,SAAS,SAAS,EACzB,MAAM,GAAG,OAAO,EAChB,OAAO,GAAG,OAAO,IACf,CAAC,IAAI,EAAE;IACT,EAAE,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;IACtB,IAAI,EAAE,CAAC,EAAE,EAAE,SAAS,CAAC,MAAM,CAAC,KAAK,yBAAyB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;CAC9E,KAAK,yBAAyB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AAElD;;GAEG;AACH,MAAM,MAAM,QAAQ,CAAC,OAAO,SAAS,SAAS,IAAI,CAChD,IAAI,EAAE,iBAAiB,KACpB,aAAa,CAAC,OAAO,CAAC,CAAC"}
@@ -1,4 +1,5 @@
1
- import type { AnyRouter, inferRouterError, MaybePromise, Observer, TRPCResponseMessage, UnsubscribeFn } from '@trpc/core';
1
+ import type { Observer, UnsubscribeFn } from '@trpc/server/observable';
2
+ import type { AnyRouter, inferRouterError, MaybePromise, TRPCResponseMessage } from '@trpc/server/unstable-core-do-not-import';
2
3
  import { TRPCClientError } from '../TRPCClientError';
3
4
  import type { Operation, TRPCLink } from './types';
4
5
  type WSCallbackResult<TRouter extends AnyRouter, TOutput> = TRPCResponseMessage<TOutput, inferRouterError<TRouter>>;
@@ -1 +1 @@
1
- {"version":3,"file":"wsLink.d.ts","sourceRoot":"","sources":["../../src/links/wsLink.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,gBAAgB,EAChB,YAAY,EACZ,QAAQ,EAMR,mBAAmB,EACnB,aAAa,EACd,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAInD,KAAK,gBAAgB,CAAC,OAAO,SAAS,SAAS,EAAE,OAAO,IAAI,mBAAmB,CAC7E,OAAO,EACP,gBAAgB,CAAC,OAAO,CAAC,CAC1B,CAAC;AAEF,KAAK,kBAAkB,CAAC,OAAO,SAAS,SAAS,EAAE,OAAO,IAAI,QAAQ,CACpE,gBAAgB,CAAC,OAAO,EAAE,OAAO,CAAC,EAClC,eAAe,CAAC,OAAO,CAAC,CACzB,CAAC;AAEF,QAAA,MAAM,kBAAkB,iBAAkB,MAAM,WACoB,CAAC;AAErE,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,GAAG,EAAE,MAAM,GAAG,CAAC,MAAM,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC;IAC3C;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,SAAS,CAAC;IAC7B;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,kBAAkB,CAAC;IACzC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IAC9C;;OAEG;IACH,IAAI,CAAC,EAAE;QACL;;;WAGG;QACH,OAA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;IACrC;;OAEG;IACH,GAAG,EAAE,MAAM,GAAG,CAAC,MAAM,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC;IAC3C;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,SAAS,CAAC;IAC7B;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,kBAAkB,CAAC;IACzC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IAC9C;;OAEG;IACH,IAAI,CAAC,EAAE;QACL;;;WAGG;QACH,OAAO,EAAE,OAAO,CAAC;QACjB;;;WAGG;QACH,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;CACH;AAOD,wBAAgB,cAAc,CAAC,IAAI,EAAE,sBAAsB;;kBAgSpC,SAAS,wDAA0B,aAAa;;YAhP/D,MAAM;;eAGC,MAAM;YACT,SAAS;;eAGN,QAAQ;YACX,SAAS;;eAGN,YAAY;;;EAqS1B;AACD,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAEpE,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,mBAAmB,CAAC;CAC7B;AASD;;GAEG;AACH,wBAAgB,MAAM,CAAC,OAAO,SAAS,SAAS,EAC9C,IAAI,EAAE,oBAAoB,GACzB,QAAQ,CAAC,OAAO,CAAC,CA6CnB"}
@@ -2,8 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var core = require('@trpc/core');
6
- var TRPCClientError = require('../TRPCClientError-67aefe1c.js');
5
+ var observable = require('@trpc/server/observable');
6
+ var unstableCoreDoNotImport = require('@trpc/server/unstable-core-do-not-import');
7
+ var TRPCClientError = require('../TRPCClientError-1cb79dee.js');
7
8
 
8
9
  const run = (fn)=>fn();
9
10
  const exponentialBackoff = (attemptIndex)=>attemptIndex === 0 ? 0 : Math.min(1000 * 2 ** attemptIndex, 30000);
@@ -291,7 +292,7 @@ class TRPCWebSocketClosedError extends Error {
291
292
  return (runtime)=>{
292
293
  const { client } = opts;
293
294
  return ({ op })=>{
294
- return core.observable((observer)=>{
295
+ return observable.observable((observer)=>{
295
296
  const { type , path , id , context } = op;
296
297
  const input = runtime.transformer.serialize(op.input);
297
298
  const unsub = client.request({
@@ -309,7 +310,7 @@ class TRPCWebSocketClosedError extends Error {
309
310
  observer.complete();
310
311
  },
311
312
  next (message) {
312
- const transformed = core.transformResult(message, runtime.transformer);
313
+ const transformed = unstableCoreDoNotImport.transformResult(message, runtime.transformer);
313
314
  if (!transformed.ok) {
314
315
  observer.error(TRPCClientError.TRPCClientError.from(transformed.error));
315
316
  return;
@@ -1,5 +1,6 @@
1
- import { observable, transformResult } from '@trpc/core';
2
- import { T as TRPCClientError } from '../TRPCClientError-3414c3d5.mjs';
1
+ import { observable } from '@trpc/server/observable';
2
+ import { transformResult } from '@trpc/server/unstable-core-do-not-import';
3
+ import { T as TRPCClientError } from '../TRPCClientError-5bb04387.mjs';
3
4
 
4
5
  const run = (fn)=>fn();
5
6
  const exponentialBackoff = (attemptIndex)=>attemptIndex === 0 ? 0 : Math.min(1000 * 2 ** attemptIndex, 30000);
@@ -1,4 +1,4 @@
1
- import { observable } from '@trpc/core';
1
+ import { observable } from '@trpc/server/observable';
2
2
 
3
3
  /** @internal */
4
4
  function createChain(opts) {
@@ -1,4 +1,4 @@
1
- import { observable } from '@trpc/core';
1
+ import { observable } from '@trpc/server/observable';
2
2
 
3
3
  /** @internal */ function createChain(opts) {
4
4
  return observable((observer)=>{
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var core = require('@trpc/core');
3
+ var observable = require('@trpc/server/observable');
4
4
 
5
5
  /** @internal */ function createChain(opts) {
6
- return core.observable((observer)=>{
6
+ return observable.observable((observer)=>{
7
7
  function execute(index = 0, op = opts.op) {
8
8
  const next = opts.links[index];
9
9
  if (!next) {
@@ -33,7 +33,7 @@ function splitLink(opts) {
33
33
  const yes = asArray(opts.true).map((link)=>link(runtime));
34
34
  const no = asArray(opts.false).map((link)=>link(runtime));
35
35
  return (props)=>{
36
- return core.observable((observer)=>{
36
+ return observable.observable((observer)=>{
37
37
  const links = opts.condition(props.op) ? yes : no;
38
38
  return createChain({
39
39
  op: props.op,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trpc/client",
3
- "version": "11.0.0-alpha-tmp-export-from-main.211+de13a9c6f",
3
+ "version": "11.0.0-alpha-tmp-export-from-main-nuke-core.229+14b75f259",
4
4
  "description": "The tRPC client library",
5
5
  "author": "KATT",
6
6
  "license": "MIT",
@@ -31,64 +31,34 @@
31
31
  "exports": {
32
32
  "./package.json": "./package.json",
33
33
  ".": {
34
- "import": {
35
- "types": "./dist/index.d.ts",
36
- "default": "./dist/index.mjs"
37
- },
38
- "require": {
39
- "types": "./dist/index.d.ts",
40
- "default": "./dist/index.js"
41
- }
34
+ "import": "./dist/index.mjs",
35
+ "require": "./dist/index.js",
36
+ "default": "./dist/index.js"
42
37
  },
43
38
  "./links/httpBatchLink": {
44
- "import": {
45
- "types": "./dist/links/httpBatchLink.d.ts",
46
- "default": "./dist/links/httpBatchLink.mjs"
47
- },
48
- "require": {
49
- "types": "./dist/links/httpBatchLink.d.ts",
50
- "default": "./dist/links/httpBatchLink.js"
51
- }
39
+ "import": "./dist/links/httpBatchLink.mjs",
40
+ "require": "./dist/links/httpBatchLink.js",
41
+ "default": "./dist/links/httpBatchLink.js"
52
42
  },
53
43
  "./links/httpLink": {
54
- "import": {
55
- "types": "./dist/links/httpLink.d.ts",
56
- "default": "./dist/links/httpLink.mjs"
57
- },
58
- "require": {
59
- "types": "./dist/links/httpLink.d.ts",
60
- "default": "./dist/links/httpLink.js"
61
- }
44
+ "import": "./dist/links/httpLink.mjs",
45
+ "require": "./dist/links/httpLink.js",
46
+ "default": "./dist/links/httpLink.js"
62
47
  },
63
48
  "./links/loggerLink": {
64
- "import": {
65
- "types": "./dist/links/loggerLink.d.ts",
66
- "default": "./dist/links/loggerLink.mjs"
67
- },
68
- "require": {
69
- "types": "./dist/links/loggerLink.d.ts",
70
- "default": "./dist/links/loggerLink.js"
71
- }
49
+ "import": "./dist/links/loggerLink.mjs",
50
+ "require": "./dist/links/loggerLink.js",
51
+ "default": "./dist/links/loggerLink.js"
72
52
  },
73
53
  "./links/splitLink": {
74
- "import": {
75
- "types": "./dist/links/splitLink.d.ts",
76
- "default": "./dist/links/splitLink.mjs"
77
- },
78
- "require": {
79
- "types": "./dist/links/splitLink.d.ts",
80
- "default": "./dist/links/splitLink.js"
81
- }
54
+ "import": "./dist/links/splitLink.mjs",
55
+ "require": "./dist/links/splitLink.js",
56
+ "default": "./dist/links/splitLink.js"
82
57
  },
83
58
  "./links/wsLink": {
84
- "import": {
85
- "types": "./dist/links/wsLink.d.ts",
86
- "default": "./dist/links/wsLink.mjs"
87
- },
88
- "require": {
89
- "types": "./dist/links/wsLink.d.ts",
90
- "default": "./dist/links/wsLink.js"
91
- }
59
+ "import": "./dist/links/wsLink.mjs",
60
+ "require": "./dist/links/wsLink.js",
61
+ "default": "./dist/links/wsLink.js"
92
62
  }
93
63
  },
94
64
  "files": [
@@ -99,11 +69,12 @@
99
69
  "links",
100
70
  "!**/*.test.*"
101
71
  ],
102
- "dependencies": {
103
- "@trpc/core": "11.0.0-alpha-tmp-export-from-main.211+de13a9c6f"
72
+ "peerDependencies": {
73
+ "@trpc/server": "11.0.0-alpha-tmp-export-from-main-nuke-core.229+14b75f259"
104
74
  },
105
75
  "devDependencies": {
106
76
  "@testing-library/dom": "^9.0.0",
77
+ "@trpc/server": "11.0.0-alpha-tmp-export-from-main-nuke-core.229+14b75f259",
107
78
  "@types/isomorphic-fetch": "^0.0.39",
108
79
  "@types/node": "^20.10.0",
109
80
  "eslint": "^8.40.0",
@@ -120,5 +91,5 @@
120
91
  "funding": [
121
92
  "https://trpc.io/sponsor"
122
93
  ],
123
- "gitHead": "de13a9c6f5e727386dce61ecf8e698c4901b01a7"
94
+ "gitHead": "14b75f259c0f68905e8f29421796d9ebeb7b7b12"
124
95
  }
@@ -3,12 +3,12 @@ import type {
3
3
  Maybe,
4
4
  TRPCErrorResponse,
5
5
  TRPCInferrable,
6
- } from '@trpc/core';
6
+ } from '@trpc/server/unstable-core-do-not-import';
7
7
  import {
8
8
  getCauseFromUnknown,
9
9
  isObject,
10
10
  type DefaultErrorShape,
11
- } from '@trpc/core';
11
+ } from '@trpc/server/unstable-core-do-not-import';
12
12
 
13
13
  export interface TRPCClientErrorBase<TShape extends DefaultErrorShape> {
14
14
  readonly message: string;
@@ -1,4 +1,5 @@
1
1
  /* eslint-disable @typescript-eslint/no-non-null-assertion */
2
+ import type { Unsubscribable } from '@trpc/server/observable';
2
3
  import type {
3
4
  AnyMutationProcedure,
4
5
  AnyProcedure,
@@ -12,9 +13,11 @@ import type {
12
13
  ProcedureArgs,
13
14
  ProcedureRouterRecord,
14
15
  ProcedureType,
15
- Unsubscribable,
16
- } from '@trpc/core';
17
- import { createFlatProxy, createRecursiveProxy } from '@trpc/core';
16
+ } from '@trpc/server/unstable-core-do-not-import';
17
+ import {
18
+ createFlatProxy,
19
+ createRecursiveProxy,
20
+ } from '@trpc/server/unstable-core-do-not-import';
18
21
  import type { CreateTRPCClientOptions } from './createTRPCUntypedClient';
19
22
  import type {
20
23
  TRPCSubscriptionObserver,
@@ -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 { CreateTRPCClientOptions } from './internals/TRPCUntypedClient';
3
3
  import { TRPCUntypedClient } from './internals/TRPCUntypedClient';
4
4
 
@@ -1,12 +1,15 @@
1
+ import type {
2
+ inferObservableValue,
3
+ Unsubscribable,
4
+ } from '@trpc/server/observable';
5
+ import { observableToPromise, share } from '@trpc/server/observable';
6
+ import '@trpc/server/unstable-core-do-not-import';
1
7
  import type {
2
8
  AnyRouter,
3
9
  CombinedDataTransformer,
4
10
  DataTransformerOptions,
5
11
  DefaultDataTransformer,
6
- inferObservableValue,
7
- Unsubscribable,
8
- } from '@trpc/core';
9
- import { observableToPromise, share } from '@trpc/core';
12
+ } from '@trpc/server/unstable-core-do-not-import';
10
13
  import { createChain } from '../links/internals/createChain';
11
14
  import type {
12
15
  OperationContext,
@@ -216,7 +219,7 @@ export class TRPCUntypedClient<TRouter extends AnyRouter> {
216
219
  } else if (envelope.result.type === 'stopped') {
217
220
  opts.onStopped?.();
218
221
  } else {
219
- opts.onData?.((envelope.result as any).data);
222
+ opts.onData?.(envelope.result.data);
220
223
  }
221
224
  },
222
225
  error(err) {
@@ -1,4 +1,4 @@
1
- import type { Maybe } from '@trpc/core';
1
+ import type { Maybe } from '@trpc/server/unstable-core-do-not-import';
2
2
  import type { AbortControllerEsque } from './types';
3
3
 
4
4
  export function getAbortController(
@@ -1,5 +1,6 @@
1
- import type { AnyRouter } from '@trpc/core';
2
- import { observable, transformResult } from '@trpc/core';
1
+ import { observable } from '@trpc/server/observable';
2
+ import type { AnyRouter } from '@trpc/server/unstable-core-do-not-import';
3
+ import { transformResult } from '@trpc/server/unstable-core-do-not-import';
3
4
  import { TRPCClientError } from '../TRPCClientError';
4
5
  import type {
5
6
  HTTPLinkBaseOptions,
@@ -1,5 +1,5 @@
1
- import type { AnyRouter } from '@trpc/core';
2
- import { observable } from '@trpc/core';
1
+ import { observable } from '@trpc/server/observable';
2
+ import type { AnyRouter } from '@trpc/server/unstable-core-do-not-import';
3
3
  import type {
4
4
  Operation,
5
5
  OperationLink,
@@ -1,5 +1,9 @@
1
- import type { AnyRouter, ProcedureType } from '@trpc/core';
2
- import { observable, transformResult } from '@trpc/core';
1
+ import { observable } from '@trpc/server/observable';
2
+ import type {
3
+ AnyRouter,
4
+ ProcedureType,
5
+ } from '@trpc/server/unstable-core-do-not-import';
6
+ import { transformResult } from '@trpc/server/unstable-core-do-not-import';
3
7
  import { dataLoader } from '../../internals/dataLoader';
4
8
  import { TRPCClientError } from '../../TRPCClientError';
5
9
  import type { HTTPBatchLinkOptions } from '../HTTPBatchLinkOptions';
@@ -1,7 +1,8 @@
1
1
  /* istanbul ignore file -- @preserve */
2
2
  // We're not actually exporting this link
3
- import type { AnyRouter, Observable } from '@trpc/core';
4
- import { observable, share } from '@trpc/core';
3
+ import type { Observable } from '@trpc/server/observable';
4
+ import { observable, share } from '@trpc/server/observable';
5
+ import type { AnyRouter } from '@trpc/server/unstable-core-do-not-import';
5
6
  import type { TRPCLink } from '../types';
6
7
 
7
8
  /**
@@ -1,4 +1,7 @@
1
- import type { ProcedureType, TRPCResponse } from '@trpc/core';
1
+ import type {
2
+ ProcedureType,
3
+ TRPCResponse,
4
+ } from '@trpc/server/unstable-core-do-not-import';
2
5
  import { getFetch } from '../../getFetch';
3
6
  import { getAbortController } from '../../internals/getAbortController';
4
7
  import type {
@@ -1,5 +1,5 @@
1
1
  // Stream parsing adapted from https://www.loginradius.com/blog/engineering/guest-post/http-streaming-with-nodejs-and-fetch-api/
2
- import type { TRPCResponse } from '@trpc/core';
2
+ import type { TRPCResponse } from '@trpc/server/unstable-core-do-not-import';
3
3
  import type { WebReadableStreamEsque } from '../../internals/types';
4
4
  import type { HTTPHeaders } from '../types';
5
5
  import type { HTTPBaseRequestOptions, HTTPResult } from './httpUtils';
@@ -1,7 +1,8 @@
1
1
  /* istanbul ignore file -- @preserve */
2
2
  // We're not actually exporting this link
3
- import type { AnyRouter, Unsubscribable } from '@trpc/core';
4
- import { observable } from '@trpc/core';
3
+ import type { Unsubscribable } from '@trpc/server/observable';
4
+ import { observable } from '@trpc/server/observable';
5
+ import type { AnyRouter } from '@trpc/server/unstable-core-do-not-import';
5
6
  import type { TRPCLink } from '../types';
6
7
 
7
8
  /**