@trpc/client 10.0.0-proxy-alpha.53 → 10.0.0-proxy-alpha.54

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
@@ -248,7 +248,9 @@ class TRPCClient {
248
248
  }
249
249
  }
250
250
 
251
- function createTRPCClient(opts) {
251
+ /**
252
+ * @deprecated use `createTRPCProxyClient` instead
253
+ */ function createTRPCClient(opts) {
252
254
  const client = new TRPCClient(opts);
253
255
  return client;
254
256
  }
@@ -259,7 +261,7 @@ const clientCallTypeMap = {
259
261
  subscribe: 'subscription'
260
262
  };
261
263
  /**
262
- * @deprecated use createTRPCProxyClient instead
264
+ * @deprecated use `createTRPCProxyClient` instead
263
265
  * @internal
264
266
  */ function createTRPCClientProxy(client) {
265
267
  const proxy = shared.createProxy(({ path , args })=>{
package/dist/index.mjs CHANGED
@@ -247,7 +247,9 @@ class TRPCClient {
247
247
  }
248
248
  }
249
249
 
250
- function createTRPCClient(opts) {
250
+ /**
251
+ * @deprecated use `createTRPCProxyClient` instead
252
+ */ function createTRPCClient(opts) {
251
253
  const client = new TRPCClient(opts);
252
254
  return client;
253
255
  }
@@ -258,7 +260,7 @@ const clientCallTypeMap = {
258
260
  subscribe: 'subscription'
259
261
  };
260
262
  /**
261
- * @deprecated use createTRPCProxyClient instead
263
+ * @deprecated use `createTRPCProxyClient` instead
262
264
  * @internal
263
265
  */ function createTRPCClientProxy(client) {
264
266
  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-proxy-alpha.53",
3
+ "version": "10.0.0-proxy-alpha.54",
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-proxy-alpha.53"
66
+ "@trpc/server": "10.0.0-proxy-alpha.54"
67
67
  },
68
68
  "devDependencies": {
69
- "@trpc/server": "10.0.0-proxy-alpha.53"
69
+ "@trpc/server": "10.0.0-proxy-alpha.54"
70
70
  },
71
71
  "publishConfig": {
72
72
  "access": "public"
73
73
  },
74
- "gitHead": "1c5cae03b77ff2ba6b6b870f8dc95021605435ae"
74
+ "gitHead": "31315be8455a5bdba0ab49793a7e043b65a9d722"
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>(