@trpc/react-query 11.0.0-alpha-tmp-03-03-pipe-pipe.310 → 11.0.0-alpha-tmp-issues-4129-lazy-routers.304

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": 27872,
3
- "bundleOrigSize": 60735,
4
- "bundleReduction": 54.11,
2
+ "bundleSize": 27855,
3
+ "bundleOrigSize": 60718,
4
+ "bundleReduction": 54.12,
5
5
  "modules": [
6
6
  {
7
7
  "id": "/src/shared/hooks/createHooksInternal.tsx",
@@ -14,13 +14,13 @@
14
14
  "dependents": [
15
15
  "/src/createTRPCReact.tsx"
16
16
  ],
17
- "percent": 45.21,
17
+ "percent": 45.23,
18
18
  "reduction": 13.03
19
19
  },
20
20
  {
21
21
  "id": "/src/server/ssgProxy.ts",
22
- "size": 3673,
23
- "origSize": 7403,
22
+ "size": 3656,
23
+ "origSize": 7386,
24
24
  "renderedExports": [
25
25
  "createServerSideHelpers"
26
26
  ],
@@ -28,8 +28,8 @@
28
28
  "dependents": [
29
29
  "/src/server/index.ts"
30
30
  ],
31
- "percent": 13.18,
32
- "reduction": 50.38
31
+ "percent": 13.13,
32
+ "reduction": 50.5
33
33
  },
34
34
  {
35
35
  "id": "/src/utils/createUtilityFunctions.ts",
@@ -43,7 +43,7 @@
43
43
  "/src/createTRPCQueryUtils.tsx",
44
44
  "/src/shared/hooks/createHooksInternal.tsx"
45
45
  ],
46
- "percent": 12.64,
46
+ "percent": 12.65,
47
47
  "reduction": 6.7
48
48
  },
49
49
  {
@@ -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 RouterRecord ? RouterLikeInner<TRoot, $Value> : $Value extends AnyQueryProcedure ? QueryLike<TRoot, $Value> : $Value extends AnyMutationProcedure ? MutationLike<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,EAC1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AAK;CACV,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trpc/react-query",
3
- "version": "11.0.0-alpha-tmp-03-03-pipe-pipe.310+5895b1d60",
3
+ "version": "11.0.0-alpha-tmp-issues-4129-lazy-routers.304+f57c65d9e",
4
4
  "description": "The tRPC React library",
5
5
  "author": "KATT",
6
6
  "license": "MIT",
@@ -58,15 +58,15 @@
58
58
  },
59
59
  "peerDependencies": {
60
60
  "@tanstack/react-query": "^5.0.0",
61
- "@trpc/client": "11.0.0-alpha-tmp-03-03-pipe-pipe.310+5895b1d60",
62
- "@trpc/server": "11.0.0-alpha-tmp-03-03-pipe-pipe.310+5895b1d60",
61
+ "@trpc/client": "11.0.0-alpha-tmp-issues-4129-lazy-routers.304+f57c65d9e",
62
+ "@trpc/server": "11.0.0-alpha-tmp-issues-4129-lazy-routers.304+f57c65d9e",
63
63
  "react": ">=18.2.0",
64
64
  "react-dom": ">=18.2.0"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@tanstack/react-query": "^5.0.0",
68
- "@trpc/client": "11.0.0-alpha-tmp-03-03-pipe-pipe.310+5895b1d60",
69
- "@trpc/server": "11.0.0-alpha-tmp-03-03-pipe-pipe.310+5895b1d60",
68
+ "@trpc/client": "11.0.0-alpha-tmp-issues-4129-lazy-routers.304+f57c65d9e",
69
+ "@trpc/server": "11.0.0-alpha-tmp-issues-4129-lazy-routers.304+f57c65d9e",
70
70
  "@types/express": "^4.17.17",
71
71
  "@types/node": "^20.10.0",
72
72
  "@types/react": "^18.2.33",
@@ -85,5 +85,5 @@
85
85
  "funding": [
86
86
  "https://trpc.io/sponsor"
87
87
  ],
88
- "gitHead": "5895b1d60190baf573249029f6fc5bba03a6d997"
88
+ "gitHead": "f57c65d9e08f48feb7885da9dfd6c4f86357a960"
89
89
  }
@@ -149,7 +149,7 @@ export function createServerSideHelpers<TRouter extends AnyRouter>(
149
149
  serialize: transformer.output.serialize,
150
150
  query: (queryOpts) => {
151
151
  return callProcedure({
152
- procedures: router._def.procedures,
152
+ _def: router._def,
153
153
  path: queryOpts.path,
154
154
  getRawInput: async () => queryOpts.input,
155
155
  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,