houdini 2.0.0-next.25 → 2.0.0-next.26

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.
package/build/cmd/init.js CHANGED
@@ -181,6 +181,7 @@ async function init(_path, args) {
181
181
  }
182
182
  await gitIgnore({
183
183
  targetPath,
184
+ runtimeDir,
184
185
  schemaPath: is_remote_endpoint ? schemaPath : void 0
185
186
  });
186
187
  await graphqlRC(targetPath, runtimeDir);
@@ -328,12 +329,15 @@ export default config;
328
329
  `;
329
330
  await fs.writeFile(svelteConfigPath, typescript ? newContentTs : newContentJs);
330
331
  }
331
- async function gitIgnore({ targetPath, schemaPath }) {
332
+ async function gitIgnore({ targetPath, runtimeDir, schemaPath }) {
332
333
  const filepath = path.join(targetPath, ".gitignore");
333
334
  const existing = await fs.readFile(filepath) || "";
334
335
  let newIgnores = "";
335
- if (!existing.includes("\n.houdini\n")) {
336
- newIgnores += ".houdini\n";
336
+ if (!existing.includes(`
337
+ ${runtimeDir}
338
+ `)) {
339
+ newIgnores += `${runtimeDir}
340
+ `;
337
341
  }
338
342
  if (schemaPath && !existing.includes(`
339
343
  ${schemaPath}
@@ -437,12 +441,12 @@ async function packageJSON(targetPath, frameworkInfo) {
437
441
  }
438
442
  packageJSON2.devDependencies = {
439
443
  ...packageJSON2.devDependencies,
440
- houdini: "^2.0.0-next.25"
444
+ houdini: "^2.0.0-next.26"
441
445
  };
442
446
  if (frameworkInfo.framework === "svelte" || frameworkInfo.framework === "kit") {
443
447
  packageJSON2.devDependencies = {
444
448
  ...packageJSON2.devDependencies,
445
- "houdini-svelte": "^3.0.0-next.26"
449
+ "houdini-svelte": "^3.0.0-next.27"
446
450
  };
447
451
  } else {
448
452
  throw new Error(`Unmanaged framework: "${JSON.stringify(frameworkInfo)}"`);
@@ -6,7 +6,7 @@ const LEVEL_ORDER = {
6
6
  full: 3
7
7
  };
8
8
  class Logger {
9
- constructor(level = LogLevel.Summary) {
9
+ constructor(level = LogLevel.ShortSummary) {
10
10
  this.level = level;
11
11
  this.order = LEVEL_ORDER[level] ?? 1;
12
12
  }
@@ -4,7 +4,7 @@ import type { Config } from './config.js';
4
4
  export declare const LogLevel: {
5
5
  readonly Quiet: "quiet";
6
6
  readonly Summary: "summary";
7
- readonly PluginDetail: "short-summary";
7
+ readonly ShortSummary: "short-summary";
8
8
  readonly Verbose: "full";
9
9
  };
10
10
  export type LogLevel = (typeof LogLevel)[keyof typeof LogLevel];
@@ -1,7 +1,7 @@
1
1
  const LogLevel = {
2
2
  Quiet: "quiet",
3
3
  Summary: "summary",
4
- PluginDetail: "short-summary",
4
+ ShortSummary: "short-summary",
5
5
  Verbose: "full"
6
6
  };
7
7
  const PaginateMode = {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "houdini",
3
- "version": "2.0.0-next.25",
3
+ "version": "2.0.0-next.26",
4
4
  "description": "The disappearing GraphQL clients",
5
5
  "keywords": [
6
6
  "typescript",
package/build/vite/hmr.js CHANGED
@@ -12,11 +12,13 @@ function document_hmr(ctx) {
12
12
  compiler.close();
13
13
  });
14
14
  try {
15
- const results = await compiler.run_pipeline({
15
+ await compiler.run_pipeline({
16
16
  after: "Schema"
17
17
  });
18
- const docCount = Object.values(results.GenerateDocuments ?? {}).flat().length;
19
- console.log(`\u{1F3A9} Generated ${docCount} ${docCount === 1 ? "document" : "documents"}`);
18
+ const docCount = ctx.db.prepare("SELECT COUNT(*) as count FROM documents WHERE visible = 1").get();
19
+ console.log(
20
+ `\u{1F3A9} Generated ${docCount.count} ${docCount.count === 1 ? "document" : "documents"}`
21
+ );
20
22
  } catch {
21
23
  }
22
24
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "houdini",
3
- "version": "2.0.0-next.25",
3
+ "version": "2.0.0-next.26",
4
4
  "description": "The disappearing GraphQL clients",
5
5
  "keywords": [
6
6
  "typescript",