houdini 2.0.0-next.23 → 2.0.0-next.25
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.
- package/build/adapter/index.d.ts +1 -1
- package/build/cmd/init.js +2 -2
- package/build/lib/codegen.d.ts +1 -1
- package/build/lib/config.d.ts +4 -2
- package/build/lib/imports.d.ts +1 -1
- package/build/package.json +1 -1
- package/build/router/match.d.ts +2 -2
- package/build/router/server.d.ts +1 -1
- package/build/router/server.js +3 -3
- package/build/router/session.d.ts +1 -1
- package/build/router/session.js +2 -2
- package/build/router/types.d.ts +2 -2
- package/build/runtime/documentStore.d.ts +1 -1
- package/build/vite/hmr.d.ts +1 -1
- package/build/vite/houdini.d.ts +1 -1
- package/build/vite/schema.d.ts +1 -1
- package/package.json +1 -1
package/build/adapter/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { serverAdapterFactory as createAdapter } from '../router/server';
|
|
1
|
+
import type { serverAdapterFactory as createAdapter } from '../router/server.js';
|
|
2
2
|
export declare const endpoint: string;
|
|
3
3
|
export declare let createServerAdapter: (args: Omit<Parameters<typeof createAdapter>[0], 'on_render' | 'manifest' | 'yoga' | 'schema' | 'graphqlEndpoint' | 'componentCache' | 'client' | 'config_file'>) => ReturnType<typeof createAdapter>;
|
package/build/cmd/init.js
CHANGED
|
@@ -437,12 +437,12 @@ async function packageJSON(targetPath, frameworkInfo) {
|
|
|
437
437
|
}
|
|
438
438
|
packageJSON2.devDependencies = {
|
|
439
439
|
...packageJSON2.devDependencies,
|
|
440
|
-
houdini: "^2.0.0-next.
|
|
440
|
+
houdini: "^2.0.0-next.25"
|
|
441
441
|
};
|
|
442
442
|
if (frameworkInfo.framework === "svelte" || frameworkInfo.framework === "kit") {
|
|
443
443
|
packageJSON2.devDependencies = {
|
|
444
444
|
...packageJSON2.devDependencies,
|
|
445
|
-
"houdini-svelte": "^3.0.0-next.
|
|
445
|
+
"houdini-svelte": "^3.0.0-next.26"
|
|
446
446
|
};
|
|
447
447
|
} else {
|
|
448
448
|
throw new Error(`Unmanaged framework: "${JSON.stringify(frameworkInfo)}"`);
|
package/build/lib/codegen.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type DatabaseSync } from 'node:sqlite';
|
|
2
2
|
import * as conventions from '../router/conventions.js';
|
|
3
3
|
import type { Config } from './config.js';
|
|
4
|
-
import type { ProjectManifest } from './types';
|
|
4
|
+
import type { ProjectManifest } from './types.js';
|
|
5
5
|
export type PluginSpec = {
|
|
6
6
|
name: string;
|
|
7
7
|
port: number;
|
package/build/lib/config.d.ts
CHANGED
|
@@ -195,8 +195,10 @@ export type ScalarSpec = {
|
|
|
195
195
|
module?: string;
|
|
196
196
|
default?: boolean;
|
|
197
197
|
};
|
|
198
|
-
export
|
|
199
|
-
|
|
198
|
+
export interface HoudiniPluginConfig {
|
|
199
|
+
}
|
|
200
|
+
export interface HoudiniClientPluginConfig {
|
|
201
|
+
}
|
|
200
202
|
export declare class Config {
|
|
201
203
|
config_file: ConfigFile;
|
|
202
204
|
filepath: string;
|
package/build/lib/imports.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as recast from 'recast';
|
|
2
|
-
import type { TransformPage, Script } from './types';
|
|
2
|
+
import type { TransformPage, Script } from './types.js';
|
|
3
3
|
type Identifier = recast.types.namedTypes.Identifier;
|
|
4
4
|
export declare function ensure_imports(args: {
|
|
5
5
|
script: Script;
|
package/build/package.json
CHANGED
package/build/router/match.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ConfigFile } from '../lib';
|
|
2
|
-
import type { RouterManifest, RouterPageManifest } from './types';
|
|
1
|
+
import type { ConfigFile } from '../lib/index.js';
|
|
2
|
+
import type { RouterManifest, RouterPageManifest } from './types.js';
|
|
3
3
|
type GraphQLVariables = Record<string, string | number | boolean | null> | null;
|
|
4
4
|
export type RouteParam = {
|
|
5
5
|
name: string;
|
package/build/router/server.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { GraphQLSchema } from 'graphql';
|
|
|
4
4
|
import { YogaServer, type YogaServerOptions as YogaConfig } from 'graphql-yoga';
|
|
5
5
|
import type { ConfigFile } from '../lib/config.js';
|
|
6
6
|
import type { HoudiniClient } from '../runtime/client.js';
|
|
7
|
-
import type { RouterManifest, RouterPageManifest, YogaServerOptions } from './types';
|
|
7
|
+
import type { RouterManifest, RouterPageManifest, YogaServerOptions } from './types.js';
|
|
8
8
|
export declare function _serverHandler<ComponentType = unknown>({ schema, server, client, production, manifest, graphqlEndpoint, on_render, componentCache, config_file, }: {
|
|
9
9
|
schema?: GraphQLSchema | null;
|
|
10
10
|
server?: Server<any, any>;
|
package/build/router/server.js
CHANGED
|
@@ -2,9 +2,9 @@ import { createServerAdapter } from "@whatwg-node/server";
|
|
|
2
2
|
import {
|
|
3
3
|
YogaServer
|
|
4
4
|
} from "graphql-yoga";
|
|
5
|
-
import { serialize as encodeCookie } from "./cookies";
|
|
6
|
-
import { find_match } from "./match";
|
|
7
|
-
import { get_session, handle_request, session_cookie_name } from "./session";
|
|
5
|
+
import { serialize as encodeCookie } from "./cookies.js";
|
|
6
|
+
import { find_match } from "./match.js";
|
|
7
|
+
import { get_session, handle_request, session_cookie_name } from "./session.js";
|
|
8
8
|
function _serverHandler({
|
|
9
9
|
schema,
|
|
10
10
|
server,
|
package/build/router/session.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { parse } from "./cookies";
|
|
2
|
-
import { decode, encode, verify } from "./jwt";
|
|
1
|
+
import { parse } from "./cookies.js";
|
|
2
|
+
import { decode, encode, verify } from "./jwt.js";
|
|
3
3
|
async function handle_request(args) {
|
|
4
4
|
const plugin_config = args.config.router ?? {};
|
|
5
5
|
const { pathname } = new URL(args.request.url);
|
package/build/router/types.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { createYoga } from 'graphql-yoga';
|
|
2
2
|
import type { QueryArtifact } from '../runtime/types.js';
|
|
3
|
-
import type { RouteParam } from './match';
|
|
3
|
+
import type { RouteParam } from './match.js';
|
|
4
4
|
export type YogaServer = ReturnType<typeof createYoga>;
|
|
5
5
|
export type YogaServerOptions = Parameters<typeof createYoga>[0];
|
|
6
6
|
export type RouterManifest<_ComponentType> = {
|
|
7
7
|
pages: Record<string, RouterPageManifest<_ComponentType>>;
|
|
8
8
|
};
|
|
9
|
-
export type { ServerAdapterFactory } from './server';
|
|
9
|
+
export type { ServerAdapterFactory } from './server.js';
|
|
10
10
|
export type RouterPageManifest<_ComponentType> = {
|
|
11
11
|
id: string;
|
|
12
12
|
pattern: RegExp;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ConfigFile } from 'houdini';
|
|
2
|
-
import type { HoudiniClient } from '.';
|
|
2
|
+
import type { HoudiniClient } from './index.js';
|
|
3
3
|
import type { Layer } from './cache/storage.js';
|
|
4
4
|
import { Writable } from './store.js';
|
|
5
5
|
import type { DocumentArtifact, QueryResult, GraphQLObject, SubscriptionSpec, CachePolicies, GraphQLVariables } from './types.js';
|
package/build/vite/hmr.d.ts
CHANGED
package/build/vite/houdini.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Plugin as VitePlugin } from 'vite';
|
|
2
|
-
import type { VitePluginContext } from '.';
|
|
2
|
+
import type { VitePluginContext } from './index.js';
|
|
3
3
|
import type { CompilerProxy } from '../lib/index.js';
|
|
4
4
|
export declare let compiler: CompilerProxy;
|
|
5
5
|
export declare function houdini(ctx: VitePluginContext): VitePlugin;
|
package/build/vite/schema.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PluginOption } from 'vite';
|
|
2
|
-
import type { VitePluginContext } from '.';
|
|
2
|
+
import type { VitePluginContext } from './index.js';
|
|
3
3
|
export declare function refresh_on_schema(ctx: VitePluginContext): PluginOption;
|
|
4
4
|
export declare function poll_remote_schema(_ctx: VitePluginContext): PluginOption;
|
|
5
5
|
export declare function watch_local_schema(_ctx: VitePluginContext): PluginOption;
|