@trpc/next 9.20.3 → 9.23.0

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 +1 @@
1
- {"version":3,"file":"withTRPC.d.ts","sourceRoot":"../../../src","sources":["withTRPC.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAGL,uBAAuB,EAEvB,eAAe,EAEhB,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,SAAS,EAAe,YAAY,EAAE,MAAM,cAAc,CAAC;AACzE,OAAO,EAGL,iBAAiB,EACjB,eAAe,EAChB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,WAAW,EAAuB,MAAM,aAAa,CAAC;AAI/D,aAAK,iBAAiB,GAAG,qBAAqB,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;AAwBtE,oBAAY,cAAc,CAAC,OAAO,SAAS,SAAS,IAClD,uBAAuB,CAAC,OAAO,CAAC,GAAG;IACjC,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;CACvC,CAAC;AAEJ,wBAAgB,QAAQ,CAAC,OAAO,SAAS,SAAS,EAChD,IAAI,EAAE;IACJ,MAAM,EAAE,CAAC,IAAI,EAAE;QAAE,GAAG,CAAC,EAAE,eAAe,CAAA;KAAE,KAAK,cAAc,CAAC,OAAO,CAAC,CAAC;CACtE,GAAG,CACA;IACE,GAAG,CAAC,EAAE,KAAK,CAAC;CACb,GACD;IACE,GAAG,EAAE,IAAI,CAAC;IACV,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE;QACpB,GAAG,EAAE,eAAe,CAAC;QACrB,YAAY,EAAE,eAAe,CAAC,OAAO,CAAC,EAAE,CAAC;KAC1C,KAAK,YAAY,CAAC;CACpB,CACJ,eAWkB,kBAAkB,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,KAAG,iBAAiB,CAwKxE"}
1
+ {"version":3,"file":"withTRPC.d.ts","sourceRoot":"../../../src","sources":["withTRPC.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EACL,uBAAuB,EAEvB,eAAe,EAIhB,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,SAAS,EAAe,YAAY,EAAE,MAAM,cAAc,CAAC;AACzE,OAAO,EAGL,iBAAiB,EACjB,eAAe,EAChB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,WAAW,EAAuB,MAAM,aAAa,CAAC;AAI/D,aAAK,iBAAiB,GAAG,qBAAqB,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;AAwBtE,oBAAY,cAAc,CAAC,OAAO,SAAS,SAAS,IAClD,uBAAuB,CAAC,OAAO,CAAC,GAAG;IACjC,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;CACvC,CAAC;AAEJ,wBAAgB,QAAQ,CAAC,OAAO,SAAS,SAAS,EAChD,IAAI,EAAE;IACJ,MAAM,EAAE,CAAC,IAAI,EAAE;QAAE,GAAG,CAAC,EAAE,eAAe,CAAA;KAAE,KAAK,cAAc,CAAC,OAAO,CAAC,CAAC;CACtE,GAAG,CACA;IACE,GAAG,CAAC,EAAE,KAAK,CAAC;CACb,GACD;IACE,GAAG,EAAE,IAAI,CAAC;IACV,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE;QACpB,GAAG,EAAE,eAAe,CAAC;QACrB,YAAY,EAAE,eAAe,CAAC,OAAO,CAAC,EAAE,CAAC;KAC1C,KAAK,YAAY,CAAC;CACpB,CACJ,eAWkB,kBAAkB,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,KAAG,iBAAiB,CAwKxE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trpc/next",
3
- "version": "9.20.3",
3
+ "version": "9.23.0",
4
4
  "description": "tRPC Next lib",
5
5
  "author": "KATT",
6
6
  "license": "MIT",
@@ -30,9 +30,9 @@
30
30
  }
31
31
  },
32
32
  "peerDependencies": {
33
- "@trpc/client": "9.20.3",
34
- "@trpc/react": "9.20.3",
35
- "@trpc/server": "9.20.3",
33
+ "@trpc/client": "9.23.0",
34
+ "@trpc/react": "9.23.0",
35
+ "@trpc/server": "9.23.0",
36
36
  "next": "*",
37
37
  "react": ">=16.8.0",
38
38
  "react-dom": ">=16.8.0",
@@ -43,19 +43,19 @@
43
43
  "react-ssr-prepass": "^1.5.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@trpc/client": "9.20.3",
47
- "@trpc/react": "9.20.3",
48
- "@trpc/server": "9.20.3",
46
+ "@trpc/client": "9.23.0",
47
+ "@trpc/react": "9.23.0",
48
+ "@trpc/server": "9.23.0",
49
49
  "@types/express": "^4.17.12",
50
50
  "express": "^4.17.1",
51
- "next": "^12.0.1",
52
- "react": "^17.0.2",
53
- "react-dom": "^17.0.2",
51
+ "next": "12.1.4",
52
+ "react": "^18.0.0",
53
+ "react-dom": "^18.0.0",
54
54
  "react-query": "^3.27.0",
55
55
  "zod": "^3.0.0"
56
56
  },
57
57
  "publishConfig": {
58
58
  "access": "public"
59
59
  },
60
- "gitHead": "79f545134b8a30b7b3f866dc2dd219303d9e8c05"
60
+ "gitHead": "f672e66bfa5b19dbfa4c981eb0819b0147f8f404"
61
61
  }
package/src/withTRPC.tsx CHANGED
@@ -2,14 +2,13 @@
2
2
  * Heavily based on urql's ssr
3
3
  * https://github.com/FormidableLabs/urql/blob/main/packages/next-urql/src/with-urql-client.ts
4
4
  */
5
-
6
5
  import {
7
- createReactQueryHooks,
8
- createTRPCClient,
9
6
  CreateTRPCClientOptions,
10
7
  TRPCClient,
11
8
  TRPCClientError,
12
9
  TRPCClientErrorLike,
10
+ createReactQueryHooks,
11
+ createTRPCClient,
13
12
  } from '@trpc/react';
14
13
  import type { AnyRouter, Dict, Maybe, ResponseMeta } from '@trpc/server';
15
14
  import {
@@ -20,7 +19,7 @@ import {
20
19
  } from 'next/dist/shared/lib/utils';
21
20
  import React, { createElement, useState } from 'react';
22
21
  import { QueryClient, QueryClientProvider } from 'react-query';
23
- import { dehydrate, DehydratedState, Hydrate } from 'react-query/hydration';
22
+ import { DehydratedState, Hydrate, dehydrate } from 'react-query/hydration';
24
23
  import ssrPrepass from 'react-ssr-prepass';
25
24
 
26
25
  type QueryClientConfig = ConstructorParameters<typeof QueryClient>[0];