@trpc/react-query 11.0.0-rc.747 → 11.0.0-rc.748

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,7 +1,7 @@
1
1
  {
2
- "bundleSize": 43968,
3
- "bundleOrigSize": 92089,
4
- "bundleReduction": 52.25,
2
+ "bundleSize": 43951,
3
+ "bundleOrigSize": 92072,
4
+ "bundleReduction": 52.26,
5
5
  "modules": [
6
6
  {
7
7
  "id": "/src/shared/hooks/createHooksInternal.tsx",
@@ -14,7 +14,7 @@
14
14
  "dependents": [
15
15
  "/src/createTRPCReact.tsx"
16
16
  ],
17
- "percent": 43.85,
17
+ "percent": 43.86,
18
18
  "reduction": 9.31
19
19
  },
20
20
  {
@@ -29,13 +29,13 @@
29
29
  "/src/createTRPCQueryUtils.tsx",
30
30
  "/src/shared/hooks/createHooksInternal.tsx"
31
31
  ],
32
- "percent": 16.43,
32
+ "percent": 16.44,
33
33
  "reduction": 0
34
34
  },
35
35
  {
36
36
  "id": "/src/server/ssgProxy.ts",
37
- "size": 3969,
38
- "origSize": 6087,
37
+ "size": 3952,
38
+ "origSize": 6070,
39
39
  "renderedExports": [
40
40
  "createServerSideHelpers"
41
41
  ],
@@ -43,8 +43,8 @@
43
43
  "dependents": [
44
44
  "/src/server/index.ts"
45
45
  ],
46
- "percent": 9.03,
47
- "reduction": 34.8
46
+ "percent": 8.99,
47
+ "reduction": 34.89
48
48
  },
49
49
  {
50
50
  "id": "/src/shared/proxy/utilsProxy.ts",
@@ -23,7 +23,7 @@ var queryClient = require('../shared/queryClient.js');
23
23
  serialize: transformer.output.serialize,
24
24
  query: (queryOpts)=>{
25
25
  return unstableCoreDoNotImport.callProcedure({
26
- procedures: router._def.procedures,
26
+ _def: router._def,
27
27
  path: queryOpts.path,
28
28
  getRawInput: async ()=>queryOpts.input,
29
29
  ctx,
@@ -21,7 +21,7 @@ import { getQueryClient } from '../shared/queryClient.mjs';
21
21
  serialize: transformer.output.serialize,
22
22
  query: (queryOpts)=>{
23
23
  return callProcedure({
24
- procedures: router._def.procedures,
24
+ _def: router._def,
25
25
  path: queryOpts.path,
26
26
  getRawInput: async ()=>queryOpts.input,
27
27
  ctx,
@@ -4,7 +4,7 @@ import type { QueryLike } from './queryLike';
4
4
  /**
5
5
  * Use to describe a route path which matches a given route's interface
6
6
  */
7
- export type RouterLike<TRouter extends AnyRouter> = RouterLikeInner<TRouter['_def']['_config']['$types'], TRouter['_def']['procedures']>;
7
+ export type RouterLike<TRouter extends AnyRouter> = RouterLikeInner<TRouter['_def']['_config']['$types'], TRouter['_def']['record']>;
8
8
  export type RouterLikeInner<TRoot extends AnyRootTypes, TRecord extends RouterRecord> = {
9
9
  [TKey in keyof TRecord]: TRecord[TKey] extends infer $Value ? $Value extends AnyQueryProcedure ? QueryLike<TRoot, $Value> : $Value extends AnyMutationProcedure ? MutationLike<TRoot, $Value> : $Value extends RouterRecord ? RouterLikeInner<TRoot, $Value> : never : never;
10
10
  };
@@ -1 +1 @@
1
- {"version":3,"file":"routerLike.d.ts","sourceRoot":"","sources":["../../../src/shared/polymorphism/routerLike.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,iBAAiB,EACjB,YAAY,EACZ,SAAS,EACT,YAAY,EACb,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,CAAC,QAAQ,CAAC,EACpC,OAAO,CAAC,MAAM,CAAC,CAAC,YAAY,CAAC,CAC9B,CAAC;AACF,MAAM,MAAM,eAAe,CACzB,KAAK,SAAS,YAAY,EAC1B,OAAO,SAAS,YAAY,IAC1B;KACD,IAAI,IAAI,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,SAAS,MAAM,MAAM,GACvD,MAAM,SAAS,iBAAiB,GAC9B,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC,GACxB,MAAM,SAAS,oBAAoB,GACjC,YAAY,CAAC,KAAK,EAAE,MAAM,CAAC,GAC3B,MAAM,SAAS,YAAY,GACzB,eAAe,CAAC,KAAK,EAAE,MAAM,CAAC,GAC9B,KAAK,GACX,KAAK;CACV,CAAC"}
1
+ {"version":3,"file":"routerLike.d.ts","sourceRoot":"","sources":["../../../src/shared/polymorphism/routerLike.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,iBAAiB,EACjB,YAAY,EACZ,SAAS,EACT,YAAY,EACb,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,CAAC,QAAQ,CAAC,EACpC,OAAO,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,CAC1B,CAAC;AACF,MAAM,MAAM,eAAe,CACzB,KAAK,SAAS,YAAY,EAC1B,OAAO,SAAS,YAAY,IAC1B;KACD,IAAI,IAAI,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,SAAS,MAAM,MAAM,GACvD,MAAM,SAAS,iBAAiB,GAC9B,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC,GACxB,MAAM,SAAS,oBAAoB,GACjC,YAAY,CAAC,KAAK,EAAE,MAAM,CAAC,GAC3B,MAAM,SAAS,YAAY,GACzB,eAAe,CAAC,KAAK,EAAE,MAAM,CAAC,GAC9B,KAAK,GACX,KAAK;CACV,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trpc/react-query",
3
- "version": "11.0.0-rc.747+64714681c",
3
+ "version": "11.0.0-rc.748+b19e7e9a6",
4
4
  "description": "The tRPC React library",
5
5
  "author": "KATT",
6
6
  "license": "MIT",
@@ -65,16 +65,16 @@
65
65
  },
66
66
  "peerDependencies": {
67
67
  "@tanstack/react-query": "^5.62.8",
68
- "@trpc/client": "11.0.0-rc.747+64714681c",
69
- "@trpc/server": "11.0.0-rc.747+64714681c",
68
+ "@trpc/client": "11.0.0-rc.748+b19e7e9a6",
69
+ "@trpc/server": "11.0.0-rc.748+b19e7e9a6",
70
70
  "react": ">=18.2.0",
71
71
  "react-dom": ">=18.2.0",
72
72
  "typescript": ">=5.7.2"
73
73
  },
74
74
  "devDependencies": {
75
75
  "@tanstack/react-query": "^5.62.8",
76
- "@trpc/client": "11.0.0-rc.747+64714681c",
77
- "@trpc/server": "11.0.0-rc.747+64714681c",
76
+ "@trpc/client": "11.0.0-rc.748+b19e7e9a6",
77
+ "@trpc/server": "11.0.0-rc.748+b19e7e9a6",
78
78
  "@types/express": "^5.0.0",
79
79
  "@types/node": "^22.9.0",
80
80
  "@types/react": "^19.0.0",
@@ -95,5 +95,5 @@
95
95
  "funding": [
96
96
  "https://trpc.io/sponsor"
97
97
  ],
98
- "gitHead": "64714681ca127cd859a819d61ce8a990b928baf9"
98
+ "gitHead": "b19e7e9a640511f49de05bcd4436dc0a514f5e0f"
99
99
  }
@@ -96,7 +96,7 @@ export function createServerSideHelpers<TRouter extends AnyRouter>(
96
96
  serialize: transformer.output.serialize,
97
97
  query: (queryOpts) => {
98
98
  return callProcedure({
99
- procedures: router._def.procedures,
99
+ _def: router._def,
100
100
  path: queryOpts.path,
101
101
  getRawInput: async () => queryOpts.input,
102
102
  ctx,
@@ -13,7 +13,7 @@ import type { QueryLike } from './queryLike';
13
13
  */
14
14
  export type RouterLike<TRouter extends AnyRouter> = RouterLikeInner<
15
15
  TRouter['_def']['_config']['$types'],
16
- TRouter['_def']['procedures']
16
+ TRouter['_def']['record']
17
17
  >;
18
18
  export type RouterLikeInner<
19
19
  TRoot extends AnyRootTypes,