@trpc/next 11.0.0-alpha-tmp.218 → 11.0.0-alpha-tmp.221

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,12 +1,12 @@
1
1
  {
2
2
  "bundleSize": 22146,
3
- "bundleOrigSize": 31688,
3
+ "bundleOrigSize": 31686,
4
4
  "bundleReduction": 30.11,
5
5
  "modules": [
6
6
  {
7
7
  "id": "/src/withTRPC.tsx",
8
8
  "size": 8009,
9
- "origSize": 9274,
9
+ "origSize": 9272,
10
10
  "renderedExports": [
11
11
  "withTRPC"
12
12
  ],
@@ -16,7 +16,7 @@
16
16
  "/src/index.ts"
17
17
  ],
18
18
  "percent": 36.16,
19
- "reduction": 13.64
19
+ "reduction": 13.62
20
20
  },
21
21
  {
22
22
  "id": "/src/app-dir/server.ts",
@@ -1,8 +1,8 @@
1
1
  import { CreateTRPCClientOptions } from '@trpc/client';
2
2
  import type { AnyRouter } from '@trpc/core';
3
+ import type { ResponseMeta } from '@trpc/core/http';
3
4
  import { TRPCClientError } from '@trpc/react-query';
4
5
  import { CreateTRPCReactOptions, CreateTRPCReactQueryClientConfig } from '@trpc/react-query/shared';
5
- import type { ResponseMeta } from '@trpc/server/http';
6
6
  import { NextComponentType, NextPageContext } from 'next/dist/shared/lib/utils';
7
7
  export type WithTRPCConfig<TRouter extends AnyRouter> = CreateTRPCClientOptions<TRouter> & CreateTRPCReactQueryClientConfig & {
8
8
  abortOnUnmount?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"withTRPC.d.ts","sourceRoot":"","sources":["../src/withTRPC.tsx"],"names":[],"mappings":"AAWA,OAAO,EACL,uBAAuB,EAGxB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAE,eAAe,EAAuB,MAAM,mBAAmB,CAAC;AACzE,OAAO,EAEL,sBAAsB,EACtB,gCAAgC,EAEjC,MAAM,0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,CAC7D,SAAQ,eAAe,CAAC,OAAO,CAAC;IAChC,GAAG,CAAC,EAAE,KAAK,CAAC;CACb;AAED,wBAAgB,QAAQ,CACtB,OAAO,SAAS,SAAS,EACzB,WAAW,SAAS,eAAe,GAAG,eAAe,EACrD,IAAI,EAAE,oBAAoB,CAAC,OAAO,CAAC,GAAG,kBAAkB,CAAC,OAAO,CAAC,eAU9C,kBAAkB,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,KAAG,iBAAiB,CAqMxE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trpc/next",
3
- "version": "11.0.0-alpha-tmp.218+092c40011",
3
+ "version": "11.0.0-alpha-tmp.221+20f42edb2",
4
4
  "description": "The tRPC Next.js library",
5
5
  "author": "KATT",
6
6
  "license": "MIT",
@@ -67,22 +67,21 @@
67
67
  ],
68
68
  "peerDependencies": {
69
69
  "@tanstack/react-query": "^5.0.0",
70
- "@trpc/client": "11.0.0-alpha-tmp.218+092c40011",
71
- "@trpc/react-query": "11.0.0-alpha-tmp.218+092c40011",
72
- "@trpc/server": "11.0.0-alpha-tmp.218+092c40011",
70
+ "@trpc/client": "11.0.0-alpha-tmp.221+20f42edb2",
71
+ "@trpc/react-query": "11.0.0-alpha-tmp.221+20f42edb2",
72
+ "@trpc/server": "11.0.0-alpha-tmp.221+20f42edb2",
73
73
  "next": "*",
74
74
  "react": ">=16.8.0",
75
75
  "react-dom": ">=16.8.0"
76
76
  },
77
77
  "dependencies": {
78
- "@trpc/core": "11.0.0-alpha-tmp.218+092c40011"
78
+ "@trpc/core": "11.0.0-alpha-tmp.221+20f42edb2"
79
79
  },
80
80
  "devDependencies": {
81
81
  "@tanstack/react-query": "^5.0.0",
82
- "@trpc/client": "11.0.0-alpha-tmp.218+092c40011",
83
- "@trpc/core": "11.0.0-alpha-tmp.218+092c40011",
84
- "@trpc/react-query": "11.0.0-alpha-tmp.218+092c40011",
85
- "@trpc/server": "11.0.0-alpha-tmp.218+092c40011",
82
+ "@trpc/client": "11.0.0-alpha-tmp.221+20f42edb2",
83
+ "@trpc/react-query": "11.0.0-alpha-tmp.221+20f42edb2",
84
+ "@trpc/server": "11.0.0-alpha-tmp.221+20f42edb2",
86
85
  "@types/express": "^4.17.17",
87
86
  "@types/node": "^20.10.0",
88
87
  "@types/react": "^18.2.33",
@@ -102,5 +101,5 @@
102
101
  "funding": [
103
102
  "https://trpc.io/sponsor"
104
103
  ],
105
- "gitHead": "092c40011b7efa6111acc1ae8829bb0adf212685"
104
+ "gitHead": "20f42edb225ff010cfd393cc5e9c58d32ce4d390"
106
105
  }
package/src/withTRPC.tsx CHANGED
@@ -16,6 +16,7 @@ import {
16
16
  } from '@trpc/client';
17
17
  import type { AnyRouter } from '@trpc/core';
18
18
  import { Dict, Maybe } from '@trpc/core';
19
+ import type { ResponseMeta } from '@trpc/core/http';
19
20
  import { TRPCClientError, TRPCClientErrorLike } from '@trpc/react-query';
20
21
  import {
21
22
  createRootHooks,
@@ -23,7 +24,6 @@ import {
23
24
  CreateTRPCReactQueryClientConfig,
24
25
  getQueryClient,
25
26
  } from '@trpc/react-query/shared';
26
- import type { ResponseMeta } from '@trpc/server/http';
27
27
  import {
28
28
  AppContextType,
29
29
  AppPropsType,