@trpc/client 10.0.0-alpha.47 → 10.0.0-alpha.48

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.
@@ -1,5 +1,8 @@
1
1
  import type { AnyRouter } from '@trpc/server';
2
2
  import { TRPCClient as Client, CreateTRPCClientOptions } from './internals/TRPCClient';
3
+ /**
4
+ * @deprecated use `createTRPCProxyClient` instead
5
+ */
3
6
  export declare function createTRPCClient<TRouter extends AnyRouter>(opts: CreateTRPCClientOptions<TRouter>): Client<TRouter>;
4
7
  export type { TRPCRequestOptions, CreateTRPCClientOptions, TRPCClient, AssertLegacyDef, } from './internals/TRPCClient';
5
8
  //# sourceMappingURL=createTRPCClient.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createTRPCClient.d.ts","sourceRoot":"","sources":["../src/createTRPCClient.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EACL,UAAU,IAAI,MAAM,EACpB,uBAAuB,EACxB,MAAM,wBAAwB,CAAC;AAEhC,wBAAgB,gBAAgB,CAAC,OAAO,SAAS,SAAS,EACxD,IAAI,EAAE,uBAAuB,CAAC,OAAO,CAAC,mBAIvC;AAID,YAAY,EACV,kBAAkB,EAClB,uBAAuB,EACvB,UAAU,EACV,eAAe,GAChB,MAAM,wBAAwB,CAAC"}
1
+ {"version":3,"file":"createTRPCClient.d.ts","sourceRoot":"","sources":["../src/createTRPCClient.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EACL,UAAU,IAAI,MAAM,EACpB,uBAAuB,EACxB,MAAM,wBAAwB,CAAC;AAEhC;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,SAAS,SAAS,EACxD,IAAI,EAAE,uBAAuB,CAAC,OAAO,CAAC,mBAIvC;AAID,YAAY,EACV,kBAAkB,EAClB,uBAAuB,EACvB,UAAU,EACV,eAAe,GAChB,MAAM,wBAAwB,CAAC"}
@@ -28,7 +28,7 @@ declare type DecoratedProcedureRecord<TProcedures extends ProcedureRouterRecord,
28
28
  [TKey in keyof TProcedures]: TProcedures[TKey] extends AnyRouter ? DecoratedProcedureRecord<TProcedures[TKey]['_def']['record'], TProcedures[TKey]> : assertProcedure<TProcedures[TKey]>['_def']['_old'] extends true ? never : DecorateProcedure<assertProcedure<TProcedures[TKey]>, TRouter>;
29
29
  }>;
30
30
  /**
31
- * @deprecated use createTRPCProxyClient instead
31
+ * @deprecated use `createTRPCProxyClient` instead
32
32
  * @internal
33
33
  */
34
34
  export declare function createTRPCClientProxy<TRouter extends AnyRouter>(client: Client<TRouter>): DecoratedProcedureRecord<TRouter["_def"]["record"], TRouter>;
package/dist/index.js CHANGED
@@ -242,7 +242,9 @@ class TRPCClient {
242
242
  }
243
243
  }
244
244
 
245
- function createTRPCClient(opts) {
245
+ /**
246
+ * @deprecated use `createTRPCProxyClient` instead
247
+ */ function createTRPCClient(opts) {
246
248
  const client = new TRPCClient(opts);
247
249
  return client;
248
250
  }
@@ -253,7 +255,7 @@ const clientCallTypeMap = {
253
255
  subscribe: 'subscription'
254
256
  };
255
257
  /**
256
- * @deprecated use createTRPCProxyClient instead
258
+ * @deprecated use `createTRPCProxyClient` instead
257
259
  * @internal
258
260
  */ function createTRPCClientProxy(client) {
259
261
  const proxy = shared.createProxy(({ path , args })=>{
package/dist/index.mjs CHANGED
@@ -241,7 +241,9 @@ class TRPCClient {
241
241
  }
242
242
  }
243
243
 
244
- function createTRPCClient(opts) {
244
+ /**
245
+ * @deprecated use `createTRPCProxyClient` instead
246
+ */ function createTRPCClient(opts) {
245
247
  const client = new TRPCClient(opts);
246
248
  return client;
247
249
  }
@@ -252,7 +254,7 @@ const clientCallTypeMap = {
252
254
  subscribe: 'subscription'
253
255
  };
254
256
  /**
255
- * @deprecated use createTRPCProxyClient instead
257
+ * @deprecated use `createTRPCProxyClient` instead
256
258
  * @internal
257
259
  */ function createTRPCClientProxy(client) {
258
260
  const proxy = createProxy(({ path , args })=>{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trpc/client",
3
- "version": "10.0.0-alpha.47",
3
+ "version": "10.0.0-alpha.48",
4
4
  "description": "tRPC Client lib",
5
5
  "author": "KATT",
6
6
  "license": "MIT",
@@ -63,13 +63,13 @@
63
63
  "ts-watch": "tsc --project tsconfig.watch.json"
64
64
  },
65
65
  "peerDependencies": {
66
- "@trpc/server": "10.0.0-alpha.47"
66
+ "@trpc/server": "10.0.0-alpha.48"
67
67
  },
68
68
  "devDependencies": {
69
- "@trpc/server": "10.0.0-alpha.47"
69
+ "@trpc/server": "10.0.0-alpha.48"
70
70
  },
71
71
  "publishConfig": {
72
72
  "access": "public"
73
73
  },
74
- "gitHead": "c7cfb976538a35e529053add9a6cbda8b94e521d"
74
+ "gitHead": "7c36df29c30d06d0483212d0a6d20cae7ecb59c7"
75
75
  }
@@ -7,6 +7,9 @@ import {
7
7
  CreateTRPCClientOptions,
8
8
  } from './internals/TRPCClient';
9
9
 
10
+ /**
11
+ * @deprecated use `createTRPCProxyClient` instead
12
+ */
10
13
  export function createTRPCClient<TRouter extends AnyRouter>(
11
14
  opts: CreateTRPCClientOptions<TRouter>,
12
15
  ) {
@@ -87,7 +87,7 @@ const clientCallTypeMap: Record<
87
87
  };
88
88
 
89
89
  /**
90
- * @deprecated use createTRPCProxyClient instead
90
+ * @deprecated use `createTRPCProxyClient` instead
91
91
  * @internal
92
92
  */
93
93
  export function createTRPCClientProxy<TRouter extends AnyRouter>(