houdini 2.0.0-next.34 → 2.0.0-next.35

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
@@ -472,7 +472,7 @@ async function packageJSON(targetPath, frameworkInfo) {
472
472
  }
473
473
  packageJSON2.devDependencies = {
474
474
  ...packageJSON2.devDependencies,
475
- houdini: "^2.0.0-next.34"
475
+ houdini: "^2.0.0-next.35"
476
476
  };
477
477
  if (frameworkInfo.framework === "svelte" || frameworkInfo.framework === "kit") {
478
478
  packageJSON2.devDependencies = {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "houdini",
3
- "version": "2.0.0-next.34",
3
+ "version": "2.0.0-next.35",
4
4
  "description": "The disappearing GraphQL clients",
5
5
  "keywords": [
6
6
  "typescript",
package/build/vite/hmr.js CHANGED
@@ -283,27 +283,20 @@ function document_hmr(ctx) {
283
283
  { $task_id: task_id }
284
284
  );
285
285
  let results;
286
- let taskDocCount = 0;
287
286
  try {
288
287
  results = await run_pipeline(compiler.trigger_hook, {
289
288
  task_id,
290
289
  after: "AfterExtract"
291
290
  });
292
- taskDocCount = ctx.db.get(
293
- `SELECT COUNT(DISTINCT d.id) as count
294
- FROM documents d
295
- JOIN raw_documents rd ON rd.id = d.raw_document
296
- WHERE rd.current_task = ?`,
297
- [task_id]
298
- )?.count ?? 0;
299
291
  } finally {
300
292
  ctx.db.run(
301
293
  `UPDATE raw_documents SET current_task = NULL WHERE current_task = ?`,
302
294
  [task_id]
303
295
  );
304
296
  }
297
+ const changedDocCount = Object.values(results.GenerateDocuments || {}).flat().length;
305
298
  console.log(
306
- `\u{1F3A9} Updated ${taskDocCount} ${taskDocCount === 1 ? "document" : "documents"}`
299
+ `\u{1F3A9} Updated ${changedDocCount} ${changedDocCount === 1 ? "document" : "documents"}`
307
300
  );
308
301
  const updated_modules = [
309
302
  ...Object.values(results.GenerateDocuments || {}).flat(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "houdini",
3
- "version": "2.0.0-next.34",
3
+ "version": "2.0.0-next.35",
4
4
  "description": "The disappearing GraphQL clients",
5
5
  "keywords": [
6
6
  "typescript",