@trpc/next 10.0.0-rc.6 → 10.0.0-rc.7

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.
@@ -2,8 +2,8 @@ import { CreateReactUtilsProxy, DecoratedProcedureRecord } from '@trpc/react-que
2
2
  import { AnyRouter } from '@trpc/server';
3
3
  import { NextPageContext } from 'next/types';
4
4
  import { WithTRPCNoSSROptions, WithTRPCSSROptions } from './withTRPC';
5
- export declare function createTRPCNext<TRouter extends AnyRouter, TSSRContext extends NextPageContext = NextPageContext>(opts: WithTRPCNoSSROptions<TRouter> | WithTRPCSSROptions<TRouter>): {
5
+ export declare function createTRPCNext<TRouter extends AnyRouter, TSSRContext extends NextPageContext = NextPageContext, TFlags = null>(opts: WithTRPCNoSSROptions<TRouter> | WithTRPCSSROptions<TRouter>): {
6
6
  useContext(): CreateReactUtilsProxy<TRouter, TSSRContext>;
7
7
  withTRPC: (AppOrPage: import("next/types").NextComponentType<any, any, any>) => import("next/types").NextComponentType<NextPageContext, {}, {}>;
8
- } & DecoratedProcedureRecord<TRouter["_def"]["record"], "">;
8
+ } & DecoratedProcedureRecord<TRouter["_def"]["record"], TFlags, "">;
9
9
  //# sourceMappingURL=createTRPCNext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createTRPCNext.d.ts","sourceRoot":"","sources":["../src/createTRPCNext.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,wBAAwB,EAIzB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7C,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAY,MAAM,YAAY,CAAC;AAEhF,wBAAgB,cAAc,CAC5B,OAAO,SAAS,SAAS,EACzB,WAAW,SAAS,eAAe,GAAG,eAAe,EACrD,IAAI,EAAE,oBAAoB,CAAC,OAAO,CAAC,GAAG,kBAAkB,CAAC,OAAO,CAAC;kBASjD,sBAAsB,OAAO,EAAE,WAAW,CAAC;;4DAqB5D"}
1
+ {"version":3,"file":"createTRPCNext.d.ts","sourceRoot":"","sources":["../src/createTRPCNext.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,wBAAwB,EAIzB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7C,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAY,MAAM,YAAY,CAAC;AAEhF,wBAAgB,cAAc,CAC5B,OAAO,SAAS,SAAS,EACzB,WAAW,SAAS,eAAe,GAAG,eAAe,EACrD,MAAM,GAAG,IAAI,EACb,IAAI,EAAE,oBAAoB,CAAC,OAAO,CAAC,GAAG,kBAAkB,CAAC,OAAO,CAAC;kBASjD,sBAAsB,OAAO,EAAE,WAAW,CAAC;;oEAqB5D"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trpc/next",
3
- "version": "10.0.0-rc.6",
3
+ "version": "10.0.0-rc.7",
4
4
  "description": "tRPC Next lib",
5
5
  "author": "KATT",
6
6
  "license": "MIT",
@@ -41,9 +41,9 @@
41
41
  ],
42
42
  "peerDependencies": {
43
43
  "@tanstack/react-query": "^4.3.8",
44
- "@trpc/client": "10.0.0-rc.6",
44
+ "@trpc/client": "10.0.0-rc.7",
45
45
  "@trpc/react-query": "^10.0.0-proxy-beta.21",
46
- "@trpc/server": "10.0.0-rc.6",
46
+ "@trpc/server": "10.0.0-rc.7",
47
47
  "next": "*",
48
48
  "react": ">=16.8.0",
49
49
  "react-dom": ">=16.8.0"
@@ -53,13 +53,13 @@
53
53
  },
54
54
  "devDependencies": {
55
55
  "@tanstack/react-query": "^4.3.8",
56
- "@trpc/client": "10.0.0-rc.6",
57
- "@trpc/react-query": "^10.0.0-rc.6",
58
- "@trpc/server": "10.0.0-rc.6",
56
+ "@trpc/client": "10.0.0-rc.7",
57
+ "@trpc/react-query": "^10.0.0-rc.7",
58
+ "@trpc/server": "10.0.0-rc.7",
59
59
  "@types/express": "^4.17.12",
60
60
  "@types/node": "^18.7.20",
61
61
  "express": "^4.17.1",
62
- "next": "^12.3.1",
62
+ "next": "^13.0.0",
63
63
  "react": "^18.2.0",
64
64
  "react-dom": "^18.2.0",
65
65
  "rollup": "^2.79.1",
@@ -69,5 +69,5 @@
69
69
  "publishConfig": {
70
70
  "access": "public"
71
71
  },
72
- "gitHead": "9ec752b68e28a45e0278fdc13c5318bc7403eb74"
72
+ "gitHead": "f019f64a8200a881cbaf18f3e238c6a8898f3d70"
73
73
  }
@@ -14,6 +14,7 @@ import { WithTRPCNoSSROptions, WithTRPCSSROptions, withTRPC } from './withTRPC';
14
14
  export function createTRPCNext<
15
15
  TRouter extends AnyRouter,
16
16
  TSSRContext extends NextPageContext = NextPageContext,
17
+ TFlags = null,
17
18
  >(opts: WithTRPCNoSSROptions<TRouter> | WithTRPCSSROptions<TRouter>) {
18
19
  const hooks = createHooksInternal<TRouter, TSSRContext>({
19
20
  unstable_overrides: opts.unstable_overrides,
@@ -25,7 +26,7 @@ export function createTRPCNext<
25
26
  type CreateTRPCNext = {
26
27
  useContext(): CreateReactUtilsProxy<TRouter, TSSRContext>;
27
28
  withTRPC: typeof _withTRPC;
28
- } & DecoratedProcedureRecord<TRouter['_def']['record']>;
29
+ } & DecoratedProcedureRecord<TRouter['_def']['record'], TFlags>;
29
30
 
30
31
  return createFlatProxy<CreateTRPCNext>((key) => {
31
32
  if (key === 'useContext') {