houdini-svelte 1.2.12 → 1.2.14

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.
@@ -16418,7 +16418,6 @@ var import_node_util4 = require("node:util");
16418
16418
  var graphql3 = __toESM(require("graphql"), 1);
16419
16419
  var graphql4 = __toESM(require("graphql"), 1);
16420
16420
  var graphql5 = __toESM(require("graphql"), 1);
16421
- var import_vite = require("vite");
16422
16421
  var import_meta = {};
16423
16422
  var require2 = (0, import_module.createRequire)(import_meta.url);
16424
16423
  var __create2 = Object.create;
@@ -78240,7 +78239,7 @@ var mutation = documentPlugin(ArtifactKind.Mutation, () => {
78240
78239
  }
78241
78240
  };
78242
78241
  });
78243
- var currentDir = global.__dirname || dirname((0, import_node_url.fileURLToPath)(import_meta.url));
78242
+ var currentDir = dirname((0, import_node_url.fileURLToPath)(import_meta.url));
78244
78243
  var DEFAULT_CONFIG_PATH = join2(process.cwd(), "houdini.config.js");
78245
78244
  var emptySchema = graphql2.buildSchema("type Query { hello: String }");
78246
78245
  var defaultDirectives = emptySchema.getDirectives().map((dir) => dir.name);
@@ -78583,6 +78582,7 @@ async function find_graphql(config22, parsedScript, walker) {
78583
78582
  }
78584
78583
  var conventions_exports = {};
