houdini-svelte 2.0.0 → 2.1.0

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.
@@ -6,7 +6,7 @@ declare const _default: (getFramework: () => Framework) => {
6
6
  }) => void | Promise<void>) | undefined;
7
7
  buildEnd?: ((this: import("rollup").PluginContext, error?: Error | undefined, houdiniConfig?: import("houdini").Config | undefined) => void | Promise<void>) | undefined;
8
8
  closeBundle?: ((this: import("rollup").PluginContext, config: import("houdini").Config) => void | Promise<void>) | undefined;
9
- configResolved?: import("rollup").ObjectHook<(this: void, config: Readonly<Omit<import("vite").UserConfig, "plugins" | "css" | "assetsInclude" | "optimizeDeps" | "worker" | "build"> & {
9
+ configResolved?: import("rollup").ObjectHook<(this: void, config: Readonly<Omit<import("vite").UserConfig, "plugins" | "dev" | "css" | "json" | "assetsInclude" | "optimizeDeps" | "worker" | "build" | "environments" | "server" | "preview"> & {
10
10
  configFile: string | undefined;
11
11
  configFileDependencies: string[];
12
12
  inlineConfig: import("vite").InlineConfig;
@@ -25,8 +25,11 @@ declare const _default: (getFramework: () => Framework) => {
25
25
  };
26
26
  plugins: readonly import("vite").Plugin<any>[];
27
27
  css: import("vite").ResolvedCSSOptions;
28
+ json: Required<import("vite").JsonOptions>;
28
29
  esbuild: false | import("vite").ESBuildOptions;
29
30
  server: import("vite").ResolvedServerOptions;
31
+ dev: import("vite").ResolvedDevEnvironmentOptions;
32
+ builder: Required<import("vite").BuilderOptions> | undefined;
30
33
  build: import("vite").ResolvedBuildOptions;
31
34
  preview: import("vite").ResolvedPreviewOptions;
32
35
  ssr: import("vite").ResolvedSSROptions;
@@ -37,6 +40,15 @@ declare const _default: (getFramework: () => Framework) => {
37
40
  worker: import("vite").ResolvedWorkerOptions;
38
41
  appType: import("vite").AppType;
39
42
  experimental: import("vite").ExperimentalOptions;
43
+ environments: Record<string, {
44
+ define?: Record<string, any> | undefined;
45
+ resolve: Required<import("vite").ResolveOptions>;
46
+ consumer: "client" | "server";
47
+ keepProcessEnv?: boolean | undefined;
48
+ optimizeDeps: import("vite").DepOptimizationOptions;
49
+ dev: import("vite").ResolvedDevEnvironmentOptions;
50
+ build: import("vite").ResolvedBuildEnvironmentOptions;
51
+ }>;
40
52
  } & import("vite").PluginHookUtils>) => void | Promise<void>, {}> | undefined;
41
53
  options?: ((this: import("rollup").MinimalPluginContext, options: import("rollup").InputOptions & {
42
54
  houdiniConfig: import("houdini").Config;
@@ -172107,7 +172107,7 @@ function is_root_route(filepath) {
172107
172107
  if (filepath.toString().endsWith("/")) {
172108
172108
  filepath = filepath.slice(0, -1);
172109
172109
  }
172110
- return filepath.endsWith(path_exports.join("src", "routes")) && !filepath.includes(".svelte-kit") && !filepath.includes("$houdini");
172110
+ return filepath.endsWith(path_exports.join("src", "routes")) && !filepath.includes(".svelte-kit") && !filepath.includes(_config.runtimeDir ?? "$houdini");
172111
172111
  }
172112
172112
  var empty_layout = "<slot />";
172113
172113
 
@@ -172101,7 +172101,7 @@ function is_root_route(filepath) {
172101
172101
  if (filepath.toString().endsWith("/")) {
172102
172102
  filepath = filepath.slice(0, -1);
172103
172103
  }
172104
- return filepath.endsWith(path_exports.join("src", "routes")) && !filepath.includes(".svelte-kit") && !filepath.includes("$houdini");
172104
+ return filepath.endsWith(path_exports.join("src", "routes")) && !filepath.includes(".svelte-kit") && !filepath.includes(_config.runtimeDir ?? "$houdini");
172105
172105
  }
172106
172106
  var empty_layout = "<slot />";
172107
172107
 
@@ -89557,7 +89557,7 @@ async function pullSchema(url, fetchTimeout, schemaPath, headers, skipWriting) {
89557
89557
  content = await resp.text();
89558
89558
  const jsonSchema = JSON.parse(content).data;
89559
89559
  let fileData = "";
89560
- if (schemaPath.endsWith("gql") || schemaPath.endsWith("graphql")) {
89560
+ if (schemaPath.endsWith("gql") || schemaPath.endsWith("graphql") || schemaPath.endsWith("graphqls")) {
89561
89561
  const schema = graphql.buildClientSchema(jsonSchema);
89562
89562
  fileData = graphql.printSchema(graphql.lexicographicSortSchema(schema));
89563
89563
  } else {
@@ -92057,8 +92057,9 @@ var Config = class {
92057
92057
  localSchema;
92058
92058
  projectRoot;
92059
92059
  schema;
92060
+ runtimeDir;
92060
92061
  schemaPath;
92061
- persistedQueriesPath = "./$houdini/persisted_queries.json";
92062
+ persistedQueriesPath;
92062
92063
  exclude;
92063
92064
  scalars;
92064
92065
  module = "esm";
@@ -92099,6 +92100,7 @@ var Config = class {
92099
92100
  let {
92100
92101
  schema,
92101
92102
  schemaPath = "./schema.graphql",
92103
+ runtimeDir = "$houdini",
92102
92104
  exclude = [],
92103
92105
  module: module2 = "esm",
92104
92106
  scalars,
@@ -92137,6 +92139,7 @@ var Config = class {
92137
92139
  this.projectRoot = dirname(
92138
92140
  projectDir ? join2(process.cwd(), projectDir) : filepath
92139
92141
  );
92142
+ this.runtimeDir = runtimeDir;
92140
92143
  this.scalars = scalars;
92141
92144
  this.cacheBufferSize = cacheBufferSize;
92142
92145
  this.defaultCachePolicy = defaultCachePolicy;
@@ -92151,11 +92154,9 @@ var Config = class {
92151
92154
  this.schemaPollInterval = watchSchema?.interval === void 0 ? 2e3 : watchSchema.interval;
92152
92155
  this.schemaPollTimeout = watchSchema?.timeout ?? 3e4;
92153
92156
  this.schemaPollHeaders = watchSchema?.headers ?? {};
92154
- this.rootDir = join2(this.projectRoot, "$houdini");
92157
+ this.rootDir = join2(this.projectRoot, this.runtimeDir);
92158
+ this.persistedQueriesPath = persistedQueriesPath ?? join2(this.rootDir, "persisted_queries.json");
92155
92159
  this.#fragmentVariableMaps = {};
92156
- if (persistedQueriesPath) {
92157
- this.persistedQueriesPath = persistedQueriesPath;
92158
- }
92159
92160
  if (defaultKeys) {
92160
92161
  this.defaultKeys = defaultKeys;
92161
92162
  }
@@ -92808,7 +92809,11 @@ async function getConfig({
92808
92809
  }
92809
92810
  }
92810
92811
  if (schemaOk && !noSchema) {
92811
- _config.schema = await loadSchemaFile(_config.schemaPath);
92812
+ try {
92813
+ _config.schema = await loadSchemaFile(_config.schemaPath);
92814
+ } catch (e22) {
92815
+ console.error(`\u26A0\uFE0F Your schema file could not be loaded: ${e22}`);
92816
+ }
92812
92817
  }
92813
92818
  }
92814
92819
  _config.plugins = orderedPlugins(plugins2);
@@ -92939,7 +92944,7 @@ async function loadSchemaFile(schemaPath) {
92939
92944
  });
92940
92945
  }
92941
92946
  const contents = await readFile(schemaPath);
92942
- if (schemaPath.endsWith("gql") || schemaPath.endsWith("graphql")) {
92947
+ if (schemaPath.endsWith("gql") || schemaPath.endsWith("graphql") || schemaPath.endsWith("graphqls")) {
92943
92948
  return graphql3.buildSchema(contents);
92944
92949
  }
92945
92950
  const jsonContents = JSON.parse(contents);
@@ -89554,7 +89554,7 @@ async function pullSchema(url, fetchTimeout, schemaPath, headers, skipWriting) {
89554
89554
  content = await resp.text();
89555
89555
  const jsonSchema = JSON.parse(content).data;
89556
89556
  let fileData = "";
89557
- if (schemaPath.endsWith("gql") || schemaPath.endsWith("graphql")) {
89557
+ if (schemaPath.endsWith("gql") || schemaPath.endsWith("graphql") || schemaPath.endsWith("graphqls")) {
89558
89558
  const schema = graphql.buildClientSchema(jsonSchema);
89559
89559
  fileData = graphql.printSchema(graphql.lexicographicSortSchema(schema));
89560
89560
  } else {
@@ -92054,8 +92054,9 @@ var Config = class {
92054
92054
  localSchema;
92055
92055
  projectRoot;
92056
92056
  schema;
92057
+ runtimeDir;
92057
92058
  schemaPath;
92058
- persistedQueriesPath = "./$houdini/persisted_queries.json";
92059
+ persistedQueriesPath;
92059
92060
  exclude;
92060
92061
  scalars;
92061
92062
  module = "esm";
@@ -92096,6 +92097,7 @@ var Config = class {
92096
92097
  let {
92097
92098
  schema,
92098
92099
  schemaPath = "./schema.graphql",
92100
+ runtimeDir = "$houdini",
92099
92101
  exclude = [],
92100
92102
  module = "esm",
92101
92103
  scalars,
@@ -92134,6 +92136,7 @@ var Config = class {
92134
92136
  this.projectRoot = dirname(
92135
92137
  projectDir ? join2(process.cwd(), projectDir) : filepath
92136
92138
  );
92139
+ this.runtimeDir = runtimeDir;
92137
92140
  this.scalars = scalars;
92138
92141
  this.cacheBufferSize = cacheBufferSize;
92139
92142
  this.defaultCachePolicy = defaultCachePolicy;
@@ -92148,11 +92151,9 @@ var Config = class {
92148
92151
  this.schemaPollInterval = watchSchema?.interval === void 0 ? 2e3 : watchSchema.interval;
92149
92152
  this.schemaPollTimeout = watchSchema?.timeout ?? 3e4;
92150
92153
  this.schemaPollHeaders = watchSchema?.headers ?? {};
92151
- this.rootDir = join2(this.projectRoot, "$houdini");
92154
+ this.rootDir = join2(this.projectRoot, this.runtimeDir);
92155
+ this.persistedQueriesPath = persistedQueriesPath ?? join2(this.rootDir, "persisted_queries.json");
92152
92156
  this.#fragmentVariableMaps = {};
92153
- if (persistedQueriesPath) {
92154
- this.persistedQueriesPath = persistedQueriesPath;
92155
- }
92156
92157
  if (defaultKeys) {
92157
92158
  this.defaultKeys = defaultKeys;
92158
92159
  }
@@ -92805,7 +92806,11 @@ async function getConfig({
92805
92806
  }
92806
92807
  }
92807
92808
  if (schemaOk && !noSchema) {
92808
- _config.schema = await loadSchemaFile(_config.schemaPath);
92809
+ try {
92810
+ _config.schema = await loadSchemaFile(_config.schemaPath);
92811
+ } catch (e22) {
92812
+ console.error(`\u26A0\uFE0F Your schema file could not be loaded: ${e22}`);
92813
+ }
92809
92814
  }
92810
92815
  }
92811
92816
  _config.plugins = orderedPlugins(plugins2);
@@ -92936,7 +92941,7 @@ async function loadSchemaFile(schemaPath) {
92936
92941
  });
92937
92942
  }
92938
92943
  const contents = await readFile(schemaPath);
92939
- if (schemaPath.endsWith("gql") || schemaPath.endsWith("graphql")) {
92944
+ if (schemaPath.endsWith("gql") || schemaPath.endsWith("graphql") || schemaPath.endsWith("graphqls")) {
92940
92945
  return graphql3.buildSchema(contents);
92941
92946
  }
92942
92947
  const jsonContents = JSON.parse(contents);
@@ -142739,6 +142739,11 @@ var CachePolicy = {
142739
142739
  CacheAndNetwork: "CacheAndNetwork",
142740
142740
  NoCache: "NoCache"
142741
142741
  };
142742
+ var DedupeMatchMode = {
142743
+ Variables: "Variables",
142744
+ Operation: "Operation",
142745
+ None: "None"
142746
+ };
142742
142747
  var PaginateMode = {
142743
142748
  Infinite: "Infinite",
142744
142749
  SinglePage: "SinglePage"
@@ -147184,14 +147189,27 @@ async function paginate(config, documents) {
147184
147189
  return {
147185
147190
  ...node,
147186
147191
  variableDefinitions: finalVariables,
147187
- directives: [
147192
+ directives: config.configFile.supressPaginationDeduplication ? node.directives : [
147188
147193
  ...node.directives || [],
147189
147194
  {
147190
147195
  kind: graphql13.Kind.DIRECTIVE,
147191
147196
  name: {
147192
147197
  kind: graphql13.Kind.NAME,
147193
147198
  value: config.dedupeDirective
147194
- }
147199
+ },
147200
+ arguments: [
147201
+ {
147202
+ kind: "Argument",
147203
+ name: {
147204
+ kind: "Name",
147205
+ value: "match"
147206
+ },
147207
+ value: {
147208
+ kind: "EnumValue",
147209
+ value: DedupeMatchMode.Variables
147210
+ }
147211
+ }
147212
+ ]
147195
147213
  }
147196
147214
  ]
147197
147215
  };
@@ -148539,7 +148557,13 @@ function artifactGenerator(stats) {
148539
148557
  const cancelFirstArg = dedupeDirective.arguments?.find(
148540
148558
  (arg) => arg.name.value === "cancelFirst"
148541
148559
  );
148542
- dedupe = cancelFirstArg && cancelFirstArg.value.kind === "BooleanValue" && cancelFirstArg.value ? "first" : "last";
148560
+ const matchArg = dedupeDirective.arguments?.find(
148561
+ (arg) => arg.name.value === "match"
148562
+ );
148563
+ dedupe = {
148564
+ cancel: cancelFirstArg && cancelFirstArg.value.kind === "BooleanValue" && cancelFirstArg.value ? "first" : "last",
148565
+ match: matchArg && matchArg.value.kind === "EnumValue" ? matchArg.value.value : DedupeMatchMode.Operation
148566
+ };
148543
148567
  }
148544
148568
  selectionSet = operation.selectionSet;
148545
148569
  if (originalParsed.definitions[0].kind === "OperationDefinition") {
@@ -152076,11 +152100,20 @@ directive @${config.paginateDirective}(${config.listOrPaginateNameArg}: String,
152076
152100
  """
152077
152101
  directive @${config.listPrependDirective} on FRAGMENT_SPREAD
152078
152102
 
152103
+ enum DedupeMatchMode {
152104
+ ${DedupeMatchMode.Variables}
152105
+ ${DedupeMatchMode.Operation}
152106
+ ${DedupeMatchMode.None}
152107
+ }
152108
+
152079
152109
  """
152080
152110
  @${config.dedupeDirective} is used to prevent an operation from running more than once at the same time.
152081
152111
  If the cancelFirst arg is set to true, the response already in flight will be canceled instead of the second one.
152112
+ If match is set to Operation, then a request will be deduplicated any time there is a request with the same operation.
152113
+ If it's set to Variables then the request will only be deduplicated if the variables match. If match is set to None,
152114
+ then the request will never be deduplicated.
152082
152115
  """
152083
- directive @${config.dedupeDirective}(cancelFirst: Boolean) on QUERY | MUTATION
152116
+ directive @${config.dedupeDirective}(cancelFirst: Boolean, match: DedupeMatchMode) on QUERY | MUTATION
152084
152117
 
152085
152118
  """
152086
152119
  @${config.optimisticKeyDirective} is used to identify a field as an optimistic key
@@ -209933,8 +209966,9 @@ var Config = class {
209933
209966
  localSchema;
209934
209967
  projectRoot;
209935
209968
  schema;
209969
+ runtimeDir;
209936
209970
  schemaPath;
209937
- persistedQueriesPath = "./$houdini/persisted_queries.json";
209971
+ persistedQueriesPath;
209938
209972
  exclude;
209939
209973
  scalars;
209940
209974
  module = "esm";
@@ -209975,6 +210009,7 @@ var Config = class {
209975
210009
  let {
209976
210010
  schema: schema2,
209977
210011
  schemaPath = "./schema.graphql",
210012
+ runtimeDir = "$houdini",
209978
210013
  exclude = [],
209979
210014
  module: module2 = "esm",
209980
210015
  scalars,
@@ -210013,6 +210048,7 @@ var Config = class {
210013
210048
  this.projectRoot = dirname3(
210014
210049
  projectDir ? join4(process.cwd(), projectDir) : filepath
210015
210050
  );
210051
+ this.runtimeDir = runtimeDir;
210016
210052
  this.scalars = scalars;
210017
210053
  this.cacheBufferSize = cacheBufferSize;
210018
210054
  this.defaultCachePolicy = defaultCachePolicy;
@@ -210027,11 +210063,9 @@ var Config = class {
210027
210063
  this.schemaPollInterval = watchSchema?.interval === void 0 ? 2e3 : watchSchema.interval;
210028
210064
  this.schemaPollTimeout = watchSchema?.timeout ?? 3e4;
210029
210065
  this.schemaPollHeaders = watchSchema?.headers ?? {};
210030
- this.rootDir = join4(this.projectRoot, "$houdini");
210066
+ this.rootDir = join4(this.projectRoot, this.runtimeDir);
210067
+ this.persistedQueriesPath = persistedQueriesPath ?? join4(this.rootDir, "persisted_queries.json");
210031
210068
  this.#fragmentVariableMaps = {};
210032
- if (persistedQueriesPath) {
210033
- this.persistedQueriesPath = persistedQueriesPath;
210034
- }
210035
210069
  if (defaultKeys) {
210036
210070
  this.defaultKeys = defaultKeys;
210037
210071
  }
@@ -294278,7 +294312,7 @@ function is_root_route(filepath) {
294278
294312
  if (filepath.toString().endsWith("/")) {
294279
294313
  filepath = filepath.slice(0, -1);
294280
294314
  }
294281
- return filepath.endsWith(path_exports.join("src", "routes")) && !filepath.includes(".svelte-kit") && !filepath.includes("$houdini");
294315
+ return filepath.endsWith(path_exports.join("src", "routes")) && !filepath.includes(".svelte-kit") && !filepath.includes(_config.runtimeDir ?? "$houdini");
294282
294316
  }
294283
294317
  var empty_layout = "<slot />";
294284
294318
 
@@ -142730,6 +142730,11 @@ var CachePolicy = {
142730
142730
  CacheAndNetwork: "CacheAndNetwork",
142731
142731
  NoCache: "NoCache"
142732
142732
  };
142733
+ var DedupeMatchMode = {
142734
+ Variables: "Variables",
142735
+ Operation: "Operation",
142736
+ None: "None"
142737
+ };
142733
142738
  var PaginateMode = {
142734
142739
  Infinite: "Infinite",
142735
142740
  SinglePage: "SinglePage"
@@ -147175,14 +147180,27 @@ async function paginate(config, documents) {
147175
147180
  return {
147176
147181
  ...node,
147177
147182
  variableDefinitions: finalVariables,
147178
- directives: [
147183
+ directives: config.configFile.supressPaginationDeduplication ? node.directives : [
147179
147184
  ...node.directives || [],
147180
147185
  {
147181
147186
  kind: graphql13.Kind.DIRECTIVE,
147182
147187
  name: {
147183
147188
  kind: graphql13.Kind.NAME,
147184
147189
  value: config.dedupeDirective
147185
- }
147190
+ },
147191
+ arguments: [
147192
+ {
147193
+ kind: "Argument",
147194
+ name: {
147195
+ kind: "Name",
147196
+ value: "match"
147197
+ },
147198
+ value: {
147199
+ kind: "EnumValue",
147200
+ value: DedupeMatchMode.Variables
147201
+ }
147202
+ }
147203
+ ]
147186
147204
  }
147187
147205
  ]
147188
147206
  };
@@ -148530,7 +148548,13 @@ function artifactGenerator(stats) {
148530
148548
  const cancelFirstArg = dedupeDirective.arguments?.find(
148531
148549
  (arg) => arg.name.value === "cancelFirst"
148532
148550
  );
148533
- dedupe = cancelFirstArg && cancelFirstArg.value.kind === "BooleanValue" && cancelFirstArg.value ? "first" : "last";
148551
+ const matchArg = dedupeDirective.arguments?.find(
148552
+ (arg) => arg.name.value === "match"
148553
+ );
148554
+ dedupe = {
148555
+ cancel: cancelFirstArg && cancelFirstArg.value.kind === "BooleanValue" && cancelFirstArg.value ? "first" : "last",
148556
+ match: matchArg && matchArg.value.kind === "EnumValue" ? matchArg.value.value : DedupeMatchMode.Operation
148557
+ };
148534
148558
  }
148535
148559
  selectionSet = operation.selectionSet;
148536
148560
  if (originalParsed.definitions[0].kind === "OperationDefinition") {
@@ -152067,11 +152091,20 @@ directive @${config.paginateDirective}(${config.listOrPaginateNameArg}: String,
152067
152091
  """
152068
152092
  directive @${config.listPrependDirective} on FRAGMENT_SPREAD
152069
152093
 
152094
+ enum DedupeMatchMode {
152095
+ ${DedupeMatchMode.Variables}
152096
+ ${DedupeMatchMode.Operation}
152097
+ ${DedupeMatchMode.None}
152098
+ }
152099
+
152070
152100
  """
152071
152101
  @${config.dedupeDirective} is used to prevent an operation from running more than once at the same time.
152072
152102
  If the cancelFirst arg is set to true, the response already in flight will be canceled instead of the second one.
152103
+ If match is set to Operation, then a request will be deduplicated any time there is a request with the same operation.
152104
+ If it's set to Variables then the request will only be deduplicated if the variables match. If match is set to None,
152105
+ then the request will never be deduplicated.
152073
152106
  """
152074
- directive @${config.dedupeDirective}(cancelFirst: Boolean) on QUERY | MUTATION
152107
+ directive @${config.dedupeDirective}(cancelFirst: Boolean, match: DedupeMatchMode) on QUERY | MUTATION
152075
152108
 
152076
152109
  """
152077
152110
  @${config.optimisticKeyDirective} is used to identify a field as an optimistic key
@@ -209923,8 +209956,9 @@ var Config = class {
209923
209956
  localSchema;
209924
209957
  projectRoot;
209925
209958
  schema;
209959
+ runtimeDir;
209926
209960
  schemaPath;
209927
- persistedQueriesPath = "./$houdini/persisted_queries.json";
209961
+ persistedQueriesPath;
209928
209962
  exclude;
209929
209963
  scalars;
209930
209964
  module = "esm";
@@ -209965,6 +209999,7 @@ var Config = class {
209965
209999
  let {
209966
210000
  schema: schema2,
209967
210001
  schemaPath = "./schema.graphql",
210002
+ runtimeDir = "$houdini",
209968
210003
  exclude = [],
209969
210004
  module = "esm",
209970
210005
  scalars,
@@ -210003,6 +210038,7 @@ var Config = class {
210003
210038
  this.projectRoot = dirname3(
210004
210039
  projectDir ? join4(process.cwd(), projectDir) : filepath
210005
210040
  );
210041
+ this.runtimeDir = runtimeDir;
210006
210042
  this.scalars = scalars;
210007
210043
  this.cacheBufferSize = cacheBufferSize;
210008
210044
  this.defaultCachePolicy = defaultCachePolicy;
@@ -210017,11 +210053,9 @@ var Config = class {
210017
210053
  this.schemaPollInterval = watchSchema?.interval === void 0 ? 2e3 : watchSchema.interval;
210018
210054
  this.schemaPollTimeout = watchSchema?.timeout ?? 3e4;
210019
210055
  this.schemaPollHeaders = watchSchema?.headers ?? {};
210020
- this.rootDir = join4(this.projectRoot, "$houdini");
210056
+ this.rootDir = join4(this.projectRoot, this.runtimeDir);
210057
+ this.persistedQueriesPath = persistedQueriesPath ?? join4(this.rootDir, "persisted_queries.json");
210021
210058
  this.#fragmentVariableMaps = {};
210022
- if (persistedQueriesPath) {
210023
- this.persistedQueriesPath = persistedQueriesPath;
210024
- }
210025
210059
  if (defaultKeys) {
210026
210060
  this.defaultKeys = defaultKeys;
210027
210061
  }
@@ -294267,7 +294301,7 @@ function is_root_route(filepath) {
294267
294301
  if (filepath.toString().endsWith("/")) {
294268
294302
  filepath = filepath.slice(0, -1);
294269
294303
  }
294270
- return filepath.endsWith(path_exports.join("src", "routes")) && !filepath.includes(".svelte-kit") && !filepath.includes("$houdini");
294304
+ return filepath.endsWith(path_exports.join("src", "routes")) && !filepath.includes(".svelte-kit") && !filepath.includes(_config.runtimeDir ?? "$houdini");
294271
294305
  }
294272
294306
  var empty_layout = "<slot />";
294273
294307
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "houdini-svelte",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "The svelte plugin for houdini",
5
5
  "keywords": [
6
6
  "typescript",
@@ -25,15 +25,15 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@kitql/helpers": "^0.8.2",
28
- "@sveltejs/kit": "^2.5.3",
28
+ "@sveltejs/kit": "^2.9.0",
29
29
  "ast-types": "^0.16.1",
30
30
  "estree-walker": "^3.0.1",
31
31
  "graphql": "^15.8.0",
32
32
  "recast": "^0.23.1",
33
- "rollup": "^3.7.4",
33
+ "rollup": "^4.28.1",
34
34
  "svelte": "^5.0.0",
35
- "vite": "^5.3.3",
36
- "houdini": "^1.3.0"
35
+ "vite": "^6.0.3",
36
+ "houdini": "^1.4.0"
37
37
  },
38
38
  "files": [
39
39
  "build"