eddev 2.0.0-beta.255 → 2.0.0-beta.256

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,47 +1,28 @@
1
1
  import { AnyProcedure } from "@trpc/server";
2
2
  import { FetchCreateContextFnOptions } from "@trpc/server/adapters/fetch";
3
+ import superjson from "superjson";
3
4
  import { ServerContext } from "./server-context";
4
- export declare const rpcApi: {
5
- _config: import("@trpc/server/unstable-core-do-not-import").RootConfig<{
6
- ctx: RPCContext;
7
- meta: object;
8
- errorShape: import("@trpc/server/unstable-core-do-not-import").DefaultErrorShape;
9
- transformer: true;
10
- }>;
11
- procedure: import("@trpc/server/unstable-core-do-not-import").ProcedureBuilder<RPCContext, object, object, typeof import("@trpc/server/unstable-core-do-not-import").unsetMarker, typeof import("@trpc/server/unstable-core-do-not-import").unsetMarker, typeof import("@trpc/server/unstable-core-do-not-import").unsetMarker, typeof import("@trpc/server/unstable-core-do-not-import").unsetMarker, false>;
12
- middleware: <$ContextOverrides>(fn: import("@trpc/server/unstable-core-do-not-import").MiddlewareFunction<RPCContext, object, object, $ContextOverrides, unknown>) => import("@trpc/server/unstable-core-do-not-import").MiddlewareBuilder<RPCContext, object, $ContextOverrides, unknown>;
13
- router: <TInput extends import("@trpc/server/unstable-core-do-not-import").CreateRouterOptions>(input: TInput) => import("@trpc/server/unstable-core-do-not-import").BuiltRouter<{
14
- ctx: RPCContext;
15
- meta: object;
16
- errorShape: import("@trpc/server/unstable-core-do-not-import").DefaultErrorShape;
17
- transformer: true;
18
- }, import("@trpc/server/unstable-core-do-not-import").DecorateCreateRouterOptions<TInput>>;
19
- mergeRouters: typeof import("@trpc/server/unstable-core-do-not-import").mergeRouters;
20
- createCallerFactory: <TRecord extends import("@trpc/server").RouterRecord>(router: Pick<import("@trpc/server/unstable-core-do-not-import").Router<{
21
- ctx: RPCContext;
22
- meta: object;
23
- errorShape: import("@trpc/server/unstable-core-do-not-import").DefaultErrorShape;
24
- transformer: true;
25
- }, TRecord>, "_def">) => import("@trpc/server/unstable-core-do-not-import").RouterCaller<{
26
- ctx: RPCContext;
27
- meta: object;
28
- errorShape: import("@trpc/server/unstable-core-do-not-import").DefaultErrorShape;
29
- transformer: true;
30
- }, TRecord>;
31
- };
5
+ export declare const rpcApi: import("@trpc/server").TRPCRootObject<RPCContext, object, {
6
+ transformer: typeof superjson;
7
+ }, {
8
+ ctx: RPCContext;
9
+ meta: object;
10
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
11
+ transformer: true;
12
+ }>;
32
13
  type RouterSchema = Record<string, Record<string, AnyProcedure> | AnyProcedure>;
33
14
  export declare const rpc: {
34
- middleware: <$ContextOverrides>(fn: import("@trpc/server/unstable-core-do-not-import").MiddlewareFunction<RPCContext, object, object, $ContextOverrides, unknown>) => import("@trpc/server/unstable-core-do-not-import").MiddlewareBuilder<RPCContext, object, $ContextOverrides, unknown>;
35
- procedure: import("@trpc/server/unstable-core-do-not-import").ProcedureBuilder<RPCContext, object, object, typeof import("@trpc/server/unstable-core-do-not-import").unsetMarker, typeof import("@trpc/server/unstable-core-do-not-import").unsetMarker, typeof import("@trpc/server/unstable-core-do-not-import").unsetMarker, typeof import("@trpc/server/unstable-core-do-not-import").unsetMarker, false>;
15
+ middleware: <$ContextOverrides>(fn: import("@trpc/server").TRPCMiddlewareFunction<RPCContext, object, object, $ContextOverrides, unknown>) => import("@trpc/server").TRPCMiddlewareBuilder<RPCContext, object, $ContextOverrides, unknown>;
16
+ procedure: import("@trpc/server").TRPCProcedureBuilder<RPCContext, object, object, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, false>;
36
17
  router<T extends RouterSchema>(routes: T): T;
37
18
  };
