houdini-react 1.2.37 → 1.2.39

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.
@@ -77360,10 +77360,7 @@ var CacheInternal = class {
77360
77360
  });
77361
77361
  } else if (operation.action === "remove" && target instanceof Object && fieldSelection && operation.list) {
77362
77362
  this.cache.list(operation.list, parentID, operation.target === "all").when(operation.when).remove(target, variables, layer);
77363
- } else if (operation.action === "delete" && operation.type) {
77364
- if (typeof target !== "string") {
77365
- throw new Error("Cannot delete a record with a non-string ID");
77366
- }
77363
+ } else if (operation.action === "delete" && operation.type && target) {
77367
77364
  const targetID = this.id(operation.type, target);
77368
77365
  if (!targetID) {
77369
77366
  continue;
@@ -77563,7 +77560,7 @@ var CacheInternal = class {
77563
77560
  };
77564
77561
  }
77565
77562
  id(type, data) {
77566
- const id = typeof data === "string" ? data : this.computeID(type, data);
77563
+ const id = typeof data === "object" ? this.computeID(type, data) : data;
77567
77564
  if (!id) {
77568
77565
  return null;
77569
77566
  }
@@ -77350,10 +77350,7 @@ var CacheInternal = class {
77350
77350
  });
77351
77351
  } else if (operation.action === "remove" && target instanceof Object && fieldSelection && operation.list) {
77352
77352
  this.cache.list(operation.list, parentID, operation.target === "all").when(operation.when).remove(target, variables, layer);
77353
- } else if (operation.action === "delete" && operation.type) {
77354
- if (typeof target !== "string") {
77355
- throw new Error("Cannot delete a record with a non-string ID");
77356
- }
77353
+ } else if (operation.action === "delete" && operation.type && target) {
77357
77354
  const targetID = this.id(operation.type, target);
77358
77355
  if (!targetID) {
77359
77356
  continue;
@@ -77553,7 +77550,7 @@ var CacheInternal = class {
77553
77550
  };
77554
77551
  }
77555
77552
  id(type, data) {
77556
- const id = typeof data === "string" ? data : this.computeID(type, data);
77553
+ const id = typeof data === "object" ? this.computeID(type, data) : data;
77557
77554
  if (!id) {
77558
77555
  return null;
77559
77556
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "houdini-react",
3
- "version": "1.2.37",
3
+ "version": "1.2.39",
4
4
  "description": "The React plugin for houdini",
5
5
  "keywords": [
6
6
  "typescript",
@@ -43,7 +43,7 @@
43
43
  "recast": "^0.23.1",
44
44
  "rollup": "^3.7.4",
45
45
  "use-deep-compare-effect": "^1.8.1",
46
- "houdini": "^1.2.37"
46
+ "houdini": "^1.2.39"
47
47
  },
48
48
  "files": [
49
49
  "build"