houdini 1.2.11 → 1.2.13
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/cmd/init.d.ts +1 -0
- package/build/cmd-cjs/index.js +1563 -16182
- package/build/cmd-esm/index.js +1563 -16182
- package/build/codegen/transforms/collectDefinitions.d.ts +1 -1
- package/build/codegen/utils/flattenSelections.d.ts +1 -1
- package/build/codegen-cjs/index.js +298 -14974
- package/build/codegen-esm/index.js +300 -14976
- package/build/lib/config.d.ts +4 -0
- package/build/lib/index.d.ts +1 -1
- package/build/{router → lib/router}/conventions.d.ts +2 -1
- package/build/{router → lib/router}/index.d.ts +2 -1
- package/build/lib/router/manifest.d.ts +12 -0
- package/build/lib/router/server.d.ts +4 -0
- package/build/{router → lib/router}/types.d.ts +3 -2
- package/build/lib/types.d.ts +2 -2
- package/build/lib-cjs/index.js +1348 -15895
- package/build/lib-esm/index.js +1344 -15895
- package/build/runtime/client/documentStore.d.ts +1 -0
- package/build/runtime/client/index.d.ts +14 -2
- package/build/runtime/lib/config.d.ts +19 -0
- package/build/runtime/lib/types.d.ts +39 -0
- package/build/runtime-cjs/client/documentStore.d.ts +1 -0
- package/build/runtime-cjs/client/documentStore.js +42 -2
- package/build/runtime-cjs/client/index.d.ts +14 -2
- package/build/runtime-cjs/client/index.js +8 -2
- package/build/runtime-cjs/lib/config.d.ts +19 -0
- package/build/runtime-cjs/lib/config.js +10 -0
- package/build/runtime-cjs/lib/types.d.ts +39 -0
- package/build/runtime-cjs/router/server.js +1 -1
- package/build/runtime-esm/client/documentStore.d.ts +1 -0
- package/build/runtime-esm/client/documentStore.js +42 -2
- package/build/runtime-esm/client/index.d.ts +14 -2
- package/build/runtime-esm/client/index.js +8 -2
- package/build/runtime-esm/lib/config.d.ts +19 -0
- package/build/runtime-esm/lib/config.js +8 -0
- package/build/runtime-esm/lib/types.d.ts +39 -0
- package/build/runtime-esm/router/server.js +1 -1
- package/build/test-cjs/index.js +325 -14977
- package/build/test-esm/index.js +327 -14979
- package/build/vite-cjs/index.js +1825 -16189
- package/build/vite-esm/index.js +1825 -16189
- package/package.json +2 -9
- package/build/router/manifest.d.ts +0 -45
- package/build/router-cjs/index.js +0 -72353
- package/build/router-cjs/package.json +0 -1
- package/build/router-esm/index.js +0 -72345
- package/build/router-esm/package.json +0 -1
package/build/lib/config.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export declare class Config {
|
|
|
9
9
|
#private;
|
|
10
10
|
filepath: string;
|
|
11
11
|
rootDir: string;
|
|
12
|
+
localSchema: boolean;
|
|
12
13
|
projectRoot: string;
|
|
13
14
|
schema: graphql.GraphQLSchema;
|
|
14
15
|
schemaPath?: string;
|
|
@@ -50,6 +51,9 @@ export declare class Config {
|
|
|
50
51
|
get newSchema(): string;
|
|
51
52
|
get artifactDirectory(): string;
|
|
52
53
|
get artifactDirectoryName(): string;
|
|
54
|
+
get sourceDir(): string;
|
|
55
|
+
get localApiDir(): string;
|
|
56
|
+
get localAPIUrl(): string;
|
|
53
57
|
get artifactTypeDirectory(): string;
|
|
54
58
|
get runtimeDirectory(): string;
|
|
55
59
|
get definitionsDirectory(): string;
|
package/build/lib/index.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { type Config } from '
|
|
1
|
+
import { type Config } from '..';
|
|
2
2
|
/** The location of the project's router */
|
|
3
3
|
export declare function router_path(config: Config): string;
|
|
4
4
|
/** The location of the page component */
|
|
5
5
|
export declare function page_entry_path(config: Config, id: string, base?: string): string;
|
|
6
6
|
export declare function render_client_path(config: Config, base?: string): string;
|
|
7
7
|
export declare function render_server_path(config: Config, base?: string): string;
|
|
8
|
+
export declare function render_yoga_path(config: Config, base?: string): string;
|
|
8
9
|
export declare function render_app_path(config: Config, base?: string): string;
|
|
9
10
|
export declare function page_unit_path(config: Config, id: string, base?: string): string;
|
|
10
11
|
export declare function layout_unit_path(config: Config, id: string, base?: string): string;
|
|
@@ -5,4 +5,5 @@
|
|
|
5
5
|
export * as routerConventions from './conventions';
|
|
6
6
|
export * from './manifest';
|
|
7
7
|
export * from './types';
|
|
8
|
-
export
|
|
8
|
+
export * from './server';
|
|
9
|
+
export { handle_request, get_session } from '../../runtime/router/server';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type Config } from '..';
|
|
2
|
+
import type { ProjectManifest, PageManifest, QueryManifest } from '../../runtime/lib/types';
|
|
3
|
+
export type { ProjectManifest, PageManifest, QueryManifest };
|
|
4
|
+
/**
|
|
5
|
+
* Walk down the routes directory and build a normalized description of the project's
|
|
6
|
+
* filesystem.
|
|
7
|
+
*/
|
|
8
|
+
export declare function load_manifest(args: {
|
|
9
|
+
config: Config;
|
|
10
|
+
includeArtifacts?: boolean;
|
|
11
|
+
}): Promise<ProjectManifest>;
|
|
12
|
+
export declare function extractQueries(source: string): Promise<string[]>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import type { routerConventions } from '.';
|
|
2
|
-
import type { Config } from '../
|
|
1
|
+
import type { ProjectManifest, routerConventions } from '.';
|
|
2
|
+
import type { Config } from '../config';
|
|
3
3
|
export type Adapter = (args: {
|
|
4
4
|
config: Config;
|
|
5
5
|
conventions: typeof routerConventions;
|
|
6
6
|
sourceDir: string;
|
|
7
7
|
publicBase: string;
|
|
8
8
|
outDir: string;
|
|
9
|
+
manifest: ProjectManifest;
|
|
9
10
|
}) => void | Promise<void>;
|
package/build/lib/types.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type graphql from 'graphql';
|
|
1
|
+
import type * as graphql from 'graphql';
|
|
2
2
|
import type * as recast from 'recast';
|
|
3
3
|
import type { CustomPluginOptions, InputOptions, LoadResult, MinimalPluginContext, NormalizedInputOptions, NullValue, ObjectHook, PluginContext, ResolveIdResult, SourceMapInput } from 'rollup';
|
|
4
4
|
import type { ConfigEnv, ResolvedConfig, UserConfig, ViteDevServer } from 'vite';
|
|
5
|
-
import type { Adapter } from '../router';
|
|
6
5
|
import type { ConfigFile } from '../runtime/lib/config';
|
|
7
6
|
import type { ArtifactKinds, BaseCompiledDocument, DocumentArtifact, ValueOf } from '../runtime/lib/types';
|
|
8
7
|
import type { TransformPage } from '../vite/houdini';
|
|
9
8
|
import type { Config } from './config';
|
|
9
|
+
import type { Adapter } from './router';
|
|
10
10
|
type Program = recast.types.namedTypes.Program;
|
|
11
11
|
export type Maybe<T> = T | null | undefined;
|
|
12
12
|
export type Script = Program;
|