@trpc/next 10.21.1-alpha.2 → 10.21.2

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/index.js CHANGED
@@ -141,7 +141,7 @@ function withTRPC(opts) {
141
141
  mutations: dehydratedCache.mutations.map(transformQueryOrMutationCacheErrors)
142
142
  };
143
143
  // dehydrate query client's state and add it to the props
144
- pageProps.trpcState = trpcClient.runtime.transformer.serialize(dehydratedCacheWithErrors);
144
+ pageProps.trpcState = trpcClient.runtime.combinedTransformer.output.serialize(dehydratedCacheWithErrors);
145
145
  const appTreeProps = getAppTreeProps(pageProps);
146
146
  const meta = opts.responseMeta?.({
147
147
  ctx,
package/dist/index.mjs CHANGED
@@ -132,7 +132,7 @@ function withTRPC(opts) {
132
132
  mutations: dehydratedCache.mutations.map(transformQueryOrMutationCacheErrors)
133
133
  };
134
134
  // dehydrate query client's state and add it to the props
135
- pageProps.trpcState = trpcClient.runtime.transformer.serialize(dehydratedCacheWithErrors);
135
+ pageProps.trpcState = trpcClient.runtime.combinedTransformer.output.serialize(dehydratedCacheWithErrors);
136
136
  const appTreeProps = getAppTreeProps(pageProps);
137
137
  const meta = opts.responseMeta?.({
138
138
  ctx,
@@ -1 +1 @@
1
- {"version":3,"file":"withTRPC.d.ts","sourceRoot":"","sources":["../src/withTRPC.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EAEL,eAAe,EAIhB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,sBAAsB,EACtB,gCAAgC,EAEjC,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,SAAS,EAAe,MAAM,cAAc,CAAC;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAGL,iBAAiB,EACjB,eAAe,EAChB,MAAM,4BAA4B,CAAC;AA2BpC,oBAAY,cAAc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-alpha.2",
3
+ "version": "10.21.2",
4
4
  "description": "tRPC Next lib",
5
5
  "author": "KATT",
6
6
  "license": "MIT",
@@ -44,9 +44,9 @@
44
44
  ],
45
45
  "peerDependencies": {
46
46
  "@tanstack/react-query": "^4.18.0",
47
- "@trpc/client": "10.21.1-alpha.2",
48
- "@trpc/react-query": "10.21.1-alpha.2",
49
- "@trpc/server": "10.21.1-alpha.2",
47
+ "@trpc/client": "10.21.2",
48
+ "@trpc/react-query": "10.21.2",
49
+ "@trpc/server": "10.21.2",
50
50
  "next": "*",
51
51
  "react": ">=16.8.0",
52
52
  "react-dom": ">=16.8.0"
@@ -56,9 +56,9 @@
56
56
  },
57
57
  "devDependencies": {
58
58
  "@tanstack/react-query": "^4.18.0",
59
- "@trpc/client": "10.21.1-alpha.2",
60
- "@trpc/react-query": "10.21.1-alpha.2",
61
- "@trpc/server": "10.21.1-alpha.2",
59
+ "@trpc/client": "10.21.2",
60
+ "@trpc/react-query": "10.21.2",
61
+ "@trpc/server": "10.21.2",
62
62
  "@types/express": "^4.17.12",
63
63
  "@types/node": "^18.7.20",
64
64
  "@types/react": "^18.0.9",
@@ -75,5 +75,5 @@
75
75
  "publishConfig": {
76
76
  "access": "public"
77
77
  },
78
- "gitHead": "951f0b5f6b46ae27c626bc04065b2dc2afde11c7"
78
+ "gitHead": "53b5f072142c9ece7bed32fc4b500a601fbc0738"
79
79
  }
package/src/withTRPC.tsx CHANGED
@@ -233,9 +233,10 @@ export function withTRPC<
233
233
  };
234
234
 
235
235
  // dehydrate query client's state and add it to the props
236
- pageProps.trpcState = trpcClient.runtime.transformer.serialize(
237
- dehydratedCacheWithErrors,
238
- );
236
+ pageProps.trpcState =
237
+ trpcClient.runtime.combinedTransformer.output.serialize(
238
+ dehydratedCacheWithErrors,
239
+ );
239
240
 
240
241
  const appTreeProps = getAppTreeProps(pageProps);
241
242