houdini 1.2.19 → 1.2.20-next.1

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,9 +69068,10 @@ 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
+ console.log(import_node_path2.default.join(config2.localApiDir, "+schema"));
69074
69075
  await build({
69075
69076
  logLevel: "silent",
69076
69077
  build: {
@@ -69079,7 +69080,10 @@ async function loadLocalSchema(config2) {
69079
69080
  input: {
69080
69081
  schema: import_node_path2.default.join(config2.localApiDir, "+schema")
69081
69082
  },
69082
- external: ["graphql"]
69083
+ external: ["graphql"],
69084
+ output: {
69085
+ entryFileNames: "assets/[name].js"
69086
+ }
69083
69087
  },
69084
69088
  lib: {
69085
69089
  entry: {
@@ -69090,6 +69094,9 @@ async function loadLocalSchema(config2) {
69090
69094
  }
69091
69095
  });
69092
69096
  process.env.HOUDINI_SCHEMA_BUILD = "false";
69097
+ }
69098
+ async function loadLocalSchema(config2) {
69099
+ await buildLocalSchema(config2);
69093
69100
  const { default: schema } = await import(import_node_path2.default.join(config2.rootDir, "temp", "assets", "schema.js"));
69094
69101
  return schema;
69095
69102
  }
@@ -76155,12 +76162,12 @@ async function packageJSON(targetPath, frameworkInfo) {
76155
76162
  }
76156
76163
  packageJSON2.devDependencies = {
76157
76164
  ...packageJSON2.devDependencies,
76158
- houdini: "^1.2.19"
76165
+ houdini: "^1.2.20-next.1"
76159
76166
  };
76160
76167
  if (frameworkInfo.framework === "svelte" || frameworkInfo.framework === "kit") {
76161
76168
  packageJSON2.devDependencies = {
76162
76169
  ...packageJSON2.devDependencies,
76163
- "houdini-svelte": "^1.2.19"
76170
+ "houdini-svelte": "^1.2.20-next.1"
76164
76171
  };
76165
76172
  } else {
76166
76173
  throw new Error(`Unmanaged framework: "${JSON.stringify(frameworkInfo)}"`);
@@ -69073,9 +69073,10 @@ 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
+ console.log(path2.join(config2.localApiDir, "+schema"));
69079
69080
  await build({
69080
69081
  logLevel: "silent",
69081
69082
  build: {
@@ -69084,7 +69085,10 @@ async function loadLocalSchema(config2) {
69084
69085
  input: {
69085
69086
  schema: path2.join(config2.localApiDir, "+schema")
69086
69087
  },
69087
- external: ["graphql"]
69088
+ external: ["graphql"],
69089
+ output: {
69090
+ entryFileNames: "assets/[name].js"
69091
+ }
69088
69092
  },
69089
69093
  lib: {
69090
69094
  entry: {
@@ -69095,6 +69099,9 @@ async function loadLocalSchema(config2) {
69095
69099
  }
69096
69100
  });
69097
69101
  process.env.HOUDINI_SCHEMA_BUILD = "false";
69102
+ }
69103
+ async function loadLocalSchema(config2) {
69104
+ await buildLocalSchema(config2);
69098
69105
  const { default: schema } = await import(path2.join(config2.rootDir, "temp", "assets", "schema.js"));
69099
69106
  return schema;
69100
69107
  }
@@ -76160,12 +76167,12 @@ async function packageJSON(targetPath, frameworkInfo) {
76160
76167
  }
76161
76168
  packageJSON2.devDependencies = {
76162
76169
  ...packageJSON2.devDependencies,
76163
- houdini: "^1.2.19"
76170
+ houdini: "^1.2.20-next.1"
76164
76171
  };
76165
76172
  if (frameworkInfo.framework === "svelte" || frameworkInfo.framework === "kit") {
76166
76173
  packageJSON2.devDependencies = {
76167
76174
  ...packageJSON2.devDependencies,
76168
- "houdini-svelte": "^1.2.19"
76175
+ "houdini-svelte": "^1.2.20-next.1"
76169
76176
  };
76170
76177
  } else {
76171
76178
  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,9 +68703,10 @@ 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";
68709
+ console.log(import_node_path2.default.join(config2.localApiDir, "+schema"));
68708
68710
  await build({
68709
68711
  logLevel: "silent",
68710
68712
  build: {
@@ -68713,7 +68715,10 @@ async function loadLocalSchema(config2) {
68713
68715
  input: {
68714
68716
  schema: import_node_path2.default.join(config2.localApiDir, "+schema")
68715
68717
  },
68716
- external: ["graphql"]
68718
+ external: ["graphql"],
68719
+ output: {
68720
+ entryFileNames: "assets/[name].js"
68721
+ }
68717
68722
  },
68718
68723
  lib: {
68719
68724
  entry: {
@@ -68724,6 +68729,9 @@ async function loadLocalSchema(config2) {
68724
68729
  }
68725
68730
  });
68726
68731
  process.env.HOUDINI_SCHEMA_BUILD = "false";
68732
+ }
68733
+ async function loadLocalSchema(config2) {
68734
+ await buildLocalSchema(config2);
68727
68735
  const { default: schema } = await import(import_node_path2.default.join(config2.rootDir, "temp", "assets", "schema.js"));
68728
68736
  return schema;
68729
68737
  }
@@ -68990,6 +68998,7 @@ async function get_session(req, secrets) {
68990
68998
  PendingValue,
68991
68999
  RefetchUpdateMode,
68992
69000
  TypeWrapper,
69001
+ buildLocalSchema,
68993
69002
  cleanupFiles,
68994
69003
  computeID,
68995
69004
  createPluginHooks,
@@ -68626,9 +68626,10 @@ 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
+ console.log(path2.join(config2.localApiDir, "+schema"));
68632
68633
  await build({
68633
68634
  logLevel: "silent",
68634
68635
  build: {
@@ -68637,7 +68638,10 @@ async function loadLocalSchema(config2) {
68637
68638
  input: {
68638
68639
  schema: path2.join(config2.localApiDir, "+schema")
68639
68640
  },
68640
- external: ["graphql"]
68641
+ external: ["graphql"],
68642
+ output: {
68643
+ entryFileNames: "assets/[name].js"
68644
+ }
68641
68645
  },
68642
68646
  lib: {
68643
68647
  entry: {
@@ -68648,6 +68652,9 @@ async function loadLocalSchema(config2) {
68648
68652
  }
68649
68653
  });
68650
68654
  process.env.HOUDINI_SCHEMA_BUILD = "false";
68655
+ }
68656
+ async function loadLocalSchema(config2) {
68657
+ await buildLocalSchema(config2);
68651
68658
  const { default: schema } = await import(path2.join(config2.rootDir, "temp", "assets", "schema.js"));
68652
68659
  return schema;
68653
68660
  }
@@ -68913,6 +68920,7 @@ export {
68913
68920
  PendingValue,
68914
68921
  RefetchUpdateMode,
68915
68922
  TypeWrapper,
68923
+ buildLocalSchema,
68916
68924
  cleanupFiles,
68917
68925
  computeID,
68918
68926
  createPluginHooks,
@@ -71136,9 +71136,10 @@ 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
+ console.log(import_node_path2.default.join(config4.localApiDir, "+schema"));
71142
71143
  await build({
71143
71144
  logLevel: "silent",
71144
71145
  build: {
@@ -71147,7 +71148,10 @@ async function loadLocalSchema(config4) {
71147
71148
  input: {
71148
71149
  schema: import_node_path2.default.join(config4.localApiDir, "+schema")
71149
71150
  },
71150
- external: ["graphql"]
71151
+ external: ["graphql"],
71152
+ output: {
71153
+ entryFileNames: "assets/[name].js"
71154
+ }
71151
71155
  },
71152
71156
  lib: {
71153
71157
  entry: {
@@ -71158,6 +71162,9 @@ async function loadLocalSchema(config4) {
71158
71162
  }
71159
71163
  });
71160
71164
  process.env.HOUDINI_SCHEMA_BUILD = "false";
71165
+ }
71166
+ async function loadLocalSchema(config4) {
71167
+ await buildLocalSchema(config4);
71161
71168
  const { default: schema } = await import(import_node_path2.default.join(config4.rootDir, "temp", "assets", "schema.js"));
71162
71169
  return schema;
71163
71170
  }
@@ -77305,19 +77312,6 @@ function Plugin(opts = {}) {
77305
77312
  );
77306
77313
  },
77307
77314
  async configureServer(server) {
77308
- if (config3.localSchema) {
77309
- const { default: schema } = await server.ssrLoadModule(
77310
- path_exports.join(config3.localApiDir, "+schema")
77311
- );
77312
- config3.schema = schema;
77313
- }
77314
- process.env.HOUDINI_PORT = String(server.config.server.port ?? 5173);
77315
- try {
77316
- await compile(config3);
77317
- } catch (e2) {
77318
- formatErrors(e2);
77319
- throw e2;
77320
- }
77321
77315
  for (const plugin2 of config3.plugins) {
77322
77316
  if (typeof plugin2.vite?.configureServer !== "function") {
77323
77317
  continue;
@@ -77327,6 +77321,16 @@ function Plugin(opts = {}) {
77327
77321
  houdiniConfig: config3
77328
77322
  });
77329
77323
  }
77324
+ if (config3.localSchema) {
77325
+ config3.schema = await loadLocalSchema(config3);
77326
+ }
77327
+ process.env.HOUDINI_PORT = String(server.config.server.port ?? 5173);
77328
+ try {
77329
+ await compile(config3);
77330
+ } catch (e2) {
77331
+ formatErrors(e2);
77332
+ throw e2;
77333
+ }
77330
77334
  },
77331
77335
  async transform(code, filepath) {
77332
77336
  filepath = path_exports.posixify(filepath);
@@ -71131,9 +71131,10 @@ 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
+ console.log(path2.join(config4.localApiDir, "+schema"));
71137
71138
  await build({
71138
71139
  logLevel: "silent",
71139
71140
  build: {
@@ -71142,7 +71143,10 @@ async function loadLocalSchema(config4) {
71142
71143
  input: {
71143
71144
  schema: path2.join(config4.localApiDir, "+schema")
71144
71145
  },
71145
- external: ["graphql"]
71146
+ external: ["graphql"],
71147
+ output: {
71148
+ entryFileNames: "assets/[name].js"
71149
+ }
71146
71150
  },
71147
71151
  lib: {
71148
71152
  entry: {
@@ -71153,6 +71157,9 @@ async function loadLocalSchema(config4) {
71153
71157
  }
71154
71158
  });
71155
71159
  process.env.HOUDINI_SCHEMA_BUILD = "false";
71160
+ }
71161
+ async function loadLocalSchema(config4) {
71162
+ await buildLocalSchema(config4);
71156
71163
  const { default: schema } = await import(path2.join(config4.rootDir, "temp", "assets", "schema.js"));
71157
71164
  return schema;
71158
71165
  }
@@ -77300,19 +77307,6 @@ function Plugin(opts = {}) {
77300
77307
  );
77301
77308
  },
77302
77309
  async configureServer(server) {
77303
- if (config3.localSchema) {
77304
- const { default: schema } = await server.ssrLoadModule(
77305
- path_exports.join(config3.localApiDir, "+schema")
77306
- );
77307
- config3.schema = schema;
77308
- }
77309
- process.env.HOUDINI_PORT = String(server.config.server.port ?? 5173);
77310
- try {
77311
- await compile(config3);
77312
- } catch (e2) {
77313
- formatErrors(e2);
77314
- throw e2;
77315
- }
77316
77310
  for (const plugin2 of config3.plugins) {
77317
77311
  if (typeof plugin2.vite?.configureServer !== "function") {
77318
77312
  continue;
@@ -77322,6 +77316,16 @@ function Plugin(opts = {}) {
77322
77316
  houdiniConfig: config3
77323
77317
  });
77324
77318
  }
77319
+ if (config3.localSchema) {
77320
+ config3.schema = await loadLocalSchema(config3);
77321
+ }
77322
+ process.env.HOUDINI_PORT = String(server.config.server.port ?? 5173);
77323
+ try {
77324
+ await compile(config3);
77325
+ } catch (e2) {
77326
+ formatErrors(e2);
77327
+ throw e2;
77328
+ }
77325
77329
  },
77326
77330
  async transform(code, filepath) {
77327
77331
  filepath = path_exports.posixify(filepath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "houdini",
3
- "version": "1.2.19",
3
+ "version": "1.2.20-next.1",
4
4
  "description": "The disappearing GraphQL clients",
5
5
  "keywords": [
6
6
  "typescript",