houdini 1.2.43 → 1.2.45
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-cjs/index.js +684 -786
- package/build/cmd-esm/index.js +534 -636
- package/build/codegen/generators/artifacts/inputs.d.ts +1 -1
- package/build/codegen/generators/comments/jsdoc.d.ts +2 -0
- package/build/codegen/transforms/index.d.ts +1 -0
- package/build/codegen/transforms/runtimeScalars.d.ts +2 -0
- package/build/codegen-cjs/index.js +677 -782
- package/build/codegen-esm/index.js +527 -632
- package/build/lib/config.d.ts +1 -0
- package/build/lib/graphql.d.ts +1 -1
- package/build/lib/index.d.ts +1 -0
- package/build/lib/typescript.d.ts +19 -0
- package/build/lib-cjs/index.js +711 -477
- package/build/lib-esm/index.js +705 -477
- package/build/runtime/client/index.d.ts +7 -1
- package/build/runtime/client/plugins/fragment.d.ts +2 -2
- package/build/runtime/client/plugins/mutation.d.ts +2 -1
- package/build/runtime/client/plugins/query.d.ts +2 -2
- package/build/runtime/lib/config.d.ts +12 -2
- package/build/runtime/lib/scalars.d.ts +1 -1
- package/build/runtime/lib/types.d.ts +17 -2
- package/build/runtime/router/session.d.ts +1 -2
- package/build/runtime/router/types.d.ts +3 -1
- package/build/runtime-cjs/client/index.d.ts +7 -1
- package/build/runtime-cjs/client/index.js +26 -11
- package/build/runtime-cjs/client/plugins/fragment.d.ts +2 -2
- package/build/runtime-cjs/client/plugins/fragment.js +4 -11
- package/build/runtime-cjs/client/plugins/mutation.d.ts +2 -1
- package/build/runtime-cjs/client/plugins/mutation.js +8 -15
- package/build/runtime-cjs/client/plugins/query.d.ts +2 -2
- package/build/runtime-cjs/client/plugins/query.js +18 -11
- package/build/runtime-cjs/lib/config.d.ts +12 -2
- package/build/runtime-cjs/lib/scalars.d.ts +1 -1
- package/build/runtime-cjs/lib/scalars.js +4 -0
- package/build/runtime-cjs/lib/types.d.ts +17 -2
- package/build/runtime-cjs/router/server.js +2 -3
- package/build/runtime-cjs/router/session.d.ts +1 -2
- package/build/runtime-cjs/router/session.js +25 -11
- package/build/runtime-cjs/router/types.d.ts +3 -1
- package/build/runtime-esm/client/index.d.ts +7 -1
- package/build/runtime-esm/client/index.js +26 -11
- package/build/runtime-esm/client/plugins/fragment.d.ts +2 -2
- package/build/runtime-esm/client/plugins/fragment.js +1 -2
- package/build/runtime-esm/client/plugins/mutation.d.ts +2 -1
- package/build/runtime-esm/client/plugins/mutation.js +1 -2
- package/build/runtime-esm/client/plugins/query.d.ts +2 -2
- package/build/runtime-esm/client/plugins/query.js +15 -2
- package/build/runtime-esm/lib/config.d.ts +12 -2
- package/build/runtime-esm/lib/scalars.d.ts +1 -1
- package/build/runtime-esm/lib/scalars.js +6 -0
- package/build/runtime-esm/lib/types.d.ts +17 -2
- package/build/runtime-esm/router/server.js +2 -3
- package/build/runtime-esm/router/session.d.ts +1 -2
- package/build/runtime-esm/router/session.js +25 -11
- package/build/runtime-esm/router/types.d.ts +3 -1
- package/build/test-cjs/index.js +706 -785
- package/build/test-esm/index.js +556 -635
- package/build/vite-cjs/index.js +793 -793
- package/build/vite-esm/index.js +643 -643
- package/package.json +1 -1
- package/build/codegen/generators/typescript/typeReference.d.ts +0 -8
- package/build/codegen/generators/typescript/types.d.ts +0 -10
package/build/lib/config.d.ts
CHANGED
|
@@ -114,6 +114,7 @@ export declare class Config {
|
|
|
114
114
|
get toggleFragmentSuffix(): string;
|
|
115
115
|
get deleteDirectiveSuffix(): string;
|
|
116
116
|
get loadingDirective(): string;
|
|
117
|
+
get runtimeScalarDirective(): string;
|
|
117
118
|
get whenDirective(): string;
|
|
118
119
|
get whenNotDirective(): string;
|
|
119
120
|
get liveDirective(): string;
|
package/build/lib/graphql.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export declare function definitionFromAncestors(ancestors: readonly any[]): {
|
|
|
22
22
|
};
|
|
23
23
|
export declare function formatErrors(e: unknown, afterError?: (e: Error) => void): void;
|
|
24
24
|
export declare function operation_requires_variables(operation: graphql.OperationDefinitionNode): boolean;
|
|
25
|
-
export declare function unwrapType(config: Config, type: any, wrappers?: TypeWrapper[]): {
|
|
25
|
+
export declare function unwrapType(config: Config, type: any, wrappers?: TypeWrapper[], convertRuntimeScalars?: boolean): {
|
|
26
26
|
type: graphql.GraphQLNamedType;
|
|
27
27
|
wrappers: TypeWrapper[];
|
|
28
28
|
};
|
package/build/lib/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export * from './deepMerge';
|
|
|
13
13
|
export * from './plugin';
|
|
14
14
|
export * from './detectTools';
|
|
15
15
|
export * from '../runtime/router/match';
|
|
16
|
+
export * from './typescript';
|
|
16
17
|
export * from './walk';
|
|
17
18
|
export type { EmbeddedGraphqlDocument } from './walk';
|
|
18
19
|
export * as fs from './fs';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { StatementKind, TSTypeKind } from 'ast-types/lib/gen/kinds';
|
|
2
|
+
import * as graphql from 'graphql';
|
|
3
|
+
import * as recast from 'recast';
|
|
4
|
+
import { type Config } from '.';
|
|
5
|
+
import { TypeWrapper } from './graphql';
|
|
6
|
+
export declare function unwrappedTsTypeReference(config: Config, filepath: string, missingScalars: Set<string>, { type, wrappers, }: {
|
|
7
|
+
type: graphql.GraphQLNamedType;
|
|
8
|
+
wrappers: TypeWrapper[];
|
|
9
|
+
}, body: StatementKind[]): TSTypeKind;
|
|
10
|
+
export declare function tsTypeReference(config: Config, filepath: string, missingScalars: Set<string>, definition: {
|
|
11
|
+
type: graphql.GraphQLScalarType | graphql.GraphQLInputType | graphql.GraphQLNamedType | graphql.TypeNode;
|
|
12
|
+
}, body: StatementKind[]): TSTypeKind;
|
|
13
|
+
export declare function enumReference(config: Config, body: StatementKind[], name: string): recast.types.namedTypes.TSTypeReference;
|
|
14
|
+
export declare function readonlyProperty(prop: recast.types.namedTypes.TSPropertySignature, enable?: boolean): recast.types.namedTypes.TSPropertySignature;
|
|
15
|
+
export declare function nullableField(inner: TSTypeKind, input?: boolean): recast.types.namedTypes.TSUnionType;
|
|
16
|
+
export declare function scalarPropertyValue(config: Config, filepath: string, missingScalars: Set<string>, target: graphql.GraphQLNamedType, body: StatementKind[], field: {
|
|
17
|
+
parent: string;
|
|
18
|
+
field: string;
|
|
19
|
+
} | null): TSTypeKind;
|