@trpc/next 9.20.2 → 9.22.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.2",
3
+ "version": "9.22.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.2",
34
- "@trpc/react": "9.20.2",
35
- "@trpc/server": "9.20.2",
33
+ "@trpc/client": "9.22.0",
34
+ "@trpc/react": "9.22.0",
35
+ "@trpc/server": "9.22.0",
36
36
  "next": "*",
37
37
  "react": ">=16.8.0",
38
38
  "react-dom": ">=16.8.0",
@@ -43,9 +43,9 @@
43
43
  "react-ssr-prepass": "^1.5.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@trpc/client": "9.20.2",
47
- "@trpc/react": "9.20.2",
48
- "@trpc/server": "9.20.2",
46
+ "@trpc/client": "9.22.0",
47
+ "@trpc/react": "9.22.0",
48
+ "@trpc/server": "9.22.0",
49
49
  "@types/express": "^4.17.12",
50
50
  "express": "^4.17.1",
51
51
  "next": "^12.0.1",
@@ -57,5 +57,5 @@
57
57
  "publishConfig": {
58
58
  "access": "public"
59
59
  },
60
- "gitHead": "502ed037d974cdc25a922a596fc05b16fa9ae2e5"
60
+ "gitHead": "471a69c2d6997b8d5dfa1887fd62b24ada31a4d3"
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];