houdini 2.0.0-next.40 → 2.0.0-next.41

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.40"
475
+ houdini: "^2.0.0-next.41"
476
476
  };
477
477
  if (frameworkInfo.framework === "svelte" || frameworkInfo.framework === "kit") {
478
478
  packageJSON2.devDependencies = {
@@ -293,9 +293,7 @@ async function codegen_setup(config, mode, db, db_file) {
293
293
  }
294
294
  logger.time(`Spawn ${plugin.name}`);
295
295
  const child = spawn(executable, args, {
296
- // [stdin, stdout, stderr]: stdio plugins need piped stdin/stdout for the
297
- // message protocol; stderr is always inherited so plugin logs reach the terminal.
298
- stdio: pluginUsesStdio ? ["pipe", "pipe", "inherit"] : ["inherit", "inherit", "inherit"],
296
+ stdio: ["pipe", "pipe", "inherit"],
299
297
  detached: process.platform !== "win32"
300
298
  });
301
299
  if (pluginUsesStdio) {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "houdini",
3
- "version": "2.0.0-next.40",
3
+ "version": "2.0.0-next.41",
4
4
  "description": "The disappearing GraphQL clients",
5
5
  "keywords": [
6
6
  "typescript",
@@ -587,9 +587,10 @@ class CacheInternal {
587
587
  let parentID;
588
588
  if (operation.parentID) {
589
589
  if (operation.parentID.kind !== "Variable") {
590
- parentID = operation.parentID.value;
590
+ parentID = "value" in operation.parentID ? String(operation.parentID.value) : void 0;
591
591
  } else {
592
- const id = variables[operation.parentID.value];
592
+ const varName = operation.parentID.name.value;
593
+ const id = variables[varName];
593
594
  if (typeof id !== "string") {
594
595
  throw new Error("parentID value must be a string");
595
596
  }
@@ -599,9 +600,10 @@ class CacheInternal {
599
600
  let opaqueListID2;
600
601
  if (operation.listID) {
601
602
  if (operation.listID.kind !== "Variable") {
602
- opaqueListID2 = operation.listID.value;
603
+ opaqueListID2 = "value" in operation.listID ? String(operation.listID.value) : void 0;
603
604
  } else {
604
- const id = variables[operation.listID.value];
605
+ const varName = operation.listID.name.value;
606
+ const id = variables[varName];
605
607
  if (typeof id !== "string") {
606
608
  throw new Error("listID value must be a string");
607
609
  }
@@ -146,14 +146,8 @@ export type MutationOperation = {
146
146
  action: 'insert' | 'remove' | 'delete' | 'toggle' | 'upsert';
147
147
  list?: string;
148
148
  type?: string;
149
- parentID?: {
150
- kind: string;
151
- value: string;
152
- };
153
- listID?: {
154
- kind: string;
155
- value: string;
156
- };
149
+ parentID?: ValueNode;
150
+ listID?: ValueNode;
157
151
  position?: 'first' | 'last';
158
152
  target?: 'all';
159
153
  when?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "houdini",
3
- "version": "2.0.0-next.40",
3
+ "version": "2.0.0-next.41",
4
4
  "description": "The disappearing GraphQL clients",
5
5
  "keywords": [
6
6
  "typescript",
@@ -50,7 +50,7 @@
50
50
  "recast": "^0.23.11",
51
51
  "sql.js": "^1.14.1",
52
52
  "ws": "^8.21.0",
53
- "houdini-core": "^2.0.0-next.27"
53
+ "houdini-core": "^2.0.0-next.28"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "graphql": ">=16",