houdini 2.0.0-next.1 → 2.0.0-next.11
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-cjs/index.js +10068 -10551
- package/build/cmd-esm/index.js +10065 -10548
- package/build/codegen/generators/typescript/addReferencedInputTypes.d.ts +1 -1
- package/build/codegen/generators/typescript/inlineType.d.ts +2 -1
- package/build/codegen-cjs/index.js +9887 -10448
- package/build/codegen-esm/index.js +9884 -10445
- package/build/lib/fs.d.ts +2 -2
- package/build/lib/types.d.ts +3 -3
- package/build/lib/typescript.d.ts +3 -3
- package/build/lib-cjs/index.js +9394 -10158
- package/build/lib-esm/index.js +9394 -10158
- package/build/runtime/lib/types.d.ts +2 -2
- package/build/runtime/public/cache.d.ts +0 -1
- package/build/runtime/router/cookies.d.ts +9 -9
- package/build/runtime/router/server.d.ts +7 -7
- package/build/runtime/router/session.d.ts +1 -0
- package/build/runtime/server/index.d.ts +17 -0
- package/build/runtime-cjs/cache/cache.js +36 -29
- package/build/runtime-cjs/client/documentStore.js +2 -2
- package/build/runtime-cjs/client/index.js +1 -1
- package/build/runtime-cjs/client/plugins/test.js +2 -2
- package/build/runtime-cjs/lib/types.d.ts +2 -2
- package/build/runtime-cjs/public/cache.d.ts +0 -1
- package/build/runtime-cjs/public/cache.js +0 -14
- package/build/runtime-cjs/router/cookies.d.ts +9 -9
- package/build/runtime-cjs/router/cookies.js +1 -1
- package/build/runtime-cjs/router/server.d.ts +7 -7
- package/build/runtime-cjs/router/server.js +33 -18
- package/build/runtime-cjs/router/session.d.ts +1 -0
- package/build/runtime-cjs/router/session.js +7 -2
- package/build/runtime-cjs/server/index.d.ts +17 -0
- package/build/runtime-cjs/server/index.js +62 -0
- package/build/runtime-esm/cache/cache.js +36 -29
- package/build/runtime-esm/client/documentStore.js +2 -2
- package/build/runtime-esm/client/index.js +1 -1
- package/build/runtime-esm/client/plugins/test.js +2 -2
- package/build/runtime-esm/lib/types.d.ts +2 -2
- package/build/runtime-esm/public/cache.d.ts +0 -1
- package/build/runtime-esm/public/cache.js +0 -14
- package/build/runtime-esm/router/cookies.d.ts +9 -9
- package/build/runtime-esm/router/cookies.js +1 -1
- package/build/runtime-esm/router/server.d.ts +7 -7
- package/build/runtime-esm/router/server.js +37 -22
- package/build/runtime-esm/router/session.d.ts +1 -0
- package/build/runtime-esm/router/session.js +5 -1
- package/build/runtime-esm/server/index.d.ts +17 -0
- package/build/runtime-esm/server/index.js +38 -0
- package/build/test-cjs/index.js +9885 -10447
- package/build/test-esm/index.js +9882 -10444
- package/build/vite/hmr.d.ts +0 -2
- package/build/vite-cjs/index.js +9805 -10366
- package/build/vite-esm/index.js +9802 -10363
- package/package.json +4 -4
package/build/lib/fs.d.ts
CHANGED
|
@@ -8,8 +8,8 @@ export declare function readFile(filepath: string, encoding?: BufferEncoding): P
|
|
|
8
8
|
export declare function readFileSync(filepath: string): string | null;
|
|
9
9
|
export declare function writeFile(filepath: string, data: string): Promise<void>;
|
|
10
10
|
export declare function access(filepath: string): Promise<void | import("memfs/lib/Stats").Stats<number>>;
|
|
11
|
-
export declare function mkdirp(filepath: string): Promise<void>;
|
|
12
|
-
export declare function mkdirpSync(filepath: string): Promise<void>;
|
|
11
|
+
export declare function mkdirp(filepath: string): Promise<string | void>;
|
|
12
|
+
export declare function mkdirpSync(filepath: string): Promise<string | void>;
|
|
13
13
|
export declare function mkdir(filepath: string): Promise<void>;
|
|
14
14
|
export declare function rmdir(filepath: string): Promise<unknown>;
|
|
15
15
|
export declare function stat(filepath: string): Promise<import("memfs/lib/Stats").Stats<number> | fsExtra.Stats>;
|
package/build/lib/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
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
|
-
import type { ConfigEnv, ResolvedConfig, UserConfig, ViteDevServer } from 'vite';
|
|
4
|
+
import type { ConfigEnv, MinimalPluginContextWithoutEnvironment, ResolvedConfig, UserConfig, ViteDevServer } from 'vite';
|
|
5
5
|
import type { ConfigFile } from '../runtime/lib/config';
|
|
6
6
|
import type { ArtifactKinds, BaseCompiledDocument, DocumentArtifact, ValueOf } from '../runtime/lib/types';
|
|
7
7
|
import type { TransformPage } from '../vite/houdini';
|
|
@@ -265,7 +265,7 @@ export type PluginHooks = {
|
|
|
265
265
|
}) => void | Promise<void>;
|
|
266
266
|
buildEnd?: (this: PluginContext, error?: Error, houdiniConfig?: Config) => void | Promise<void>;
|
|
267
267
|
closeBundle?: (this: PluginContext, config: Config) => void | Promise<void>;
|
|
268
|
-
configResolved?: ObjectHook<(this:
|
|
268
|
+
configResolved?: ObjectHook<(this: MinimalPluginContextWithoutEnvironment, config: ResolvedConfig) => void | Promise<void>>;
|
|
269
269
|
options?: (this: MinimalPluginContext, options: InputOptions & {
|
|
270
270
|
houdiniConfig: Config;
|
|
271
271
|
}) => InputOptions | NullValue;
|
|
@@ -279,7 +279,7 @@ export type PluginHooks = {
|
|
|
279
279
|
config: Config;
|
|
280
280
|
ssr?: boolean;
|
|
281
281
|
}) => Promise<LoadResult> | LoadResult>;
|
|
282
|
-
configureServer?: ObjectHook<(this:
|
|
282
|
+
configureServer?: ObjectHook<(this: MinimalPluginContextWithoutEnvironment, server: ViteDevServer & {
|
|
283
283
|
houdiniConfig: Config;
|
|
284
284
|
}) => (() => void) | void | Promise<(() => void) | void>, {}> | undefined;
|
|
285
285
|
};
|
|
@@ -6,15 +6,15 @@ import { TypeWrapper } from './graphql';
|
|
|
6
6
|
export declare function unwrappedTsTypeReference(config: Config, filepath: string, missingScalars: Set<string>, { type, wrappers, }: {
|
|
7
7
|
type: graphql.GraphQLNamedType;
|
|
8
8
|
wrappers: TypeWrapper[];
|
|
9
|
-
}, body: StatementKind[]): TSTypeKind;
|
|
9
|
+
}, body: StatementKind[], input: boolean): TSTypeKind;
|
|
10
10
|
export declare function tsTypeReference(config: Config, filepath: string, missingScalars: Set<string>, definition: {
|
|
11
11
|
type: graphql.GraphQLScalarType | graphql.GraphQLInputType | graphql.GraphQLNamedType | graphql.TypeNode;
|
|
12
|
-
}, body: StatementKind[]): TSTypeKind;
|
|
12
|
+
}, body: StatementKind[], input: boolean): TSTypeKind;
|
|
13
13
|
export declare function enumReference(config: Config, body: StatementKind[], name: string): recast.types.namedTypes.TSTypeReference;
|
|
14
14
|
export declare function readonlyProperty(prop: recast.types.namedTypes.TSPropertySignature, enable?: boolean): recast.types.namedTypes.TSPropertySignature;
|
|
15
15
|
export declare function nullableField(inner: TSTypeKind, input?: boolean): recast.types.namedTypes.TSUnionType;
|
|
16
16
|
export declare function scalarPropertyValue(config: Config, filepath: string, missingScalars: Set<string>, target: graphql.GraphQLNamedType, body: StatementKind[], field: {
|
|
17
17
|
parent: string;
|
|
18
18
|
field: string;
|
|
19
|
-
} | null): TSTypeKind;
|
|
19
|
+
} | null, input: boolean): TSTypeKind;
|
|
20
20
|
export declare function writeTsConfig(config: Config): Promise<void>;
|