houdini 1.2.18 → 1.2.20-next.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.
@@ -69068,7 +69068,7 @@ var graphql5 = __toESM(require("graphql"), 1);
69068
69068
 
69069
69069
  // src/lib/router/server.ts
69070
69070
  var import_node_path2 = __toESM(require("node:path"), 1);
69071
- async function loadLocalSchema(config2) {
69071
+ async function buildLocalSchema(config2) {
69072
69072
  const { build } = await import("vite");
69073
69073
  process.env.HOUDINI_SCHEMA_BUILD = "true";
69074
69074
  await build({
@@ -69079,7 +69079,10 @@ async function loadLocalSchema(config2) {
69079
69079
  input: {
69080
69080
  schema: import_node_path2.default.join(config2.localApiDir, "+schema")
69081
69081
  },
69082
- external: ["graphql"]
69082
+ external: ["graphql"],
69083
+ output: {
69084
+ entryFileNames: "assets/[name].js"
69085
+ }
69083
69086
  },
69084
69087
  lib: {
69085
69088
  entry: {
@@ -69090,6 +69093,9 @@ async function loadLocalSchema(config2) {
69090
69093
  }
69091
69094
  });
69092
69095
  process.env.HOUDINI_SCHEMA_BUILD = "false";
69096
+ }
69097
+ async function loadLocalSchema(config2) {
69098
+ await buildLocalSchema(config2);
69093
69099
  const { default: schema } = await import(import_node_path2.default.join(config2.rootDir, "temp", "assets", "schema.js"));
69094
69100
  return schema;
69095
69101
  }
@@ -76155,12 +76161,12 @@ async function packageJSON(targetPath, frameworkInfo) {
76155
76161
  }
76156
76162
  packageJSON2.devDependencies = {
76157
76163
  ...packageJSON2.devDependencies,
76158
- houdini: "^1.2.18"
76164
+ houdini: "^1.2.20-next.0"
76159
76165
  };
76160
76166
  if (frameworkInfo.framework === "svelte" || frameworkInfo.framework === "kit") {
76161
76167
  packageJSON2.devDependencies = {
76162
76168
  ...packageJSON2.devDependencies,
76163
- "houdini-svelte": "^1.2.18"
76169
+ "houdini-svelte": "^1.2.20-next.0"
76164
76170
  };
76165
76171
  } else {
76166
76172
  throw new Error(`Unmanaged framework: "${JSON.stringify(frameworkInfo)}"`);
@@ -69073,7 +69073,7 @@ import * as graphql5 from "graphql";
69073
69073
 
69074
69074
  // src/lib/router/server.ts
69075
69075
  import path2 from "node:path";
69076
- async function loadLocalSchema(config2) {
69076
+ async function buildLocalSchema(config2) {
69077
69077
  const { build } = await import("vite");
69078
69078
  process.env.HOUDINI_SCHEMA_BUILD = "true";
69079
69079
  await build({
@@ -69084,7 +69084,10 @@ async function loadLocalSchema(config2) {
69084
69084
  input: {
69085
69085
  schema: path2.join(config2.localApiDir, "+schema")
69086
69086
  },
69087
- external: ["graphql"]
69087
+ external: ["graphql"],
69088
+ output: {
69089
+ entryFileNames: "assets/[name].js"
69090
+ }
69088
69091
  },
69089
69092
  lib: {
69090
69093
  entry: {
@@ -69095,6 +69098,9 @@ async function loadLocalSchema(config2) {
69095
69098
  }
69096
69099
  });
69097
69100
  process.env.HOUDINI_SCHEMA_BUILD = "false";
69101
+ }
69102
+ async function loadLocalSchema(config2) {
69103
+ await buildLocalSchema(config2);
69098
69104
  const { default: schema } = await import(path2.join(config2.rootDir, "temp", "assets", "schema.js"));
69099
69105
  return schema;
69100
69106
  }
@@ -76160,12 +76166,12 @@ async function packageJSON(targetPath, frameworkInfo) {
76160
76166
  }
76161
76167
  packageJSON2.devDependencies = {
76162
76168
  ...packageJSON2.devDependencies,
76163
- houdini: "^1.2.18"
76169
+ houdini: "^1.2.20-next.0"
76164
76170
  };
76165
76171
  if (frameworkInfo.framework === "svelte" || frameworkInfo.framework === "kit") {
76166
76172
  packageJSON2.devDependencies = {
76167
76173
  ...packageJSON2.devDependencies,
76168
- "houdini-svelte": "^1.2.18"
76174
+ "houdini-svelte": "^1.2.20-next.0"
76169
76175
  };
76170
76176
  } else {
76171
76177
  throw new Error(`Unmanaged framework: "${JSON.stringify(frameworkInfo)}"`);
@@ -1,4 +1,5 @@
1
1
  import type * as graphql from 'graphql';
2
2
  import type { Config } from '../config';
3
3
  export declare function isSecondaryBuild(): boolean;
4
+ export declare function buildLocalSchema(config: Config): Promise<void>;
4
5
  export declare function loadLocalSchema(config: Config): Promise<graphql.GraphQLSchema>;
@@ -58597,6 +58597,7 @@ __export(lib_exports, {
58597
58597
  PendingValue: () => PendingValue,
58598
58598
  RefetchUpdateMode: () => RefetchUpdateMode,
58599
58599
  TypeWrapper: () => TypeWrapper,
58600
+ buildLocalSchema: () => buildLocalSchema,
58600
58601
  cleanupFiles: () => cleanupFiles,
58601
58602
  computeID: () => computeID,
58602
58603
  createPluginHooks: () => createPluginHooks,
@@ -68702,7 +68703,7 @@ var import_node_path2 = __toESM(require("node:path"), 1);
68702
68703
  function isSecondaryBuild() {
68703
68704
  return process.env.HOUDINI_SCHEMA_BUILD === "true";
68704
68705
  }
68705
- async function loadLocalSchema(config2) {
68706
+ async function buildLocalSchema(config2) {
68706
68707
  const { build } = await import("vite");
68707
68708
  process.env.HOUDINI_SCHEMA_BUILD = "true";
68708
68709
  await build({
@@ -68713,7 +68714,10 @@ async function loadLocalSchema(config2) {
68713
68714
  input: {
68714
68715
  schema: import_node_path2.default.join(config2.localApiDir, "+schema")
68715
68716
  },
68716
- external: ["graphql"]
68717
+ external: ["graphql"],
68718
+ output: {
68719
+ entryFileNames: "assets/[name].js"
68720
+ }
68717
68721
  },
68718
68722
  lib: {
68719
68723
  entry: {
@@ -68724,6 +68728,9 @@ async function loadLocalSchema(config2) {
68724
68728
  }
68725
68729
  });
68726
68730
  process.env.HOUDINI_SCHEMA_BUILD = "false";
68731
+ }
68732
+ async function loadLocalSchema(config2) {
68733
+ await buildLocalSchema(config2);
68727
68734
  const { default: schema } = await import(import_node_path2.default.join(config2.rootDir, "temp", "assets", "schema.js"));
68728
68735
  return schema;
68729
68736
  }
@@ -68990,6 +68997,7 @@ async function get_session(req, secrets) {
68990
68997
  PendingValue,
68991
68998
  RefetchUpdateMode,
68992
68999
  TypeWrapper,
69000
+ buildLocalSchema,
68993
69001
  cleanupFiles,
68994
69002
  computeID,
68995
69003
  createPluginHooks,
@@ -68626,7 +68626,7 @@ import path2 from "node:path";
68626
68626
  function isSecondaryBuild() {
68627
68627
  return process.env.HOUDINI_SCHEMA_BUILD === "true";
68628
68628
  }
68629
- async function loadLocalSchema(config2) {
68629
+ async function buildLocalSchema(config2) {
68630
68630
  const { build } = await import("vite");
68631
68631
  process.env.HOUDINI_SCHEMA_BUILD = "true";
68632
68632
  await build({
@@ -68637,7 +68637,10 @@ async function loadLocalSchema(config2) {
68637
68637
  input: {
68638
68638
  schema: path2.join(config2.localApiDir, "+schema")
68639
68639
  },
68640
- external: ["graphql"]
68640
+ external: ["graphql"],
68641
+ output: {
68642
+ entryFileNames: "assets/[name].js"
68643
+ }
68641
68644
  },
68642
68645
  lib: {
68643
68646
  entry: {
@@ -68648,6 +68651,9 @@ async function loadLocalSchema(config2) {
68648
68651
  }
68649
68652
  });
68650
68653
  process.env.HOUDINI_SCHEMA_BUILD = "false";
68654
+ }
68655
+ async function loadLocalSchema(config2) {
68656
+ await buildLocalSchema(config2);
68651
68657
  const { default: schema } = await import(path2.join(config2.rootDir, "temp", "assets", "schema.js"));
68652
68658
  return schema;
68653
68659
  }
@@ -68913,6 +68919,7 @@ export {
68913
68919
  PendingValue,
68914
68920
  RefetchUpdateMode,
68915
68921
  TypeWrapper,
68922
+ buildLocalSchema,
68916
68923
  cleanupFiles,
68917
68924
  computeID,
68918
68925
  createPluginHooks,
@@ -71136,7 +71136,7 @@ var import_node_path2 = __toESM(require("node:path"), 1);
71136
71136
  function isSecondaryBuild() {
71137
71137
  return process.env.HOUDINI_SCHEMA_BUILD === "true";
71138
71138
  }
71139
- async function loadLocalSchema(config4) {
71139
+ async function buildLocalSchema(config4) {
71140
71140
  const { build } = await import("vite");
71141
71141
  process.env.HOUDINI_SCHEMA_BUILD = "true";
71142
71142
  await build({
@@ -71147,7 +71147,10 @@ async function loadLocalSchema(config4) {
71147
71147
  input: {
71148
71148
  schema: import_node_path2.default.join(config4.localApiDir, "+schema")
71149
71149
  },
71150
- external: ["graphql"]
71150
+ external: ["graphql"],
71151
+ output: {
71152
+ entryFileNames: "assets/[name].js"
71153
+ }
71151
71154
  },
71152
71155
  lib: {
71153
71156
  entry: {
@@ -71158,6 +71161,9 @@ async function loadLocalSchema(config4) {
71158
71161
  }
71159
71162
  });
71160
71163
  process.env.HOUDINI_SCHEMA_BUILD = "false";
71164
+ }
71165
+ async function loadLocalSchema(config4) {
71166
+ await buildLocalSchema(config4);
71161
71167
  const { default: schema } = await import(import_node_path2.default.join(config4.rootDir, "temp", "assets", "schema.js"));
71162
71168
  return schema;
71163
71169
  }
@@ -77305,10 +77311,20 @@ function Plugin(opts = {}) {
77305
77311
  );
77306
77312
  },
77307
77313
  async configureServer(server) {
77314
+ for (const plugin2 of config3.plugins) {
77315
+ if (typeof plugin2.vite?.configureServer !== "function") {
77316
+ continue;
77317
+ }
77318
+ await plugin2.vite.configureServer.call(this, {
77319
+ ...server,
77320
+ houdiniConfig: config3
77321
+ });
77322
+ }
77308
77323
  if (config3.localSchema) {
77309
- const { default: schema } = await server.ssrLoadModule(
77310
- path_exports.join(config3.localApiDir, "+schema")
77311
- );
77324
+ await buildLocalSchema(config3);
77325
+ const { default: schema } = (await server.ssrLoadModule(
77326
+ path_exports.join(config3.rootDir, "temp", "assets", "schema.js")
77327
+ ), {});
77312
77328
  config3.schema = schema;
77313
77329
  }
77314
77330
  process.env.HOUDINI_PORT = String(server.config.server.port ?? 5173);
@@ -77318,15 +77334,6 @@ function Plugin(opts = {}) {
77318
77334
  formatErrors(e2);
77319
77335
  throw e2;
77320
77336
  }
77321
- for (const plugin2 of config3.plugins) {
77322
- if (typeof plugin2.vite?.configureServer !== "function") {
77323
- continue;
77324
- }
77325
- await plugin2.vite.configureServer.call(this, {
77326
- ...server,
77327
- houdiniConfig: config3
77328
- });
77329
- }
77330
77337
  },
77331
77338
  async transform(code, filepath) {
77332
77339
  filepath = path_exports.posixify(filepath);
@@ -71131,7 +71131,7 @@ import path2 from "node:path";
71131
71131
  function isSecondaryBuild() {
71132
71132
  return process.env.HOUDINI_SCHEMA_BUILD === "true";
71133
71133
  }
71134
- async function loadLocalSchema(config4) {
71134
+ async function buildLocalSchema(config4) {
71135
71135
  const { build } = await import("vite");
71136
71136
  process.env.HOUDINI_SCHEMA_BUILD = "true";
71137
71137
  await build({
@@ -71142,7 +71142,10 @@ async function loadLocalSchema(config4) {
71142
71142
  input: {
71143
71143
  schema: path2.join(config4.localApiDir, "+schema")
71144
71144
  },
71145
- external: ["graphql"]
71145
+ external: ["graphql"],
71146
+ output: {
71147
+ entryFileNames: "assets/[name].js"
71148
+ }
71146
71149
  },
71147
71150
  lib: {
71148
71151
  entry: {
@@ -71153,6 +71156,9 @@ async function loadLocalSchema(config4) {
71153
71156
  }
71154
71157
  });
71155
71158
  process.env.HOUDINI_SCHEMA_BUILD = "false";
71159
+ }
71160
+ async function loadLocalSchema(config4) {
71161
+ await buildLocalSchema(config4);
71156
71162
  const { default: schema } = await import(path2.join(config4.rootDir, "temp", "assets", "schema.js"));
71157
71163
  return schema;
71158
71164
  }
@@ -77300,10 +77306,20 @@ function Plugin(opts = {}) {
77300
77306
  );
77301
77307
  },
77302
77308
  async configureServer(server) {
77309
+ for (const plugin2 of config3.plugins) {
77310
+ if (typeof plugin2.vite?.configureServer !== "function") {
77311
+ continue;
77312
+ }
77313
+ await plugin2.vite.configureServer.call(this, {
77314
+ ...server,
77315
+ houdiniConfig: config3
77316
+ });
77317
+ }
77303
77318
  if (config3.localSchema) {
77304
- const { default: schema } = await server.ssrLoadModule(
77305
- path_exports.join(config3.localApiDir, "+schema")
77306
- );
77319
+ await buildLocalSchema(config3);
77320
+ const { default: schema } = (await server.ssrLoadModule(
77321
+ path_exports.join(config3.rootDir, "temp", "assets", "schema.js")
77322
+ ), {});
77307
77323
  config3.schema = schema;
77308
77324
  }
77309
77325
  process.env.HOUDINI_PORT = String(server.config.server.port ?? 5173);
@@ -77313,15 +77329,6 @@ function Plugin(opts = {}) {
77313
77329
  formatErrors(e2);
77314
77330
  throw e2;
77315
77331
  }
77316
- for (const plugin2 of config3.plugins) {
77317
- if (typeof plugin2.vite?.configureServer !== "function") {
77318
- continue;
77319
- }
77320
- await plugin2.vite.configureServer.call(this, {
77321
- ...server,
77322
- houdiniConfig: config3
77323
- });
77324
- }
77325
77332
  },
77326
77333
  async transform(code, filepath) {
77327
77334
  filepath = path_exports.posixify(filepath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "houdini",
3
- "version": "1.2.18",
3
+ "version": "1.2.20-next.0",
4
4
  "description": "The disappearing GraphQL clients",
5
5
  "keywords": [
6
6
  "typescript",