78585
78584
  __export2(conventions_exports, {
78585
+ adapter_config_path: () => adapter_config_path,
78586
78586
  fallback_unit_path: () => fallback_unit_path,
78587
78587
  is_layout: () => is_layout,
78588
78588
  layout_unit_path: () => layout_unit_path,
@@ -78594,13 +78594,10 @@ __export2(conventions_exports, {
78594
78594
  read_layoutView: () => read_layoutView,
78595
78595
  read_pageQuery: () => read_pageQuery,
78596
78596
  read_pageView: () => read_pageView,
78597
- render_app_path: () => render_app_path,
78598
- render_client_path: () => render_client_path,
78599
- render_server_path: () => render_server_path,
78600
- render_yoga_path: () => render_yoga_path,
78601
78597
  router_index_path: () => router_index_path,
78602
78598
  router_path: () => router_path,
78603
- serialized_manifest_path: () => serialized_manifest_path
78599
+ serialized_manifest_path: () => serialized_manifest_path,
78600
+ server_adapter_path: () => server_adapter_path
78604
78601
  });
78605
78602
  function router_path(config22) {
78606
78603
  return path_exports.join(base_dir(config22), "Router.jsx");
@@ -78608,17 +78605,11 @@ function router_path(config22) {
78608
78605
  function page_entry_path(config22, id2, base) {
78609
78606
  return path_exports.join(page_entries_dir(config22, base), `${id2}.jsx`);
78610
78607
  }
78611
- function render_client_path(config22, base) {
78612
- return path_exports.join(units_dir(config22, base), "render", "client.jsx");
78613
- }
78614
- function render_server_path(config22, base) {
78608
+ function server_adapter_path(config22, base) {
78615
78609
  return path_exports.join(units_dir(config22, base), "render", "server.js");
78616
78610
  }
78617
- function render_yoga_path(config22, base) {
78618
- return path_exports.join(units_dir(config22, base), "render", "yoga.js");
78619
- }
78620
- function render_app_path(config22, base) {
78621
- return path_exports.join(units_dir(config22, base), "render", "App.jsx");
78611
+ function adapter_config_path(config22, base) {
78612
+ return path_exports.join(units_dir(config22, base), "render", "config.js");
78622
78613
  }
78623
78614
  function page_unit_path(config22, id2, base) {
78624
78615
  return path_exports.join(page_units_dir(config22, base), `${id2}.jsx`);
@@ -78705,7 +78696,7 @@ var t2 = __toESM2(require_lib6(), 1);
78705
78696
 
78706
78697
  // src/plugin/index.ts
78707
78698
  var url = __toESM(require("node:url"), 1);
78708
- var import_vite9 = require("vite");
78699
+ var import_vite7 = require("vite");
78709
78700
 
78710
78701
  // src/plugin/artifactData.ts
78711
78702
  var graphql6 = __toESM(require("graphql"), 1);
@@ -78798,7 +78789,6 @@ var import_node_util8 = require("node:util");
78798
78789
  var graphql32 = __toESM(require("graphql"), 1);
78799
78790
  var graphql42 = __toESM(require("graphql"), 1);
78800
78791
  var graphql52 = __toESM(require("graphql"), 1);
78801
- var import_vite2 = require("vite");
78802
78792
  var graphql15 = __toESM(require("graphql"), 1);
78803
78793
  var graphql62 = __toESM(require("graphql"), 1);
78804
78794
  var import_graphql61 = require("graphql");
@@ -144082,7 +144072,7 @@ var mutation2 = documentPlugin2(ArtifactKind2.Mutation, () => {
144082
144072
  }
144083
144073
  };
144084
144074
  });
144085
- var currentDir2 = global.__dirname || dirname2((0, import_node_url3.fileURLToPath)(import_meta2.url));
144075
+ var currentDir2 = dirname2((0, import_node_url3.fileURLToPath)(import_meta2.url));
144086
144076
  var DEFAULT_CONFIG_PATH2 = join22(process.cwd(), "houdini.config.js");
144087
144077
  var emptySchema2 = graphql22.buildSchema("type Query { hello: String }");
144088
144078
  var defaultDirectives2 = emptySchema2.getDirectives().map((dir) => dir.name);
@@ -144093,6 +144083,7 @@ var recast2 = __toESM3(require_main22(), 1);
144093
144083
  var AST2 = recast2.types.builders;
144094
144084
  var conventions_exports2 = {};
144095
144085
  __export3(conventions_exports2, {
144086
+ adapter_config_path: () => adapter_config_path2,
144096
144087
  fallback_unit_path: () => fallback_unit_path2,
144097
144088
  is_layout: () => is_layout2,
144098
144089
  layout_unit_path: () => layout_unit_path2,
@@ -144104,13 +144095,10 @@ __export3(conventions_exports2, {
144104
144095
  read_layoutView: () => read_layoutView2,
144105
144096
  read_pageQuery: () => read_pageQuery2,
144106
144097
  read_pageView: () => read_pageView2,
144107
- render_app_path: () => render_app_path2,
144108
- render_client_path: () => render_client_path2,
144109
- render_server_path: () => render_server_path2,
144110
- render_yoga_path: () => render_yoga_path2,
144111
144098
  router_index_path: () => router_index_path2,
144112
144099
  router_path: () => router_path2,
144113
- serialized_manifest_path: () => serialized_manifest_path2
144100
+ serialized_manifest_path: () => serialized_manifest_path2,
144101
+ server_adapter_path: () => server_adapter_path2
144114
144102
  });
144115
144103
  function router_path2(config4) {
144116
144104
  return path_exports2.join(base_dir2(config4), "Router.jsx");
@@ -144118,17 +144106,11 @@ function router_path2(config4) {
144118
144106
  function page_entry_path2(config4, id2, base) {
144119
144107
  return path_exports2.join(page_entries_dir2(config4, base), `${id2}.jsx`);
144120
144108
  }
144121
- function render_client_path2(config4, base) {
144122
- return path_exports2.join(units_dir2(config4, base), "render", "client.jsx");
144123
- }
144124
- function render_server_path2(config4, base) {
144109
+ function server_adapter_path2(config4, base) {
144125
144110
  return path_exports2.join(units_dir2(config4, base), "render", "server.js");
144126
144111
  }
144127
- function render_yoga_path2(config4, base) {
144128
- return path_exports2.join(units_dir2(config4, base), "render", "yoga.js");
144129
- }
144130
- function render_app_path2(config4, base) {
144131
- return path_exports2.join(units_dir2(config4, base), "render", "App.jsx");
144112
+ function adapter_config_path2(config4, base) {
144113
+ return path_exports2.join(units_dir2(config4, base), "render", "config.js");
144132
144114
  }
144133
144115
  function page_unit_path2(config4, id2, base) {
144134
144116
  return path_exports2.join(page_units_dir2(config4, base), `${id2}.jsx`);
@@ -144325,11 +144307,11 @@ var invalidNodeFieldMessage = `\u26A0\uFE0F Your project defines a Node interfa
144325
144307
  If you are trying to provide the Node interface and its field, they must look like the following:
144326
144308
 
144327
144309
  interface Node {
144328
- id: ID!
144310
+ id: ID!
144329
144311
  }
144330
144312
 
144331
144313
  extend type Query {
144332
- node(id: ID!): Node
144314
+ node(id: ID!): Node
144333
144315
  }
144334
144316
 
144335
144317
  For more information, please visit these links:
@@ -172115,7 +172097,7 @@ function logYellow(str) {
172115
172097
 
172116
172098
  // src/plugin/extractLoadFunction.ts
172117
172099
  var graphql29 = __toESM(require("graphql"), 1);
172118
- var import_vite3 = require("vite");
172100
+ var import_vite = require("vite");
172119
172101
 
172120
172102
  // src/plugin/naming.ts
172121
172103
  var query_variable_fn = (name) => {
@@ -172138,7 +172120,7 @@ async function extract_load_function(config4, filepath, mockArtifacts) {
172138
172120
  }
172139
172121
  let transformed = contents;
172140
172122
  if (filepath.endsWith(".ts")) {
172141
- transformed = (await (0, import_vite3.transformWithEsbuild)(contents, filepath)).code;
172123
+ transformed = (await (0, import_vite.transformWithEsbuild)(contents, filepath)).code;
172142
172124
  }
172143
172125
  if (transformed === null) {
172144
172126
  return nil;
@@ -174685,7 +174667,7 @@ directive @${config4.blockingDisableDirective} on QUERY
174685
174667
  svelte_kit_cfg = !fs_exports.existsSync(config_file) ? {} : await import(`${url.pathToFileURL(config_file).href}?ts=${Date.now()}`);
174686
174668
  } catch {
174687
174669
  }
174688
- _env = (0, import_vite9.loadEnv)("dev", svelte_kit_cfg.kit?.dir || ".", "");
174670
+ _env = (0, import_vite7.loadEnv)("dev", svelte_kit_cfg.kit?.dir || ".", "");
174689
174671
  return _env;
174690
174672
  }
174691
174673
  });
@@ -16410,7 +16410,6 @@ import { deprecate as deprecate2 } from "node:util";
16410
16410
  import * as graphql3 from "graphql";
16411
16411
  import * as graphql4 from "graphql";
16412
16412
  import * as graphql5 from "graphql";
16413
- import { build } from "vite";
16414
16413
  var require2 = conflict_free(import.meta.url);
16415
16414
  var __create2 = Object.create;
16416
16415
  var __defProp2 = Object.defineProperty;
@@ -78231,7 +78230,7 @@ var mutation = documentPlugin(ArtifactKind.Mutation, () => {
78231
78230
  }
78232
78231
  };
78233
78232
  });
78234
- var currentDir = global.__dirname || dirname(fileURLToPath(import.meta.url));
78233
+ var currentDir = dirname(fileURLToPath(import.meta.url));
78235
78234
  var DEFAULT_CONFIG_PATH = join2(process.cwd(), "houdini.config.js");
78236
78235
  var emptySchema = graphql2.buildSchema("type Query { hello: String }");
78237
78236
  var defaultDirectives = emptySchema.getDirectives().map((dir) => dir.name);
@@ -78574,6 +78573,7 @@ async function find_graphql(config22, parsedScript, walker) {
78574
78573
  }
78575
78574
  var conventions_exports = {};
78576
78575
  __export(conventions_exports, {
78576
+ adapter_config_path: () => adapter_config_path,
78577
78577
  fallback_unit_path: () => fallback_unit_path,
78578
78578
  is_layout: () => is_layout,
78579
78579
  layout_unit_path: () => layout_unit_path,
@@ -78585,13 +78585,10 @@ __export(conventions_exports, {
78585
78585
  read_layoutView: () => read_layoutView,
78586
78586
  read_pageQuery: () => read_pageQuery,
78587
78587
  read_pageView: () => read_pageView,
78588
- render_app_path: () => render_app_path,
78589
- render_client_path: () => render_client_path,
78590
- render_server_path: () => render_server_path,
78591
- render_yoga_path: () => render_yoga_path,
78592
78588
  router_index_path: () => router_index_path,
78593
78589
  router_path: () => router_path,
78594
- serialized_manifest_path: () => serialized_manifest_path
78590
+ serialized_manifest_path: () => serialized_manifest_path,
78591
+ server_adapter_path: () => server_adapter_path
78595
78592
  });
78596
78593
  function router_path(config22) {
78597
78594
  return path_exports.join(base_dir(config22), "Router.jsx");
@@ -78599,17 +78596,11 @@ function router_path(config22) {
78599
78596
  function page_entry_path(config22, id2, base) {
78600
78597
  return path_exports.join(page_entries_dir(config22, base), `${id2}.jsx`);
78601
78598
  }
78602
- function render_client_path(config22, base) {
78603
- return path_exports.join(units_dir(config22, base), "render", "client.jsx");
78604
- }
78605
- function render_server_path(config22, base) {
78599
+ function server_adapter_path(config22, base) {
78606
78600
  return path_exports.join(units_dir(config22, base), "render", "server.js");
78607
78601
  }
78608
- function render_yoga_path(config22, base) {
78609
- return path_exports.join(units_dir(config22, base), "render", "yoga.js");
78610
- }
78611
- function render_app_path(config22, base) {
78612
- return path_exports.join(units_dir(config22, base), "render", "App.jsx");
78602
+ function adapter_config_path(config22, base) {
78603
+ return path_exports.join(units_dir(config22, base), "render", "config.js");
78613
78604
  }
78614
78605
  function page_unit_path(config22, id2, base) {
78615
78606
  return path_exports.join(page_units_dir(config22, base), `${id2}.jsx`);
@@ -78789,7 +78780,6 @@ import { deprecate as deprecate22 } from "node:util";
78789
78780
  import * as graphql32 from "graphql";
78790
78781
  import * as graphql42 from "graphql";
78791
78782
  import * as graphql52 from "graphql";
78792
- import { build as build2 } from "vite";
78793
78783
  import * as graphql15 from "graphql";
78794
78784
  import * as graphql62 from "graphql";
78795
78785
  import { Kind as GraphqlKinds } from "graphql";
@@ -144072,7 +144062,7 @@ var mutation2 = documentPlugin2(ArtifactKind2.Mutation, () => {
144072
144062
  }
144073
144063
  };
144074
144064
  });
144075
- var currentDir2 = global.__dirname || dirname2(fileURLToPath2(import.meta.url));
144065
+ var currentDir2 = dirname2(fileURLToPath2(import.meta.url));
144076
144066
  var DEFAULT_CONFIG_PATH2 = join22(process.cwd(), "houdini.config.js");
144077
144067
  var emptySchema2 = graphql22.buildSchema("type Query { hello: String }");
144078
144068
  var defaultDirectives2 = emptySchema2.getDirectives().map((dir) => dir.name);
@@ -144083,6 +144073,7 @@ var recast2 = __toESM3(require_main22(), 1);
144083
144073
  var AST2 = recast2.types.builders;
144084
144074
  var conventions_exports2 = {};
144085
144075
  __export2(conventions_exports2, {
144076
+ adapter_config_path: () => adapter_config_path2,
144086
144077
  fallback_unit_path: () => fallback_unit_path2,
144087
144078
  is_layout: () => is_layout2,
144088
144079
  layout_unit_path: () => layout_unit_path2,
@@ -144094,13 +144085,10 @@ __export2(conventions_exports2, {
144094
144085
  read_layoutView: () => read_layoutView2,
144095
144086
  read_pageQuery: () => read_pageQuery2,
144096
144087
  read_pageView: () => read_pageView2,
144097
- render_app_path: () => render_app_path2,
144098
- render_client_path: () => render_client_path2,
144099
- render_server_path: () => render_server_path2,
144100
- render_yoga_path: () => render_yoga_path2,
144101
144088
  router_index_path: () => router_index_path2,
144102
144089
  router_path: () => router_path2,
144103
- serialized_manifest_path: () => serialized_manifest_path2
144090
+ serialized_manifest_path: () => serialized_manifest_path2,
144091
+ server_adapter_path: () => server_adapter_path2
144104
144092
  });
144105
144093
  function router_path2(config4) {
144106
144094
  return path_exports2.join(base_dir2(config4), "Router.jsx");
@@ -144108,17 +144096,11 @@ function router_path2(config4) {
144108
144096
  function page_entry_path2(config4, id2, base) {
144109
144097
  return path_exports2.join(page_entries_dir2(config4, base), `${id2}.jsx`);
144110
144098
  }
144111
- function render_client_path2(config4, base) {
144112
- return path_exports2.join(units_dir2(config4, base), "render", "client.jsx");
144113
- }
144114
- function render_server_path2(config4, base) {
144099
+ function server_adapter_path2(config4, base) {
144115
144100
  return path_exports2.join(units_dir2(config4, base), "render", "server.js");
144116
144101
  }
144117
- function render_yoga_path2(config4, base) {
144118
- return path_exports2.join(units_dir2(config4, base), "render", "yoga.js");
144119
- }
144120
- function render_app_path2(config4, base) {
144121
- return path_exports2.join(units_dir2(config4, base), "render", "App.jsx");
144102
+ function adapter_config_path2(config4, base) {
144103
+ return path_exports2.join(units_dir2(config4, base), "render", "config.js");
144122
144104
  }
144123
144105
  function page_unit_path2(config4, id2, base) {
144124
144106
  return path_exports2.join(page_units_dir2(config4, base), `${id2}.jsx`);
@@ -144315,11 +144297,11 @@ var invalidNodeFieldMessage = `\u26A0\uFE0F Your project defines a Node interfa
144315
144297
  If you are trying to provide the Node interface and its field, they must look like the following:
144316
144298
 
144317
144299
  interface Node {
144318
- id: ID!
144300
+ id: ID!
144319
144301
  }
144320
144302
 
144321
144303
  extend type Query {
144322
- node(id: ID!): Node
144304
+ node(id: ID!): Node
144323
144305
  }
144324
144306
 
144325
144307
  For more information, please visit these links:
@@ -16422,7 +16422,6 @@ var import_node_net = require("node:net");
16422
16422
  var graphql3 = __toESM(require("graphql"), 1);
16423
16423
  var graphql4 = __toESM(require("graphql"), 1);
16424
16424
  var graphql5 = __toESM(require("graphql"), 1);
16425
- var import_vite = require("vite");
16426
16425
  var import_meta = {};
16427
16426
  var require2 = (0, import_module.createRequire)(import_meta.url);
16428
16427
  var __create2 = Object.create;
@@ -81590,7 +81589,7 @@ var LogLevel = {
81590
81589
  ShortSummary: "short-summary",
81591
81590
  Quiet: "quiet"
81592
81591
  };
81593
- var currentDir = global.__dirname || dirname((0, import_node_url.fileURLToPath)(import_meta.url));
81592
+ var currentDir = dirname((0, import_node_url.fileURLToPath)(import_meta.url));
81594
81593
  var Config = class {
81595
81594
  filepath;
81596
81595
  rootDir;
@@ -82677,6 +82676,7 @@ async function find_graphql(config22, parsedScript, walker) {
82677
82676
  }
82678
82677
  var conventions_exports = {};
82679
82678
  __export2(conventions_exports, {
82679
+ adapter_config_path: () => adapter_config_path,
82680
82680
  fallback_unit_path: () => fallback_unit_path,
82681
82681
  is_layout: () => is_layout,
82682
82682
  layout_unit_path: () => layout_unit_path,
@@ -82688,13 +82688,10 @@ __export2(conventions_exports, {
82688
82688
  read_layoutView: () => read_layoutView,
82689
82689
  read_pageQuery: () => read_pageQuery,
82690
82690
  read_pageView: () => read_pageView,
82691
- render_app_path: () => render_app_path,
82692
- render_client_path: () => render_client_path,
82693
- render_server_path: () => render_server_path,
82694
- render_yoga_path: () => render_yoga_path,
82695
82691
  router_index_path: () => router_index_path,
82696
82692
  router_path: () => router_path,
82697
- serialized_manifest_path: () => serialized_manifest_path
82693
+ serialized_manifest_path: () => serialized_manifest_path,
82694
+ server_adapter_path: () => server_adapter_path
82698
82695
  });
82699
82696
  function router_path(config22) {
82700
82697
  return path_exports.join(base_dir(config22), "Router.jsx");
@@ -82702,17 +82699,11 @@ function router_path(config22) {
82702
82699
  function page_entry_path(config22, id2, base) {
82703
82700
  return path_exports.join(page_entries_dir(config22, base), `${id2}.jsx`);
82704
82701
  }
82705
- function render_client_path(config22, base) {
82706
- return path_exports.join(units_dir(config22, base), "render", "client.jsx");
82707
- }
82708
- function render_server_path(config22, base) {
82702
+ function server_adapter_path(config22, base) {
82709
82703
  return path_exports.join(units_dir(config22, base), "render", "server.js");
82710
82704
  }
82711
- function render_yoga_path(config22, base) {
82712
- return path_exports.join(units_dir(config22, base), "render", "yoga.js");
82713
- }
82714
- function render_app_path(config22, base) {
82715
- return path_exports.join(units_dir(config22, base), "render", "App.jsx");
82705
+ function adapter_config_path(config22, base) {
82706
+ return path_exports.join(units_dir(config22, base), "render", "config.js");
82716
82707
  }
82717
82708
  function page_unit_path(config22, id2, base) {
82718
82709
  return path_exports.join(page_units_dir(config22, base), `${id2}.jsx`);
@@ -110497,7 +110488,6 @@ var import_node_util8 = require("node:util");
110497
110488
  var graphql32 = __toESM(require("graphql"), 1);
110498
110489
  var graphql42 = __toESM(require("graphql"), 1);
110499
110490
  var graphql52 = __toESM(require("graphql"), 1);
110500
- var import_vite2 = require("vite");
110501
110491
  var graphql15 = __toESM(require("graphql"), 1);
110502
110492
  var graphql62 = __toESM(require("graphql"), 1);
110503
110493
  var import_graphql61 = require("graphql");
@@ -175781,7 +175771,7 @@ var mutation2 = documentPlugin2(ArtifactKind2.Mutation, () => {
175781
175771
  }
175782
175772
  };
175783
175773
  });
175784
- var currentDir2 = global.__dirname || dirname2((0, import_node_url3.fileURLToPath)(import_meta2.url));
175774
+ var currentDir2 = dirname2((0, import_node_url3.fileURLToPath)(import_meta2.url));
175785
175775
  var DEFAULT_CONFIG_PATH2 = join22(process.cwd(), "houdini.config.js");
175786
175776
  var emptySchema2 = graphql22.buildSchema("type Query { hello: String }");
175787
175777
  var defaultDirectives2 = emptySchema2.getDirectives().map((dir) => dir.name);
@@ -175792,6 +175782,7 @@ var recast2 = __toESM3(require_main22(), 1);
175792
175782
  var AST2 = recast2.types.builders;
175793
175783
  var conventions_exports2 = {};
175794
175784
  __export3(conventions_exports2, {
175785
+ adapter_config_path: () => adapter_config_path2,
175795
175786
  fallback_unit_path: () => fallback_unit_path2,
175796
175787
  is_layout: () => is_layout2,
175797
175788
  layout_unit_path: () => layout_unit_path2,
@@ -175803,13 +175794,10 @@ __export3(conventions_exports2, {
175803
175794
  read_layoutView: () => read_layoutView2,
175804
175795
  read_pageQuery: () => read_pageQuery2,
175805
175796
  read_pageView: () => read_pageView2,
175806
- render_app_path: () => render_app_path2,
175807
- render_client_path: () => render_client_path2,
175808
- render_server_path: () => render_server_path2,
175809
- render_yoga_path: () => render_yoga_path2,
175810
175797
  router_index_path: () => router_index_path2,
175811
175798
  router_path: () => router_path2,
175812
- serialized_manifest_path: () => serialized_manifest_path2
175799
+ serialized_manifest_path: () => serialized_manifest_path2,
175800
+ server_adapter_path: () => server_adapter_path2
175813
175801
  });
175814
175802
  function router_path2(config42) {
175815
175803
  return path_exports2.join(base_dir2(config42), "Router.jsx");
@@ -175817,17 +175805,11 @@ function router_path2(config42) {
175817
175805
  function page_entry_path2(config42, id2, base) {
175818
175806
  return path_exports2.join(page_entries_dir2(config42, base), `${id2}.jsx`);
175819
175807
  }
175820
- function render_client_path2(config42, base) {
175821
- return path_exports2.join(units_dir2(config42, base), "render", "client.jsx");
175822
- }
175823
- function render_server_path2(config42, base) {
175808
+ function server_adapter_path2(config42, base) {
175824
175809
  return path_exports2.join(units_dir2(config42, base), "render", "server.js");
175825
175810
  }
175826
- function render_yoga_path2(config42, base) {
175827
- return path_exports2.join(units_dir2(config42, base), "render", "yoga.js");
175828
- }
175829
- function render_app_path2(config42, base) {
175830
- return path_exports2.join(units_dir2(config42, base), "render", "App.jsx");
175811
+ function adapter_config_path2(config42, base) {
175812
+ return path_exports2.join(units_dir2(config42, base), "render", "config.js");
175831
175813
  }
175832
175814
  function page_unit_path2(config42, id2, base) {
175833
175815
  return path_exports2.join(page_units_dir2(config42, base), `${id2}.jsx`);
@@ -176024,11 +176006,11 @@ var invalidNodeFieldMessage = `\u26A0\uFE0F Your project defines a Node interfa
176024
176006
  If you are trying to provide the Node interface and its field, they must look like the following:
176025
176007
 
176026
176008
  interface Node {
176027
- id: ID!
176009
+ id: ID!
176028
176010
  }
176029
176011
 
176030
176012
  extend type Query {
176031
- node(id: ID!): Node
176013
+ node(id: ID!): Node
176032
176014
  }
176033
176015
 
176034
176016
  For more information, please visit these links:
@@ -176157,7 +176139,7 @@ var graphql30 = __toESM(require("graphql"), 1);
176157
176139
 
176158
176140
  // src/plugin/extractLoadFunction.ts
176159
176141
  var graphql29 = __toESM(require("graphql"), 1);
176160
- var import_vite3 = require("vite");
176142
+ var import_vite = require("vite");
176161
176143
 
176162
176144
  // src/plugin/naming.ts
176163
176145
  var query_variable_fn = (name) => {
@@ -176180,7 +176162,7 @@ async function extract_load_function(config5, filepath, mockArtifacts) {
176180
176162
  }
176181
176163
  let transformed = contents;
176182
176164
  if (filepath.endsWith(".ts")) {
176183
- transformed = (await (0, import_vite3.transformWithEsbuild)(contents, filepath)).code;
176165
+ transformed = (await (0, import_vite.transformWithEsbuild)(contents, filepath)).code;
176184
176166
  }
176185
176167
  if (transformed === null) {
176186
176168
  return nil;
@@ -16416,7 +16416,6 @@ import { isIP } from "node:net";
16416
16416
  import * as graphql3 from "graphql";
16417
16417
  import * as graphql4 from "graphql";
16418
16418
  import * as graphql5 from "graphql";
16419
- import { build } from "vite";
16420
16419
  var require2 = conflict_free(import.meta.url);
16421
16420
  var __create2 = Object.create;
16422
16421
  var __defProp2 = Object.defineProperty;
@@ -81583,7 +81582,7 @@ var LogLevel = {
81583
81582
  ShortSummary: "short-summary",
81584
81583
  Quiet: "quiet"
81585
81584
  };
81586
- var currentDir = global.__dirname || dirname(fileURLToPath(import.meta.url));
81585
+ var currentDir = dirname(fileURLToPath(import.meta.url));
81587
81586
  var Config = class {
81588
81587
  filepath;
81589
81588
  rootDir;
@@ -82670,6 +82669,7 @@ async function find_graphql(config22, parsedScript, walker) {
82670
82669
  }
82671
82670
  var conventions_exports = {};
82672
82671
  __export(conventions_exports, {
82672
+ adapter_config_path: () => adapter_config_path,
82673
82673
  fallback_unit_path: () => fallback_unit_path,
82674
82674
  is_layout: () => is_layout,
82675
82675
  layout_unit_path: () => layout_unit_path,
@@ -82681,13 +82681,10 @@ __export(conventions_exports, {
82681
82681
  read_layoutView: () => read_layoutView,
82682
82682
  read_pageQuery: () => read_pageQuery,
82683
82683
  read_pageView: () => read_pageView,
82684
- render_app_path: () => render_app_path,
82685
- render_client_path: () => render_client_path,
82686
- render_server_path: () => render_server_path,
82687
- render_yoga_path: () => render_yoga_path,
82688
82684
  router_index_path: () => router_index_path,
82689
82685
  router_path: () => router_path,
82690
- serialized_manifest_path: () => serialized_manifest_path
82686
+ serialized_manifest_path: () => serialized_manifest_path,
82687
+ server_adapter_path: () => server_adapter_path
82691
82688
  });
82692
82689
  function router_path(config22) {
82693
82690
  return path_exports.join(base_dir(config22), "Router.jsx");
@@ -82695,17 +82692,11 @@ function router_path(config22) {
82695
82692
  function page_entry_path(config22, id2, base) {
82696
82693
  return path_exports.join(page_entries_dir(config22, base), `${id2}.jsx`);
82697
82694
  }
82698
- function render_client_path(config22, base) {
82699
- return path_exports.join(units_dir(config22, base), "render", "client.jsx");
82700
- }
82701
- function render_server_path(config22, base) {
82695
+ function server_adapter_path(config22, base) {
82702
82696
  return path_exports.join(units_dir(config22, base), "render", "server.js");
82703
82697
  }
82704
- function render_yoga_path(config22, base) {
82705
- return path_exports.join(units_dir(config22, base), "render", "yoga.js");
82706
- }
82707
- function render_app_path(config22, base) {
82708
- return path_exports.join(units_dir(config22, base), "render", "App.jsx");
82698
+ function adapter_config_path(config22, base) {
82699
+ return path_exports.join(units_dir(config22, base), "render", "config.js");
82709
82700
  }
82710
82701
  function page_unit_path(config22, id2, base) {
82711
82702
  return path_exports.join(page_units_dir(config22, base), `${id2}.jsx`);
@@ -110490,7 +110481,6 @@ import { deprecate as deprecate22 } from "node:util";
110490
110481
  import * as graphql32 from "graphql";
110491
110482
  import * as graphql42 from "graphql";
110492
110483
  import * as graphql52 from "graphql";
110493
- import { build as build2 } from "vite";
110494
110484
  import * as graphql15 from "graphql";
110495
110485
  import * as graphql62 from "graphql";
110496
110486
  import { Kind as GraphqlKinds } from "graphql";
@@ -175773,7 +175763,7 @@ var mutation2 = documentPlugin2(ArtifactKind2.Mutation, () => {
175773
175763
  }
175774
175764
  };
175775
175765
  });
175776
- var currentDir2 = global.__dirname || dirname2(fileURLToPath2(import.meta.url));
175766
+ var currentDir2 = dirname2(fileURLToPath2(import.meta.url));
175777
175767
  var DEFAULT_CONFIG_PATH2 = join22(process.cwd(), "houdini.config.js");
175778
175768
  var emptySchema2 = graphql22.buildSchema("type Query { hello: String }");
175779
175769
  var defaultDirectives2 = emptySchema2.getDirectives().map((dir) => dir.name);
@@ -175784,6 +175774,7 @@ var recast2 = __toESM3(require_main22(), 1);
175784
175774
  var AST2 = recast2.types.builders;
175785
175775
  var conventions_exports2 = {};
175786
175776
  __export2(conventions_exports2, {
175777
+ adapter_config_path: () => adapter_config_path2,
175787
175778
  fallback_unit_path: () => fallback_unit_path2,
175788
175779
  is_layout: () => is_layout2,
175789
175780
  layout_unit_path: () => layout_unit_path2,
@@ -175795,13 +175786,10 @@ __export2(conventions_exports2, {
175795
175786
  read_layoutView: () => read_layoutView2,
175796
175787
  read_pageQuery: () => read_pageQuery2,
175797
175788
  read_pageView: () => read_pageView2,
175798
- render_app_path: () => render_app_path2,
175799
- render_client_path: () => render_client_path2,
175800
- render_server_path: () => render_server_path2,
175801
- render_yoga_path: () => render_yoga_path2,
175802
175789
  router_index_path: () => router_index_path2,
175803
175790
  router_path: () => router_path2,
175804
- serialized_manifest_path: () => serialized_manifest_path2
175791
+ serialized_manifest_path: () => serialized_manifest_path2,
175792
+ server_adapter_path: () => server_adapter_path2
175805
175793
  });
175806
175794
  function router_path2(config42) {
175807
175795
  return path_exports2.join(base_dir2(config42), "Router.jsx");
@@ -175809,17 +175797,11 @@ function router_path2(config42) {
175809
175797
  function page_entry_path2(config42, id2, base) {
175810
175798
  return path_exports2.join(page_entries_dir2(config42, base), `${id2}.jsx`);
175811
175799
  }
175812
- function render_client_path2(config42, base) {
175813
- return path_exports2.join(units_dir2(config42, base), "render", "client.jsx");
175814
- }
175815
- function render_server_path2(config42, base) {
175800
+ function server_adapter_path2(config42, base) {
175816
175801
  return path_exports2.join(units_dir2(config42, base), "render", "server.js");
175817
175802
  }
175818
- function render_yoga_path2(config42, base) {
175819
- return path_exports2.join(units_dir2(config42, base), "render", "yoga.js");
175820
- }
175821
- function render_app_path2(config42, base) {
175822
- return path_exports2.join(units_dir2(config42, base), "render", "App.jsx");
175803
+ function adapter_config_path2(config42, base) {
175804
+ return path_exports2.join(units_dir2(config42, base), "render", "config.js");
175823
175805
  }
175824
175806
  function page_unit_path2(config42, id2, base) {
175825
175807
  return path_exports2.join(page_units_dir2(config42, base), `${id2}.jsx`);
@@ -176016,11 +175998,11 @@ var invalidNodeFieldMessage = `\u26A0\uFE0F Your project defines a Node interfa
176016
175998
  If you are trying to provide the Node interface and its field, they must look like the following:
176017
175999
 
176018
176000
  interface Node {
176019
- id: ID!
176001
+ id: ID!
176020
176002
  }
176021
176003
 
176022
176004
  extend type Query {
176023
- node(id: ID!): Node
176005
+ node(id: ID!): Node
176024
176006
  }
176025
176007
 
176026
176008
  For more information, please visit these links:
@@ -16421,7 +16421,6 @@ var import_node_util4 = require("node:util");
16421
16421
  var graphql3 = __toESM(require("graphql"), 1);
16422
16422
  var graphql4 = __toESM(require("graphql"), 1);
16423
16423
  var graphql5 = __toESM(require("graphql"), 1);
16424
- var import_vite = require("vite");
16425
16424
  var import_meta = {};
16426
16425
  var require2 = (0, import_module.createRequire)(import_meta.url);
16427
16426
  var __create2 = Object.create;
@@ -78243,7 +78242,7 @@ var mutation = documentPlugin(ArtifactKind.Mutation, () => {
78243
78242
  }
78244
78243
  };
78245
78244
  });
78246
- var currentDir = global.__dirname || dirname((0, import_node_url.fileURLToPath)(import_meta.url));
78245
+ var currentDir = dirname((0, import_node_url.fileURLToPath)(import_meta.url));
78247
78246
  var DEFAULT_CONFIG_PATH = join2(process.cwd(), "houdini.config.js");
78248
78247
  var emptySchema = graphql2.buildSchema("type Query { hello: String }");
78249
78248
  var defaultDirectives = emptySchema.getDirectives().map((dir) => dir.name);
@@ -78586,6 +78585,7 @@ async function find_graphql(config22, parsedScript, walker) {
78586
78585
  }
78587
78586
  var conventions_exports = {};
78588
78587
  __export2(conventions_exports, {
78588
+ adapter_config_path: () => adapter_config_path,
78589
78589
  fallback_unit_path: () => fallback_unit_path,
78590
78590
  is_layout: () => is_layout,
78591
78591
  layout_unit_path: () => layout_unit_path,
@@ -78597,13 +78597,10 @@ __export2(conventions_exports, {
78597
78597
  read_layoutView: () => read_layoutView,
78598
78598
  read_pageQuery: () => read_pageQuery,
78599
78599
  read_pageView: () => read_pageView,
78600
- render_app_path: () => render_app_path,
78601
- render_client_path: () => render_client_path,
78602
- render_server_path: () => render_server_path,
78603
- render_yoga_path: () => render_yoga_path,
78604
78600
  router_index_path: () => router_index_path,
78605
78601
  router_path: () => router_path,
78606
- serialized_manifest_path: () => serialized_manifest_path
78602
+ serialized_manifest_path: () => serialized_manifest_path,
78603
+ server_adapter_path: () => server_adapter_path
78607
78604
  });
78608
78605
  function router_path(config22) {
78609
78606
  return path_exports.join(base_dir(config22), "Router.jsx");
@@ -78611,17 +78608,11 @@ function router_path(config22) {
78611
78608
  function page_entry_path(config22, id2, base) {
78612
78609
  return path_exports.join(page_entries_dir(config22, base), `${id2}.jsx`);
78613
78610
  }
78614
- function render_client_path(config22, base) {
78615
- return path_exports.join(units_dir(config22, base), "render", "client.jsx");
78616
- }
78617
- function render_server_path(config22, base) {
78611
+ function server_adapter_path(config22, base) {
78618
78612
  return path_exports.join(units_dir(config22, base), "render", "server.js");
78619
78613
  }
78620
- function render_yoga_path(config22, base) {
78621
- return path_exports.join(units_dir(config22, base), "render", "yoga.js");
78622
- }
78623
- function render_app_path(config22, base) {
78624
- return path_exports.join(units_dir(config22, base), "render", "App.jsx");
78614
+ function adapter_config_path(config22, base) {
78615
+ return path_exports.join(units_dir(config22, base), "render", "config.js");
78625
78616
  }
78626
78617
  function page_unit_path(config22, id2, base) {
78627
78618
  return path_exports.join(page_units_dir(config22, base), `${id2}.jsx`);
@@ -78720,7 +78711,6 @@ var graphql32 = __toESM(require("graphql"), 1);
78720
78711
  var import_node_crypto = __toESM(require("node:crypto"), 1);
78721
78712
  var graphql42 = __toESM(require("graphql"), 1);
78722
78713
  var graphql52 = __toESM(require("graphql"), 1);
78723
- var import_vite2 = require("vite");
78724
78714
  var graphql15 = __toESM(require("graphql"), 1);
78725
78715
  var graphql62 = __toESM(require("graphql"), 1);
78726
78716
  var import_graphql31 = require("graphql");
@@ -135361,7 +135351,7 @@ var LogLevel = {
135361
135351
  ShortSummary: "short-summary",
135362
135352
  Quiet: "quiet"
135363
135353
  };
135364
- var currentDir2 = global.__dirname || dirname2((0, import_node_url3.fileURLToPath)(import_meta2.url));
135354
+ var currentDir2 = dirname2((0, import_node_url3.fileURLToPath)(import_meta2.url));
135365
135355
  var DEFAULT_CONFIG_PATH2 = join3(process.cwd(), "houdini.config.js");
135366
135356
  var emptySchema2 = graphql22.buildSchema("type Query { hello: String }");
135367
135357
  var defaultDirectives2 = emptySchema2.getDirectives().map((dir) => dir.name);
@@ -136565,9 +136555,11 @@ function serializeValue(value2) {
136565
136555
  }
136566
136556
  if (typeof value2 === "object" && value2 !== null) {
136567
136557
  return AST4.objectExpression(
136568
- Object.entries(value2).filter(([, value22]) => typeof value22 !== "undefined").map(
136569
- ([key, value22]) => AST4.objectProperty(AST4.stringLiteral(key), serializeValue(value22))
136570
- )
136558
+ Object.entries(value2).filter(
136559
+ ([key, value22]) => typeof value22 !== "undefined" && key !== "prev" && key !== "next"
136560
+ ).map(([key, val]) => {
136561
+ return AST4.objectProperty(AST4.stringLiteral(key), serializeValue(val));
136562
+ })
136571
136563
  );
136572
136564
  }
136573
136565
  if (typeof value2 === "string") {
@@ -137100,7 +137092,7 @@ async function paginate(config22, documents) {
137100
137092
  value: "__typename"
137101
137093
  }
137102
137094
  },
137103
- ...(typeConfig?.keys || ["id"]).map((key) => ({
137095
+ ...(typeConfig?.keys || [config22.defaultKeys[0]]).map((key) => ({
137104
137096
  kind: graphql11.Kind.FIELD,
137105
137097
  name: {
137106
137098
  kind: graphql11.Kind.NAME,
@@ -140716,7 +140708,7 @@ function validateFragmentArguments(config22, filepath, fragments) {
140716
140708
  if (missing.length > 0) {
140717
140709
  ctx.reportError(
140718
140710
  new graphql26.GraphQLError(
140719
- "The following arguments are missing from this fragment: " + JSON.stringify(missing)
140711
+ `The following arguments are missing from the "${fragmentName}" fragment: ` + JSON.stringify(missing)
140720
140712
  )
140721
140713
  );
140722
140714
  return;
@@ -140952,7 +140944,7 @@ function nodeDirectives(config22, directives) {
140952
140944
  }
140953
140945
  if (!possibleNodes.includes(definitionType)) {
140954
140946
  ctx.reportError(
140955
- new graphql26.GraphQLError(paginateOnNonNodeMessage(config22, node2.name.value))
140947
+ new graphql26.GraphQLError(paginateOnNonNodeMessage(node2.name.value))
140956
140948
  );
140957
140949
  }
140958
140950
  }
@@ -141087,45 +141079,45 @@ function getAndVerifyNodeInterface(config22) {
141087
141079
  return null;
141088
141080
  }
141089
141081
  if (!graphql26.isInterfaceType(nodeInterface)) {
141090
- displayInvalidNodeFieldMessage(config22.logLevel);
141082
+ displayInvalidNodeFieldMessage(config22);
141091
141083
  return null;
141092
141084
  }
141093
141085
  const queryType = schema2.getQueryType();
141094
141086
  if (!queryType) {
141095
- displayInvalidNodeFieldMessage(config22.logLevel);
141087
+ displayInvalidNodeFieldMessage(config22);
141096
141088
  return null;
141097
141089
  }
141098
141090
  const nodeField = queryType.getFields()["node"];
141099
141091
  if (!nodeField) {
141100
- displayInvalidNodeFieldMessage(config22.logLevel);
141092
+ displayInvalidNodeFieldMessage(config22);
141101
141093
  return null;
141102
141094
  }
141103
141095
  const args = nodeField.args;
141104
141096
  if (args.length === 0) {
141105
- displayInvalidNodeFieldMessage(config22.logLevel);
141097
+ displayInvalidNodeFieldMessage(config22);
141106
141098
  return null;
141107
141099
  }
141108
- const idArg = args.find((arg) => arg.name === "id");
141100
+ const idArg = args.find((arg) => arg.name === config22.defaultKeys[0]);
141109
141101
  if (!idArg) {
141110
- displayInvalidNodeFieldMessage(config22.logLevel);
141102
+ displayInvalidNodeFieldMessage(config22);
141111
141103
  return null;
141112
141104
  }
141113
141105
  const idType = unwrapType2(config22, idArg.type);
141114
141106
  if (idType.type.name !== "ID") {
141115
- displayInvalidNodeFieldMessage(config22.logLevel);
141107
+ displayInvalidNodeFieldMessage(config22);
141116
141108
  return null;
141117
141109
  }
141118
141110
  const fieldReturnType = unwrapType2(config22, nodeField.type);
141119
141111
  if (fieldReturnType.type.name !== "Node") {
141120
- displayInvalidNodeFieldMessage(config22.logLevel);
141112
+ displayInvalidNodeFieldMessage(config22);
141121
141113
  return null;
141122
141114
  }
141123
141115
  return nodeInterface;
141124
141116
  }
141125
141117
  var nbInvalidNodeFieldMessageDisplayed = 0;
141126
- function displayInvalidNodeFieldMessage(logLevel) {
141118
+ function displayInvalidNodeFieldMessage(config22) {
141127
141119
  if (nbInvalidNodeFieldMessageDisplayed === 0) {
141128
- if (logLevel === LogLevel.Full) {
141120
+ if (config22.logLevel === LogLevel.Full) {
141129
141121
  console.warn(invalidNodeFieldMessage);
141130
141122
  } else {
141131
141123
  console.warn(invalidNodeFieldMessageLight);
@@ -141139,18 +141131,18 @@ var invalidNodeFieldMessage = `\u26A0\uFE0F Your project defines a Node interfa
141139
141131
  If you are trying to provide the Node interface and its field, they must look like the following:
141140
141132
 
141141
141133
  interface Node {
141142
- id: ID!
141134
+ id: ID!
141143
141135
  }
141144
141136
 
141145
141137
  extend type Query {
141146
- node(id: ID!): Node
141138
+ node(id: ID!): Node
141147
141139
  }
141148
141140
 
141149
141141
  For more information, please visit these links:
141150
141142
  - https://graphql.org/learn/global-object-identification/
141151
141143
  - ${siteURL}/guides/caching-data#custom-ids
141152
141144
  `;
141153
- var paginateOnNonNodeMessage = (config22, directiveName) => `It looks like you are trying to use @${directiveName} on a document that does not have a valid type resolver.
141145
+ var paginateOnNonNodeMessage = (directiveName) => `It looks like you are trying to use @${directiveName} on a document that does not have a valid type resolver.
141154
141146
  If this is happening inside of a fragment, make sure that the fragment either implements the Node interface or you
141155
141147
  have defined a resolver entry for the fragment type.
141156
141148
 
@@ -141376,7 +141368,6 @@ var graphql30 = __toESM(require("graphql"), 1);
141376
141368
  var graphql33 = __toESM(require("graphql"), 1);
141377
141369
  var graphql43 = __toESM(require("graphql"), 1);
141378
141370
  var graphql53 = __toESM(require("graphql"), 1);
141379
- var import_vite3 = require("vite");
141380
141371
  var graphql152 = __toESM(require("graphql"), 1);
141381
141372
  var graphql63 = __toESM(require("graphql"), 1);
141382
141373
  var import_graphql32 = require("graphql");
@@ -197976,7 +197967,7 @@ var LogLevel2 = {
197976
197967
  ShortSummary: "short-summary",
197977
197968
  Quiet: "quiet"
197978
197969
  };
197979
- var currentDir3 = global.__dirname || dirname3((0, import_node_url4.fileURLToPath)(import_meta3.url));
197970
+ var currentDir3 = dirname3((0, import_node_url4.fileURLToPath)(import_meta3.url));
197980
197971
  var Config = class {
197981
197972
  filepath;
197982
197973
  rootDir;
@@ -198706,11 +198697,11 @@ var invalidNodeFieldMessage2 = `\u26A0\uFE0F Your project defines a Node interf
198706
198697
  If you are trying to provide the Node interface and its field, they must look like the following:
198707
198698
 
198708
198699
  interface Node {
198709
- id: ID!
198700
+ id: ID!
198710
198701
  }
198711
198702
 
198712
198703
  extend type Query {
198713
- node(id: ID!): Node
198704
+ node(id: ID!): Node
198714
198705
  }
198715
198706
 
198716
198707
  For more information, please visit these links:
@@ -198725,6 +198716,10 @@ function testConfigFile({ plugins, ...config22 } = {}) {
198725
198716
 
198726
198717
  directive @live on QUERY
198727
198718
 
198719
+ input MyInput {
198720
+ string: String
198721
+ }
198722
+
198728
198723
  type User implements Node & Friend & CatOwner {
198729
198724
  id: ID!
198730
198725
  name: String!
@@ -199035,7 +199030,7 @@ function mockCollectedDoc(query22, data2) {
199035
199030
 
199036
199031
  // src/plugin/index.ts
199037
199032
  var url = __toESM(require("node:url"), 1);
199038
- var import_vite11 = require("vite");
199033
+ var import_vite7 = require("vite");
199039
199034
 
199040
199035
  // src/plugin/artifactData.ts
199041
199036
  var graphql31 = __toESM(require("graphql"), 1);
@@ -199128,7 +199123,6 @@ var import_node_util10 = require("node:util");
199128
199123
  var graphql35 = __toESM(require("graphql"), 1);
199129
199124
  var graphql44 = __toESM(require("graphql"), 1);
199130
199125
  var graphql54 = __toESM(require("graphql"), 1);
199131
- var import_vite4 = require("vite");
199132
199126
  var graphql153 = __toESM(require("graphql"), 1);
199133
199127
  var graphql64 = __toESM(require("graphql"), 1);
199134
199128
  var import_graphql63 = require("graphql");
@@ -264412,7 +264406,7 @@ var mutation4 = documentPlugin4(ArtifactKind4.Mutation, () => {
264412
264406
  }
264413
264407
  };
264414
264408
  });
264415
- var currentDir4 = global.__dirname || dirname4((0, import_node_url5.fileURLToPath)(import_meta4.url));
264409
+ var currentDir4 = dirname4((0, import_node_url5.fileURLToPath)(import_meta4.url));
264416
264410
  var DEFAULT_CONFIG_PATH4 = join22(process.cwd(), "houdini.config.js");
264417
264411
  var emptySchema4 = graphql211.buildSchema("type Query { hello: String }");
264418
264412
  var defaultDirectives4 = emptySchema4.getDirectives().map((dir) => dir.name);
@@ -264423,6 +264417,7 @@ var recast16 = __toESM5(require_main24(), 1);
264423
264417
  var AST16 = recast16.types.builders;
264424
264418
  var conventions_exports2 = {};
264425
264419
  __export5(conventions_exports2, {
264420
+ adapter_config_path: () => adapter_config_path2,
264426
264421
  fallback_unit_path: () => fallback_unit_path2,
264427
264422
  is_layout: () => is_layout2,
264428
264423
  layout_unit_path: () => layout_unit_path2,
@@ -264434,13 +264429,10 @@ __export5(conventions_exports2, {
264434
264429
  read_layoutView: () => read_layoutView2,
264435
264430
  read_pageQuery: () => read_pageQuery2,
264436
264431
  read_pageView: () => read_pageView2,
264437
- render_app_path: () => render_app_path2,
264438
- render_client_path: () => render_client_path2,
264439
- render_server_path: () => render_server_path2,
264440
- render_yoga_path: () => render_yoga_path2,
264441
264432
  router_index_path: () => router_index_path2,
264442
264433
  router_path: () => router_path2,
264443
- serialized_manifest_path: () => serialized_manifest_path2
264434
+ serialized_manifest_path: () => serialized_manifest_path2,
264435
+ server_adapter_path: () => server_adapter_path2
264444
264436
  });
264445
264437
  function router_path2(config42) {
264446
264438
  return path_exports4.join(base_dir2(config42), "Router.jsx");
@@ -264448,17 +264440,11 @@ function router_path2(config42) {
264448
264440
  function page_entry_path2(config42, id2, base) {
264449
264441
  return path_exports4.join(page_entries_dir2(config42, base), `${id2}.jsx`);
264450
264442
  }
264451
- function render_client_path2(config42, base) {
264452
- return path_exports4.join(units_dir2(config42, base), "render", "client.jsx");
264453
- }
264454
- function render_server_path2(config42, base) {
264443
+ function server_adapter_path2(config42, base) {
264455
264444
  return path_exports4.join(units_dir2(config42, base), "render", "server.js");
264456
264445
  }
264457
- function render_yoga_path2(config42, base) {
264458
- return path_exports4.join(units_dir2(config42, base), "render", "yoga.js");
264459
- }
264460
- function render_app_path2(config42, base) {
264461
- return path_exports4.join(units_dir2(config42, base), "render", "App.jsx");
264446
+ function adapter_config_path2(config42, base) {
264447
+ return path_exports4.join(units_dir2(config42, base), "render", "config.js");
264462
264448
  }
264463
264449
  function page_unit_path2(config42, id2, base) {
264464
264450
  return path_exports4.join(page_units_dir2(config42, base), `${id2}.jsx`);
@@ -264655,11 +264641,11 @@ var invalidNodeFieldMessage3 = `\u26A0\uFE0F Your project defines a Node interf
264655
264641
  If you are trying to provide the Node interface and its field, they must look like the following:
264656
264642
 
264657
264643
  interface Node {
264658
- id: ID!
264644
+ id: ID!
264659
264645
  }
264660
264646
 
264661
264647
  extend type Query {
264662
- node(id: ID!): Node
264648
+ node(id: ID!): Node
264663
264649
  }
264664
264650
 
264665
264651
  For more information, please visit these links:
@@ -292445,7 +292431,7 @@ function logYellow2(str) {
292445
292431
 
292446
292432
  // src/plugin/extractLoadFunction.ts
292447
292433
  var graphql36 = __toESM(require("graphql"), 1);
292448
- var import_vite5 = require("vite");
292434
+ var import_vite = require("vite");
292449
292435
 
292450
292436
  // src/plugin/naming.ts
292451
292437
  var query_variable_fn = (name) => {
@@ -292468,7 +292454,7 @@ async function extract_load_function(config5, filepath, mockArtifacts) {
292468
292454
  }
292469
292455
  let transformed = contents;
292470
292456
  if (filepath.endsWith(".ts")) {
292471
- transformed = (await (0, import_vite5.transformWithEsbuild)(contents, filepath)).code;
292457
+ transformed = (await (0, import_vite.transformWithEsbuild)(contents, filepath)).code;
292472
292458
  }
292473
292459
  if (transformed === null) {
292474
292460
  return nil;
@@ -295015,7 +295001,7 @@ directive @${config5.blockingDisableDirective} on QUERY
295015
295001
  svelte_kit_cfg = !fs_exports.existsSync(config_file) ? {} : await import(`${url.pathToFileURL(config_file).href}?ts=${Date.now()}`);
295016
295002
  } catch {
295017
295003
  }
295018
- _env = (0, import_vite11.loadEnv)("dev", svelte_kit_cfg.kit?.dir || ".", "");
295004
+ _env = (0, import_vite7.loadEnv)("dev", svelte_kit_cfg.kit?.dir || ".", "");
295019
295005
  return _env;
295020
295006
  }
295021
295007
  });
@@ -16410,7 +16410,6 @@ import { deprecate as deprecate2 } from "node:util";
16410
16410
  import * as graphql3 from "graphql";
16411
16411
  import * as graphql4 from "graphql";
16412
16412
  import * as graphql5 from "graphql";
16413
- import { build } from "vite";
16414
16413
  var require2 = conflict_free(import.meta.url);
16415
16414
  var __create2 = Object.create;
16416
16415
  var __defProp2 = Object.defineProperty;
@@ -78231,7 +78230,7 @@ var mutation = documentPlugin(ArtifactKind.Mutation, () => {
78231
78230
  }
78232
78231
  };
78233
78232
  });
78234
- var currentDir = global.__dirname || dirname(fileURLToPath(import.meta.url));
78233
+ var currentDir = dirname(fileURLToPath(import.meta.url));
78235
78234
  var DEFAULT_CONFIG_PATH = join2(process.cwd(), "houdini.config.js");
78236
78235
  var emptySchema = graphql2.buildSchema("type Query { hello: String }");
78237
78236
  var defaultDirectives = emptySchema.getDirectives().map((dir) => dir.name);
@@ -78574,6 +78573,7 @@ async function find_graphql(config22, parsedScript, walker) {
78574
78573
  }
78575
78574
  var conventions_exports = {};
78576
78575
  __export(conventions_exports, {
78576
+ adapter_config_path: () => adapter_config_path,
78577
78577
  fallback_unit_path: () => fallback_unit_path,
78578
78578
  is_layout: () => is_layout,
78579
78579
  layout_unit_path: () => layout_unit_path,
@@ -78585,13 +78585,10 @@ __export(conventions_exports, {
78585
78585
  read_layoutView: () => read_layoutView,
78586
78586
  read_pageQuery: () => read_pageQuery,
78587
78587
  read_pageView: () => read_pageView,
78588
- render_app_path: () => render_app_path,
78589
- render_client_path: () => render_client_path,
78590
- render_server_path: () => render_server_path,
78591
- render_yoga_path: () => render_yoga_path,
78592
78588
  router_index_path: () => router_index_path,
78593
78589
  router_path: () => router_path,
78594
- serialized_manifest_path: () => serialized_manifest_path
78590
+ serialized_manifest_path: () => serialized_manifest_path,
78591
+ server_adapter_path: () => server_adapter_path
78595
78592
  });
78596
78593
  function router_path(config22) {
78597
78594
  return path_exports.join(base_dir(config22), "Router.jsx");
@@ -78599,17 +78596,11 @@ function router_path(config22) {
78599
78596
  function page_entry_path(config22, id2, base) {
78600
78597
  return path_exports.join(page_entries_dir(config22, base), `${id2}.jsx`);
78601
78598
  }
78602
- function render_client_path(config22, base) {
78603
- return path_exports.join(units_dir(config22, base), "render", "client.jsx");
78604
- }
78605
- function render_server_path(config22, base) {
78599
+ function server_adapter_path(config22, base) {
78606
78600
  return path_exports.join(units_dir(config22, base), "render", "server.js");
78607
78601
  }
78608
- function render_yoga_path(config22, base) {
78609
- return path_exports.join(units_dir(config22, base), "render", "yoga.js");
78610
- }
78611
- function render_app_path(config22, base) {
78612
- return path_exports.join(units_dir(config22, base), "render", "App.jsx");
78602
+ function adapter_config_path(config22, base) {
78603
+ return path_exports.join(units_dir(config22, base), "render", "config.js");
78613
78604
  }
78614
78605
  function page_unit_path(config22, id2, base) {
78615
78606
  return path_exports.join(page_units_dir(config22, base), `${id2}.jsx`);
@@ -78708,7 +78699,6 @@ import * as graphql32 from "graphql";
78708
78699
  import crypto2 from "node:crypto";
78709
78700
  import * as graphql42 from "graphql";
78710
78701
  import * as graphql52 from "graphql";
78711
- import { build as build2 } from "vite";
78712
78702
  import * as graphql15 from "graphql";
78713
78703
  import * as graphql62 from "graphql";
78714
78704
  import { Kind as GraphqlKinds } from "graphql";
@@ -135348,7 +135338,7 @@ var LogLevel = {
135348
135338
  ShortSummary: "short-summary",
135349
135339
  Quiet: "quiet"
135350
135340
  };
135351
- var currentDir2 = global.__dirname || dirname2(fileURLToPath2(import.meta.url));
135341
+ var currentDir2 = dirname2(fileURLToPath2(import.meta.url));
135352
135342
  var DEFAULT_CONFIG_PATH2 = join3(process.cwd(), "houdini.config.js");
135353
135343
  var emptySchema2 = graphql22.buildSchema("type Query { hello: String }");
135354
135344
  var defaultDirectives2 = emptySchema2.getDirectives().map((dir) => dir.name);
@@ -136552,9 +136542,11 @@ function serializeValue(value2) {
136552
136542
  }
136553
136543
  if (typeof value2 === "object" && value2 !== null) {
136554
136544
  return AST4.objectExpression(
136555
- Object.entries(value2).filter(([, value22]) => typeof value22 !== "undefined").map(
136556
- ([key, value22]) => AST4.objectProperty(AST4.stringLiteral(key), serializeValue(value22))
136557
- )
136545
+ Object.entries(value2).filter(
136546
+ ([key, value22]) => typeof value22 !== "undefined" && key !== "prev" && key !== "next"
136547
+ ).map(([key, val]) => {
136548
+ return AST4.objectProperty(AST4.stringLiteral(key), serializeValue(val));
136549
+ })
136558
136550
  );
136559
136551
  }
136560
136552
  if (typeof value2 === "string") {
@@ -137087,7 +137079,7 @@ async function paginate(config22, documents) {
137087
137079
  value: "__typename"
137088
137080
  }
137089
137081
  },
137090
- ...(typeConfig?.keys || ["id"]).map((key) => ({
137082
+ ...(typeConfig?.keys || [config22.defaultKeys[0]]).map((key) => ({
137091
137083
  kind: graphql11.Kind.FIELD,
137092
137084
  name: {
137093
137085
  kind: graphql11.Kind.NAME,
@@ -140703,7 +140695,7 @@ function validateFragmentArguments(config22, filepath, fragments) {
140703
140695
  if (missing.length > 0) {
140704
140696
  ctx.reportError(
140705
140697
  new graphql26.GraphQLError(
140706
- "The following arguments are missing from this fragment: " + JSON.stringify(missing)
140698
+ `The following arguments are missing from the "${fragmentName}" fragment: ` + JSON.stringify(missing)
140707
140699
  )
140708
140700
  );
140709
140701
  return;
@@ -140939,7 +140931,7 @@ function nodeDirectives(config22, directives) {
140939
140931
  }
140940
140932
  if (!possibleNodes.includes(definitionType)) {
140941
140933
  ctx.reportError(
140942
- new graphql26.GraphQLError(paginateOnNonNodeMessage(config22, node2.name.value))
140934
+ new graphql26.GraphQLError(paginateOnNonNodeMessage(node2.name.value))
140943
140935
  );
140944
140936
  }
140945
140937
  }
@@ -141074,45 +141066,45 @@ function getAndVerifyNodeInterface(config22) {
141074
141066
  return null;
141075
141067
  }
141076
141068
  if (!graphql26.isInterfaceType(nodeInterface)) {
141077
- displayInvalidNodeFieldMessage(config22.logLevel);
141069
+ displayInvalidNodeFieldMessage(config22);
141078
141070
  return null;
141079
141071
  }
141080
141072
  const queryType = schema2.getQueryType();
141081
141073
  if (!queryType) {
141082
- displayInvalidNodeFieldMessage(config22.logLevel);
141074
+ displayInvalidNodeFieldMessage(config22);
141083
141075
  return null;
141084
141076
  }
141085
141077
  const nodeField = queryType.getFields()["node"];
141086
141078
  if (!nodeField) {
141087
- displayInvalidNodeFieldMessage(config22.logLevel);
141079
+ displayInvalidNodeFieldMessage(config22);
141088
141080
  return null;
141089
141081
  }
141090
141082
  const args = nodeField.args;
141091
141083
  if (args.length === 0) {
141092
- displayInvalidNodeFieldMessage(config22.logLevel);
141084
+ displayInvalidNodeFieldMessage(config22);
141093
141085
  return null;
141094
141086
  }
141095
- const idArg = args.find((arg) => arg.name === "id");
141087
+ const idArg = args.find((arg) => arg.name === config22.defaultKeys[0]);
141096
141088
  if (!idArg) {
141097
- displayInvalidNodeFieldMessage(config22.logLevel);
141089
+ displayInvalidNodeFieldMessage(config22);
141098
141090
  return null;
141099
141091
  }
141100
141092
  const idType = unwrapType2(config22, idArg.type);
141101
141093
  if (idType.type.name !== "ID") {
141102
- displayInvalidNodeFieldMessage(config22.logLevel);
141094
+ displayInvalidNodeFieldMessage(config22);
141103
141095
  return null;
141104
141096
  }
141105
141097
  const fieldReturnType = unwrapType2(config22, nodeField.type);
141106
141098
  if (fieldReturnType.type.name !== "Node") {
141107
- displayInvalidNodeFieldMessage(config22.logLevel);
141099
+ displayInvalidNodeFieldMessage(config22);
141108
141100
  return null;
141109
141101
  }
141110
141102
  return nodeInterface;
141111
141103
  }
141112
141104
  var nbInvalidNodeFieldMessageDisplayed = 0;
141113
- function displayInvalidNodeFieldMessage(logLevel) {
141105
+ function displayInvalidNodeFieldMessage(config22) {
141114
141106
  if (nbInvalidNodeFieldMessageDisplayed === 0) {
141115
- if (logLevel === LogLevel.Full) {
141107
+ if (config22.logLevel === LogLevel.Full) {
141116
141108
  console.warn(invalidNodeFieldMessage);
141117
141109
  } else {
141118
141110
  console.warn(invalidNodeFieldMessageLight);
@@ -141126,18 +141118,18 @@ var invalidNodeFieldMessage = `\u26A0\uFE0F Your project defines a Node interfa
141126
141118
  If you are trying to provide the Node interface and its field, they must look like the following:
141127
141119
 
141128
141120
  interface Node {
141129
- id: ID!
141121
+ id: ID!
141130
141122
  }
141131
141123
 
141132
141124
  extend type Query {
141133
- node(id: ID!): Node
141125
+ node(id: ID!): Node
141134
141126
  }
141135
141127
 
141136
141128
  For more information, please visit these links:
141137
141129
  - https://graphql.org/learn/global-object-identification/
141138
141130
  - ${siteURL}/guides/caching-data#custom-ids
141139
141131
  `;
141140
- var paginateOnNonNodeMessage = (config22, directiveName) => `It looks like you are trying to use @${directiveName} on a document that does not have a valid type resolver.
141132
+ var paginateOnNonNodeMessage = (directiveName) => `It looks like you are trying to use @${directiveName} on a document that does not have a valid type resolver.
141141
141133
  If this is happening inside of a fragment, make sure that the fragment either implements the Node interface or you
141142
141134
  have defined a resolver entry for the fragment type.
141143
141135
 
@@ -141363,7 +141355,6 @@ import * as graphql30 from "graphql";
141363
141355
  import * as graphql33 from "graphql";
141364
141356
  import * as graphql43 from "graphql";
141365
141357
  import * as graphql53 from "graphql";
141366
- import { build as build3 } from "vite";
141367
141358
  import * as graphql152 from "graphql";
141368
141359
  import * as graphql63 from "graphql";
141369
141360
  import { Kind as GraphqlKinds3 } from "graphql";
@@ -197962,7 +197953,7 @@ var LogLevel2 = {
197962
197953
  ShortSummary: "short-summary",
197963
197954
  Quiet: "quiet"
197964
197955
  };
197965
- var currentDir3 = global.__dirname || dirname3(fileURLToPath3(import.meta.url));
197956
+ var currentDir3 = dirname3(fileURLToPath3(import.meta.url));
197966
197957
  var Config = class {
197967
197958
  filepath;
197968
197959
  rootDir;
@@ -198692,11 +198683,11 @@ var invalidNodeFieldMessage2 = `\u26A0\uFE0F Your project defines a Node interf
198692
198683
  If you are trying to provide the Node interface and its field, they must look like the following:
198693
198684
 
198694
198685
  interface Node {
198695
- id: ID!
198686
+ id: ID!
198696
198687
  }
198697
198688
 
198698
198689
  extend type Query {
198699
- node(id: ID!): Node
198690
+ node(id: ID!): Node
198700
198691
  }
198701
198692
 
198702
198693
  For more information, please visit these links:
@@ -198711,6 +198702,10 @@ function testConfigFile({ plugins, ...config22 } = {}) {
198711
198702
 
198712
198703
  directive @live on QUERY
198713
198704
 
198705
+ input MyInput {
198706
+ string: String
198707
+ }
198708
+
198714
198709
  type User implements Node & Friend & CatOwner {
198715
198710
  id: ID!
198716
198711
  name: String!
@@ -199114,7 +199109,6 @@ import { deprecate as deprecate22 } from "node:util";
199114
199109
  import * as graphql35 from "graphql";
199115
199110
  import * as graphql44 from "graphql";
199116
199111
  import * as graphql54 from "graphql";
199117
- import { build as build4 } from "vite";
199118
199112
  import * as graphql153 from "graphql";
199119
199113
  import * as graphql64 from "graphql";
199120
199114
  import { Kind as GraphqlKinds4 } from "graphql";
@@ -264397,7 +264391,7 @@ var mutation4 = documentPlugin4(ArtifactKind4.Mutation, () => {
264397
264391
  }
264398
264392
  };
264399
264393
  });
264400
- var currentDir4 = global.__dirname || dirname4(fileURLToPath4(import.meta.url));
264394
+ var currentDir4 = dirname4(fileURLToPath4(import.meta.url));
264401
264395
  var DEFAULT_CONFIG_PATH4 = join22(process.cwd(), "houdini.config.js");
264402
264396
  var emptySchema4 = graphql211.buildSchema("type Query { hello: String }");
264403
264397
  var defaultDirectives4 = emptySchema4.getDirectives().map((dir) => dir.name);
@@ -264408,6 +264402,7 @@ var recast16 = __toESM5(require_main24(), 1);
264408
264402
  var AST16 = recast16.types.builders;
264409
264403
  var conventions_exports2 = {};
264410
264404
  __export4(conventions_exports2, {
264405
+ adapter_config_path: () => adapter_config_path2,
264411
264406
  fallback_unit_path: () => fallback_unit_path2,
264412
264407
  is_layout: () => is_layout2,
264413
264408
  layout_unit_path: () => layout_unit_path2,
@@ -264419,13 +264414,10 @@ __export4(conventions_exports2, {
264419
264414
  read_layoutView: () => read_layoutView2,
264420
264415
  read_pageQuery: () => read_pageQuery2,
264421
264416
  read_pageView: () => read_pageView2,
264422
- render_app_path: () => render_app_path2,
264423
- render_client_path: () => render_client_path2,
264424
- render_server_path: () => render_server_path2,
264425
- render_yoga_path: () => render_yoga_path2,
264426
264417
  router_index_path: () => router_index_path2,
264427
264418
  router_path: () => router_path2,
264428
- serialized_manifest_path: () => serialized_manifest_path2
264419
+ serialized_manifest_path: () => serialized_manifest_path2,
264420
+ server_adapter_path: () => server_adapter_path2
264429
264421
  });
264430
264422
  function router_path2(config42) {
264431
264423
  return path_exports4.join(base_dir2(config42), "Router.jsx");
@@ -264433,17 +264425,11 @@ function router_path2(config42) {
264433
264425
  function page_entry_path2(config42, id2, base) {
264434
264426
  return path_exports4.join(page_entries_dir2(config42, base), `${id2}.jsx`);
264435
264427
  }
264436
- function render_client_path2(config42, base) {
264437
- return path_exports4.join(units_dir2(config42, base), "render", "client.jsx");
264438
- }
264439
- function render_server_path2(config42, base) {
264428
+ function server_adapter_path2(config42, base) {
264440
264429
  return path_exports4.join(units_dir2(config42, base), "render", "server.js");
264441
264430
  }
264442
- function render_yoga_path2(config42, base) {
264443
- return path_exports4.join(units_dir2(config42, base), "render", "yoga.js");
264444
- }
264445
- function render_app_path2(config42, base) {
264446
- return path_exports4.join(units_dir2(config42, base), "render", "App.jsx");
264431
+ function adapter_config_path2(config42, base) {
264432
+ return path_exports4.join(units_dir2(config42, base), "render", "config.js");
264447
264433
  }
264448
264434
  function page_unit_path2(config42, id2, base) {
264449
264435
  return path_exports4.join(page_units_dir2(config42, base), `${id2}.jsx`);
@@ -264640,11 +264626,11 @@ var invalidNodeFieldMessage3 = `\u26A0\uFE0F Your project defines a Node interf
264640
264626
  If you are trying to provide the Node interface and its field, they must look like the following:
264641
264627
 
264642
264628
  interface Node {
264643
- id: ID!
264629
+ id: ID!
264644
264630
  }
264645
264631
 
264646
264632
  extend type Query {
264647
- node(id: ID!): Node
264633
+ node(id: ID!): Node
264648
264634
  }
264649
264635
 
264650
264636
  For more information, please visit these links:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "houdini-svelte",
3
- "version": "1.2.12",
3
+ "version": "1.2.14",
4
4
  "description": "The svelte plugin for houdini",
5
5
  "keywords": [
6
6
  "typescript",
@@ -32,7 +32,7 @@
32
32
  "rollup": "^3.7.4",
33
33
  "svelte": "^3.57.0",
34
34
  "vite": "^4.1.1",
35
- "houdini": "^1.2.12"
35
+ "houdini": "^1.2.14"
36
36
  },
37
37
  "files": [
38
38
  "build"