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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "houdini",
3
- "version": "1.2.10",
3
+ "version": "1.2.12",
4
4
  "description": "The disappearing GraphQL clients",
5
5
  "keywords": [
6
6
  "typescript",
@@ -45,6 +45,7 @@
45
45
  "fs-extra": "^10.1.0",
46
46
  "glob": "^8.0.3",
47
47
  "graphql": "^15.8.0",
48
+ "graphql-yoga": "^4.0.4",
48
49
  "memfs": "^3.4.7",
49
50
  "micromatch": "^4.0.5",
50
51
  "minimatch": "^5.1.0",
@@ -68,6 +69,11 @@
68
69
  "import": "./build/lib-esm/index.js",
69
70
  "require": "./build/lib-cjs/index.js"
70
71
  },
72
+ "./router": {
73
+ "types": "./build/router/index.d.ts",
74
+ "import": "./build/router-esm/index.js",
75
+ "require": "./build/router-cjs/index.js"
76
+ },
71
77
  "./test": {
72
78
  "types": "./build/test/index.d.ts",
73
79
  "import": "./build/test-esm/index.js",
@@ -84,6 +90,9 @@
84
90
  "codegen": [
85
91
  "build/codegen/index.d.ts"
86
92
  ],
93
+ "router": [
94
+ "build/router/index.d.ts"
95
+ ],
87
96
  "test": [
88
97
  "build/test/index.d.ts"
89
98
  ],
@@ -1,45 +0,0 @@
1
- import { type Config } from '../';
2
- /**
3
- * Walk down the routes directory and build a normalized description of the project's
4
- * filesystem.
5
- */
6
- export declare function load_manifest(args: {
7
- config: Config;
8
- includeArtifacts?: boolean;
9
- }): Promise<ProjectManifest>;
10
- export declare function extractQueries(source: string): Promise<string[]>;
11
- export type ProjectManifest = {
12
- /** All of the pages in the project */
13
- pages: Record<string, PageManifest>;
14
- /** All of the layouts in the project */
15
- layouts: Record<string, PageManifest>;
16
- /** All of the page queries in the project */
17
- page_queries: Record<string, QueryManifest>;
18
- /** All of the layout queries in the project */
19
- layout_queries: Record<string, QueryManifest>;
20
- /** All of the artifacts in the project */
21
- artifacts: string[];
22
- };
23
- export type PageManifest = {
24
- id: string;
25
- /** the name of every query that the page depends on */
26
- queries: string[];
27
- /** the list of queries that this page could potentially ask for */
28
- query_options: string[];
29
- /** the full url pattern of the page */
30
- url: string;
31
- /** the ids of layouts that wrap this page */
32
- layouts: string[];
33
- /** The filepath of the unit */
34
- path: string;
35
- };
36
- export type QueryManifest = {
37
- /** the name of the query */
38
- name: string;
39
- /** the url tied with the query */
40
- url: string;
41
- /** wether the query uses the loading directive (ie, wants a fallback) */
42
- loading: boolean;
43
- /** The filepath of the unit */
44
- path: string;
45
- };