@trpc/next 11.0.0-alpha-tmp-issues-6374.694 → 11.0.0-alpha-tmp-issues-6374.697
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/app-dir/shared.d.ts +1 -2
- package/dist/app-dir/shared.d.ts.map +1 -1
- package/dist/bundle-analysis.json +8 -8
- package/dist/withTRPC.d.ts +1 -2
- package/dist/withTRPC.d.ts.map +1 -1
- package/package.json +8 -8
- package/src/app-dir/shared.ts +3 -3
- package/src/ssrPrepass.ts +1 -1
- package/src/withTRPC.tsx +1 -1
package/dist/app-dir/shared.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { CreateTRPCClientOptions, Resolver, TRPCClient } from '@trpc/client';
|
|
2
|
-
import { TRPCUntypedClient } from '@trpc/client';
|
|
1
|
+
import type { CreateTRPCClientOptions, Resolver, TRPCClient, TRPCUntypedClient } from '@trpc/client';
|
|
3
2
|
import type { inferProcedureOutput } from '@trpc/server';
|
|
4
3
|
import type { AnyClientTypes, AnyProcedure, AnyQueryProcedure, AnyRootTypes, AnyRouter, inferProcedureInput, inferTransformedProcedureOutput, ProtectedIntersection, RouterRecord } from '@trpc/server/unstable-core-do-not-import';
|
|
5
4
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/app-dir/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,QAAQ,EACR,UAAU,
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/app-dir/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,QAAQ,EACR,UAAU,EACV,iBAAiB,EAClB,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EACV,cAAc,EACd,YAAY,EACZ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,CAAC,YAAY,CAAC,CAAC;CACjC,CAAC"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"bundleSize": 22997,
|
|
3
|
-
"bundleOrigSize":
|
|
4
|
-
"bundleReduction": 39.
|
|
3
|
+
"bundleOrigSize": 38091,
|
|
4
|
+
"bundleReduction": 39.63,
|
|
5
5
|
"modules": [
|
|
6
6
|
{
|
|
7
7
|
"id": "/src/ssrPrepass.ts",
|
|
8
8
|
"size": 5056,
|
|
9
|
-
"origSize":
|
|
9
|
+
"origSize": 5846,
|
|
10
10
|
"renderedExports": [
|
|
11
11
|
"ssrPrepass"
|
|
12
12
|
],
|
|
13
13
|
"removedExports": [],
|
|
14
14
|
"dependents": [],
|
|
15
15
|
"percent": 21.99,
|
|
16
|
-
"reduction": 13.
|
|
16
|
+
"reduction": 13.51
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
19
|
"id": "/src/app-dir/server.ts",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
{
|
|
48
48
|
"id": "/src/withTRPC.tsx",
|
|
49
49
|
"size": 3424,
|
|
50
|
-
"origSize":
|
|
50
|
+
"origSize": 6140,
|
|
51
51
|
"renderedExports": [
|
|
52
52
|
"withTRPC"
|
|
53
53
|
],
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"/src/createTRPCNext.tsx"
|
|
58
58
|
],
|
|
59
59
|
"percent": 14.89,
|
|
60
|
-
"reduction": 44.
|
|
60
|
+
"reduction": 44.23
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
63
|
"id": "/src/app-dir/links/nextCache.ts",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
{
|
|
113
113
|
"id": "/src/app-dir/shared.ts",
|
|
114
114
|
"size": 335,
|
|
115
|
-
"origSize":
|
|
115
|
+
"origSize": 3301,
|
|
116
116
|
"renderedExports": [
|
|
117
117
|
"generateCacheTag",
|
|
118
118
|
"isFormData"
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
"/src/app-dir/create-action-hook.tsx"
|
|
128
128
|
],
|
|
129
129
|
"percent": 1.46,
|
|
130
|
-
"reduction":
|
|
130
|
+
"reduction": 89.85
|
|
131
131
|
},
|
|
132
132
|
{
|
|
133
133
|
"id": "/src/index.ts",
|
package/dist/withTRPC.d.ts
CHANGED
|
@@ -3,9 +3,8 @@
|
|
|
3
3
|
* https://github.com/FormidableLabs/urql/blob/main/packages/next-urql/src/with-urql-client.ts
|
|
4
4
|
*/
|
|
5
5
|
import type { QueryClient } from '@tanstack/react-query';
|
|
6
|
-
import type { CreateTRPCClientOptions, TRPCClient, TRPCUntypedClient } from '@trpc/client';
|
|
6
|
+
import type { CreateTRPCClientOptions, TRPCClient, TRPCClientError, TRPCUntypedClient } from '@trpc/client';
|
|
7
7
|
import { type TransformerOptions } from '@trpc/client/unstable-internals';
|
|
8
|
-
import type { TRPCClientError } from '@trpc/react-query';
|
|
9
8
|
import type { CreateTRPCReactOptions, CreateTRPCReactQueryClientConfig } from '@trpc/react-query/shared';
|
|
10
9
|
import type { AnyRouter, inferClientTypes, ResponseMeta } from '@trpc/server/unstable-core-do-not-import';
|
|
11
10
|
import type { NextComponentType, NextPageContext } from 'next/dist/shared/lib/utils';
|
package/dist/withTRPC.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withTRPC.d.ts","sourceRoot":"","sources":["../src/withTRPC.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAmB,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAE1E,OAAO,KAAK,EACV,uBAAuB,EACvB,UAAU,EACV,iBAAiB,EAClB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"withTRPC.d.ts","sourceRoot":"","sources":["../src/withTRPC.tsx"],"names":[],"mappings":"AAAA;;;GAGG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
4
|
"description": "The tRPC Next.js library",
|
|
5
5
|
"author": "KATT",
|
|
6
6
|
"license": "MIT",
|
|
@@ -74,9 +74,9 @@
|
|
|
74
74
|
],
|
|
75
75
|
"peerDependencies": {
|
|
76
76
|
"@tanstack/react-query": "^5.59.15",
|
|
77
|
-
"@trpc/client": "11.0.0-alpha-tmp-issues-6374.
|
|
78
|
-
"@trpc/react-query": "11.0.0-alpha-tmp-issues-6374.
|
|
79
|
-
"@trpc/server": "11.0.0-alpha-tmp-issues-6374.
|
|
77
|
+
"@trpc/client": "11.0.0-alpha-tmp-issues-6374.697+41465ba29",
|
|
78
|
+
"@trpc/react-query": "11.0.0-alpha-tmp-issues-6374.697+41465ba29",
|
|
79
|
+
"@trpc/server": "11.0.0-alpha-tmp-issues-6374.697+41465ba29",
|
|
80
80
|
"next": "*",
|
|
81
81
|
"react": ">=16.8.0",
|
|
82
82
|
"react-dom": ">=16.8.0",
|
|
@@ -92,9 +92,9 @@
|
|
|
92
92
|
},
|
|
93
93
|
"devDependencies": {
|
|
94
94
|
"@tanstack/react-query": "^5.62.8",
|
|
95
|
-
"@trpc/client": "11.0.0-alpha-tmp-issues-6374.
|
|
96
|
-
"@trpc/react-query": "11.0.0-alpha-tmp-issues-6374.
|
|
97
|
-
"@trpc/server": "11.0.0-alpha-tmp-issues-6374.
|
|
95
|
+
"@trpc/client": "11.0.0-alpha-tmp-issues-6374.697+41465ba29",
|
|
96
|
+
"@trpc/react-query": "11.0.0-alpha-tmp-issues-6374.697+41465ba29",
|
|
97
|
+
"@trpc/server": "11.0.0-alpha-tmp-issues-6374.697+41465ba29",
|
|
98
98
|
"@types/express": "^4.17.17",
|
|
99
99
|
"@types/node": "^22.9.0",
|
|
100
100
|
"@types/react": "^19.0.0",
|
|
@@ -115,5 +115,5 @@
|
|
|
115
115
|
"funding": [
|
|
116
116
|
"https://trpc.io/sponsor"
|
|
117
117
|
],
|
|
118
|
-
"gitHead": "
|
|
118
|
+
"gitHead": "41465ba29ad50fa0a28146f8d8fb85cde796c562"
|
|
119
119
|
}
|
package/src/app-dir/shared.ts
CHANGED
|
@@ -2,8 +2,9 @@ import type {
|
|
|
2
2
|
CreateTRPCClientOptions,
|
|
3
3
|
Resolver,
|
|
4
4
|
TRPCClient,
|
|
5
|
+
TRPCUntypedClient,
|
|
5
6
|
} from '@trpc/client';
|
|
6
|
-
import { getUntypedClient
|
|
7
|
+
import { getUntypedClient } from '@trpc/client';
|
|
7
8
|
import type { inferProcedureOutput } from '@trpc/server';
|
|
8
9
|
import type {
|
|
9
10
|
AnyClientTypes,
|
|
@@ -42,8 +43,7 @@ export type UseProcedureRecord<
|
|
|
42
43
|
export function createUseProxy<TRouter extends AnyRouter>(
|
|
43
44
|
client: TRPCUntypedClient<TRouter> | TRPCClient<TRouter>,
|
|
44
45
|
) {
|
|
45
|
-
const untypedClient
|
|
46
|
-
client instanceof TRPCUntypedClient ? client : getUntypedClient(client);
|
|
46
|
+
const untypedClient = getUntypedClient(client);
|
|
47
47
|
|
|
48
48
|
return createRecursiveProxy<
|
|
49
49
|
UseProcedureRecord<
|
package/src/ssrPrepass.ts
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
import type { DehydratedState } from '@tanstack/react-query';
|
|
6
6
|
import { dehydrate } from '@tanstack/react-query';
|
|
7
7
|
import { createTRPCUntypedClient } from '@trpc/client';
|
|
8
|
+
import type { TRPCClientError, TRPCClientErrorLike } from '@trpc/client';
|
|
8
9
|
import type { CoercedTransformerParameters } from '@trpc/client/unstable-internals';
|
|
9
10
|
import { getTransformer } from '@trpc/client/unstable-internals';
|
|
10
|
-
import type { TRPCClientError, TRPCClientErrorLike } from '@trpc/react-query';
|
|
11
11
|
import { getQueryClient } from '@trpc/react-query/shared';
|
|
12
12
|
import type {
|
|
13
13
|
AnyRouter,
|
package/src/withTRPC.tsx
CHANGED
|
@@ -7,6 +7,7 @@ import { HydrationBoundary, QueryClientProvider } from '@tanstack/react-query';
|
|
|
7
7
|
import type {
|
|
8
8
|
CreateTRPCClientOptions,
|
|
9
9
|
TRPCClient,
|
|
10
|
+
TRPCClientError,
|
|
10
11
|
TRPCUntypedClient,
|
|
11
12
|
} from '@trpc/client';
|
|
12
13
|
import type { CoercedTransformerParameters } from '@trpc/client/unstable-internals';
|
|
@@ -14,7 +15,6 @@ import {
|
|
|
14
15
|
getTransformer,
|
|
15
16
|
type TransformerOptions,
|
|
16
17
|
} from '@trpc/client/unstable-internals';
|
|
17
|
-
import type { TRPCClientError } from '@trpc/react-query';
|
|
18
18
|
import type {
|
|
19
19
|
CreateTRPCReactOptions,
|
|
20
20
|
CreateTRPCReactQueryClientConfig,
|