houdini 1.2.10 → 1.2.12

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.
Files changed (59) hide show
  1. package/build/cmd-cjs/index.js +1539 -16157
  2. package/build/cmd-esm/index.js +1541 -16159
  3. package/build/codegen/transforms/collectDefinitions.d.ts +1 -1
  4. package/build/codegen/utils/flattenSelections.d.ts +1 -1
  5. package/build/codegen-cjs/index.js +301 -14970
  6. package/build/codegen-esm/index.js +305 -14974
  7. package/build/lib/config.d.ts +4 -0
  8. package/build/lib/index.d.ts +1 -1
  9. package/build/lib/types.d.ts +2 -2
  10. package/build/lib-cjs/index.js +1600 -15892
  11. package/build/lib-esm/index.js +1596 -15894
  12. package/build/{lib/router → router}/conventions.d.ts +2 -1
  13. package/build/{lib/router → router}/index.d.ts +2 -0
  14. package/build/router/manifest.d.ts +12 -0
  15. package/build/router/server.d.ts +4 -0
  16. package/build/{lib/router → router}/types.d.ts +3 -2
  17. package/build/router-cjs/index.js +57736 -0
  18. package/build/router-cjs/package.json +1 -0
  19. package/build/router-esm/index.js +57726 -0
  20. package/build/router-esm/package.json +1 -0
  21. package/build/runtime/client/documentStore.d.ts +1 -0
  22. package/build/runtime/client/index.d.ts +14 -2
  23. package/build/runtime/lib/config.d.ts +19 -0
  24. package/build/runtime/lib/types.d.ts +39 -0
  25. package/build/runtime/router/cookies.d.ts +41 -0
  26. package/build/runtime/router/jwt.d.ts +117 -0
  27. package/build/runtime/router/server.d.ts +25 -0
  28. package/build/runtime-cjs/client/documentStore.d.ts +1 -0
  29. package/build/runtime-cjs/client/documentStore.js +42 -2
  30. package/build/runtime-cjs/client/index.d.ts +14 -2
  31. package/build/runtime-cjs/client/index.js +8 -2
  32. package/build/runtime-cjs/lib/config.d.ts +19 -0
  33. package/build/runtime-cjs/lib/config.js +10 -0
  34. package/build/runtime-cjs/lib/types.d.ts +39 -0
  35. package/build/runtime-cjs/router/cookies.d.ts +41 -0
  36. package/build/runtime-cjs/router/cookies.js +168 -0
  37. package/build/runtime-cjs/router/jwt.d.ts +117 -0
  38. package/build/runtime-cjs/router/jwt.js +181 -0
  39. package/build/runtime-cjs/router/server.d.ts +25 -0
  40. package/build/runtime-cjs/router/server.js +78 -0
  41. package/build/runtime-esm/client/documentStore.d.ts +1 -0
  42. package/build/runtime-esm/client/documentStore.js +42 -2
  43. package/build/runtime-esm/client/index.d.ts +14 -2
  44. package/build/runtime-esm/client/index.js +8 -2
  45. package/build/runtime-esm/lib/config.d.ts +19 -0
  46. package/build/runtime-esm/lib/config.js +8 -0
  47. package/build/runtime-esm/lib/types.d.ts +39 -0
  48. package/build/runtime-esm/router/cookies.d.ts +41 -0
  49. package/build/runtime-esm/router/cookies.js +143 -0
  50. package/build/runtime-esm/router/jwt.d.ts +117 -0
  51. package/build/runtime-esm/router/jwt.js +155 -0
  52. package/build/runtime-esm/router/server.d.ts +25 -0
  53. package/build/runtime-esm/router/server.js +53 -0
  54. package/build/test-cjs/index.js +324 -14973
  55. package/build/test-esm/index.js +328 -14977
  56. package/build/vite-cjs/index.js +1826 -16184
  57. package/build/vite-esm/index.js +1828 -16186
  58. package/package.json +10 -1
  59. package/build/lib/router/manifest.d.ts +0 -45
@@ -1,10 +1,11 @@
1
- import { type Config } from '../';
1
+ import { type Config } from '../lib';
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,3 +5,5 @@
5
5
  export * as routerConventions from './conventions';
6
6
  export * from './manifest';
7
7
  export * from './types';
8
+ export * from './server';
9
+ export { handle_request, get_session } from '../runtime/router/server';
@@ -0,0 +1,12 @@
1
+ import { type Config } from '../lib';
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[]>;
@@ -0,0 +1,4 @@
1
+ import type * as graphql from 'graphql';
2
+ import type { Config } from '../lib/config';
3
+ export declare function isViteSchemaBuild(): boolean;
4
+ export declare function loadLocalSchema(config: Config): Promise<graphql.GraphQLSchema>;
@@ -1,9 +1,10 @@
1
- import type { routerConventions } from '.';
2
- import type { Config } from '../config';
1
+ import type { ProjectManifest, routerConventions } from '.';
2
+ import type { Config } from '../lib/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>;