@trpc/react-query 11.0.0-alpha-tmp-app-router-example.372 → 11.0.0-alpha-tmp-app-router-example.379
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.
- package/dist/bundle-analysis.json +12 -12
- package/dist/rsc.d.ts.map +1 -1
- package/dist/rsc.js +1 -0
- package/dist/rsc.mjs +1 -0
- package/package.json +6 -6
- package/src/rsc.tsx +1 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"bundleSize":
|
|
3
|
-
"bundleOrigSize":
|
|
4
|
-
"bundleReduction": 52.
|
|
2
|
+
"bundleSize": 32132,
|
|
3
|
+
"bundleOrigSize": 68297,
|
|
4
|
+
"bundleReduction": 52.95,
|
|
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": 42.
|
|
17
|
+
"percent": 42.77,
|
|
18
18
|
"reduction": 12.84
|
|
19
19
|
},
|
|
20
20
|
{
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"/src/createTRPCQueryUtils.tsx",
|
|
30
30
|
"/src/shared/hooks/createHooksInternal.tsx"
|
|
31
31
|
],
|
|
32
|
-
"percent": 11.
|
|
32
|
+
"percent": 11.77,
|
|
33
33
|
"reduction": 6.34
|
|
34
34
|
},
|
|
35
35
|
{
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"dependents": [
|
|
44
44
|
"/src/server/index.ts"
|
|
45
45
|
],
|
|
46
|
-
"percent": 11.
|
|
46
|
+
"percent": 11.43,
|
|
47
47
|
"reduction": 50.38
|
|
48
48
|
},
|
|
49
49
|
{
|
|
@@ -59,20 +59,20 @@
|
|
|
59
59
|
"dependents": [
|
|
60
60
|
"/src/shared/index.ts"
|
|
61
61
|
],
|
|
62
|
-
"percent": 8.
|
|
62
|
+
"percent": 8.93,
|
|
63
63
|
"reduction": 74.38
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
66
|
"id": "/src/rsc.tsx",
|
|
67
|
-
"size":
|
|
68
|
-
"origSize":
|
|
67
|
+
"size": 2701,
|
|
68
|
+
"origSize": 4857,
|
|
69
69
|
"renderedExports": [
|
|
70
70
|
"createHydrationHelpers"
|
|
71
71
|
],
|
|
72
72
|
"removedExports": [],
|
|
73
73
|
"dependents": [],
|
|
74
|
-
"percent": 8.
|
|
75
|
-
"reduction": 44.
|
|
74
|
+
"percent": 8.41,
|
|
75
|
+
"reduction": 44.39
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
78
|
"id": "/src/internals/getQueryKey.ts",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"/src/shared/proxy/useQueriesProxy.ts",
|
|
92
92
|
"/src/shared/hooks/createHooksInternal.tsx"
|
|
93
93
|
],
|
|
94
|
-
"percent": 6.
|
|
94
|
+
"percent": 6.22,
|
|
95
95
|
"reduction": 42.49
|
|
96
96
|
},
|
|
97
97
|
{
|
package/dist/rsc.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rsc.d.ts","sourceRoot":"","sources":["../src/rsc.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,WAAW,EACjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,mBAAmB,EACxB,KAAK,YAAY,EAClB,MAAM,0CAA0C,CAAC;AAClD,OAAO,KAAK,EACV,YAAY,EACZ,YAAY,EACZ,oBAAoB,EACpB,oBAAoB,EAEpB,YAAY,EACZ,SAAS,EACV,MAAM,0CAA0C,CAAC;AAClD,OAAO,K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AI,CAAC,CAAC;CACpB,CAAC;AAEF,KAAK,oBAAoB,CACvB,KAAK,SAAS,YAAY,EAC1B,OAAO,SAAS,YAAY,IAC1B;KACD,IAAI,IAAI,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,SAAS,YAAY,GACvD,iBAAiB,CAAC,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,GACvC,OAAO,CAAC,IAAI,CAAC,SAAS,YAAY,GAClC,oBAAoB,CAAC,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,GAC1C,KAAK;CACV,CAAC;AAEF,KAAK,MAAM,CAAC,OAAO,SAAS,SAAS,IAAI,UAAU,CACjD,YAAY,CAAC,oBAAoB,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,CAAC,CACvE,CAAC;AAGF,wBAAgB,sBAAsB,CAAC,OAAO,SAAS,SAAS,EAC9D,MAAM,EAAE,SAAS,SAAS,OAAO,GAC7B,SAAS,CAAC,6DAA6D,CAAC,GACxE,MAAM,CAAC,OAAO,CAAC,EACnB,cAAc,EAAE,MAAM,WAAW;IAqD/B;;;;;;;;;;;OAWG;;IAEH;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;2BAlDyB;QAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;KAAE;EAqD5D"}
|
package/dist/rsc.js
CHANGED
|
@@ -28,6 +28,7 @@ const HELPERS = [
|
|
|
28
28
|
'prefetch',
|
|
29
29
|
'prefetchInfinite'
|
|
30
30
|
];
|
|
31
|
+
// ts-prune-ignore-next
|
|
31
32
|
function createHydrationHelpers(caller, getQueryClient) {
|
|
32
33
|
const wrappedProxy = unstableCoreDoNotImport.createRecursiveProxy(async ({ path , args })=>{
|
|
33
34
|
const proc = path.reduce((acc, key)=>// @ts-expect-error - ??
|
package/dist/rsc.mjs
CHANGED
|
@@ -7,6 +7,7 @@ const HELPERS = [
|
|
|
7
7
|
'prefetch',
|
|
8
8
|
'prefetchInfinite'
|
|
9
9
|
];
|
|
10
|
+
// ts-prune-ignore-next
|
|
10
11
|
function createHydrationHelpers(caller, getQueryClient) {
|
|
11
12
|
const wrappedProxy = createRecursiveProxy(async ({ path , args })=>{
|
|
12
13
|
const proc = path.reduce((acc, key)=>// @ts-expect-error - ??
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trpc/react-query",
|
|
3
|
-
"version": "11.0.0-alpha-tmp-app-router-example.
|
|
3
|
+
"version": "11.0.0-alpha-tmp-app-router-example.379+76c56f47b",
|
|
4
4
|
"description": "The tRPC React library",
|
|
5
5
|
"author": "KATT",
|
|
6
6
|
"license": "MIT",
|
|
@@ -64,15 +64,15 @@
|
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"@tanstack/react-query": "^5.25.0",
|
|
67
|
-
"@trpc/client": "11.0.0-alpha-tmp-app-router-example.
|
|
68
|
-
"@trpc/server": "11.0.0-alpha-tmp-app-router-example.
|
|
67
|
+
"@trpc/client": "11.0.0-alpha-tmp-app-router-example.379+76c56f47b",
|
|
68
|
+
"@trpc/server": "11.0.0-alpha-tmp-app-router-example.379+76c56f47b",
|
|
69
69
|
"react": ">=18.2.0",
|
|
70
70
|
"react-dom": ">=18.2.0"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"@tanstack/react-query": "^5.40.0",
|
|
74
|
-
"@trpc/client": "11.0.0-alpha-tmp-app-router-example.
|
|
75
|
-
"@trpc/server": "11.0.0-alpha-tmp-app-router-example.
|
|
74
|
+
"@trpc/client": "11.0.0-alpha-tmp-app-router-example.379+76c56f47b",
|
|
75
|
+
"@trpc/server": "11.0.0-alpha-tmp-app-router-example.379+76c56f47b",
|
|
76
76
|
"@types/express": "^4.17.17",
|
|
77
77
|
"@types/node": "^20.10.0",
|
|
78
78
|
"@types/react": "^18.3.1",
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
"funding": [
|
|
93
93
|
"https://trpc.io/sponsor"
|
|
94
94
|
],
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "76c56f47b58ba5e5493a8ee44cf672836d21a6c2"
|
|
96
96
|
}
|
package/src/rsc.tsx
CHANGED
|
@@ -68,6 +68,7 @@ type Caller<TRouter extends AnyRouter> = ReturnType<
|
|
|
68
68
|
RouterCaller<inferRouterRootTypes<TRouter>, TRouter['_def']['record']>
|
|
69
69
|
>;
|
|
70
70
|
|
|
71
|
+
// ts-prune-ignore-next
|
|
71
72
|
export function createHydrationHelpers<TRouter extends AnyRouter>(
|
|
72
73
|
caller: AnyRouter extends TRouter
|
|
73
74
|
? TypeError<'Generic parameter missing in `createHydrationHelpers<HERE>`'>
|