38
19
  export declare function defineServerContext<T>(func: (opts: FetchCreateContextFnOptions) => T): (opts: FetchCreateContextFnOptions) => T;
39
- export declare function instantiateRouter<T extends RouterSchema>(routes: T): import("@trpc/server/unstable-core-do-not-import").BuiltRouter<{
20
+ export declare function instantiateRouter<T extends RouterSchema>(routes: T): import("@trpc/server").TRPCBuiltRouter<{
40
21
  ctx: RPCContext;
41
22
  meta: object;
42
- errorShape: import("@trpc/server/unstable-core-do-not-import").DefaultErrorShape;
23
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
43
24
  transformer: true;
44
- }, import("@trpc/server/unstable-core-do-not-import").DecorateCreateRouterOptions<T>>;
25
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<T>>;
45
26
  export type InferRPCServerContext<TFunc extends null | ((opts: FetchCreateContextFnOptions) => any)> = {
46
27
  req: Request;
47
28
  searchParams: URLSearchParams;
@@ -1 +1 @@
1
- {"version":3,"file":"rpc.d.ts","sourceRoot":"","sources":["../../../src/app/server/rpc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAY,MAAM,cAAc,CAAA;AACrD,OAAO,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAA;AAEzE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAEhD,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEjB,CAAA;AAEF,KAAK,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,GAAG,YAAY,CAAC,CAAA;AAE/E,eAAO,MAAM,GAAG;;;WAGP,CAAC,SAAS,YAAY,UAAU,CAAC,GAAG,CAAC;CAG7C,CAAA;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EACnC,IAAI,EAAE,CAAC,IAAI,EAAE,2BAA2B,KAAK,CAAC,GAC7C,CAAC,IAAI,EAAE,2BAA2B,KAAK,CAAC,CAE1C;AAED,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,YAAY,EAAE,MAAM,EAAE,CAAC;;;;;sFAElE;AAED,MAAM,MAAM,qBAAqB,CAAC,KAAK,SAAS,IAAI,GAAG,C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MAAM,EAAE,aAAa,CAAA;CACtB,GAAG,CAAC,KAAK,SAAS,CAAC,IAAI,EAAE,2BAA2B,KAAK,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAA"}
@@ -50,7 +50,7 @@ export declare class ServerContext {
50
50
  bypass?: boolean;
51
51
  newOrigin?: string;
52
52
  }): Promise<ServerAppData>;
53
- extractRequestHeaders(req?: RequestHeaders): Partial<Record<import("vinxi/http").HTTPHeaderName, string | undefined>>;
53
+ extractRequestHeaders(req?: RequestHeaders): Partial<Record<import("h3").HTTPHeaderName, string | undefined>>;
54
54
  fetchNamedQuery(req: {
55
55
  name: string;
56
56
  bypass: boolean;
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "2.0.0-beta.255";
1
+ export declare const VERSION = "2.0.0-beta.256";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- export const VERSION = "2.0.0-beta.255";
1
+ export const VERSION = "2.0.0-beta.256";
@@ -1 +1 @@
1
- {"version":3,"file":"vinxi-app.d.ts","sourceRoot":"","sources":["../../../src/node/compiler/vinxi-app.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AAGtD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAI/C,MAAM,MAAM,OAAO,GAAG;IACpB,IAAI,EAAE,aAAa,GAAG,YAAY,CAAA;IAClC,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,GAAG,CAAC,EAAE,WAAW,CAAC,GAAG,CAAC,CAAA;IACtB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,WAAW,EAAE,CAAA;IACtB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IACnB,MAAM,EAAE,QAAQ,CAAA;CACjB,CAAA;AAED,KAAK,UAAU,GAAG,KAAK,GAAG,MAAM,GAAG,K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O,CAAC,iBAAiB,CAAC,CAAA;CAC1C,CAAA;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,OAAO,uBAgP3C"}
@@ -88,6 +88,10 @@ export function createVinxiApp(args) {
88
88
  isr: false,
89
89
  cache: false,
90
90
  },
91
+ "/_data/submit-gf": {
92
+ isr: false,
93
+ cache: false,
94
+ },
91
95
  ...args.rpcBases?.reduce((acc, base) => {
92
96
  return {
93
97
  ...acc,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eddev",
3
- "version": "2.0.0-beta.255",
3
+ "version": "2.0.0-beta.256",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",