@warp-drive-mirror/json-api 5.8.0-alpha.22 → 5.8.0-alpha.24

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -4
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -1300,7 +1300,7 @@ class JSONAPICache {
1300
1300
  id,
1301
1301
  lid
1302
1302
  } = identifier;
1303
- const attributes = Object.assign({}, peeked.remoteAttrs, peeked.inflightAttrs, peeked.localAttrs);
1303
+ const attributes = structuredClone(Object.assign({}, peeked.remoteAttrs, peeked.inflightAttrs, peeked.localAttrs));
1304
1304
  const relationships = {};
1305
1305
  const rels = this.__graph.identifiers.get(identifier);
1306
1306
  if (rels) {
@@ -1309,7 +1309,7 @@ class JSONAPICache {
1309
1309
  if (rel.definition.isImplicit) {
1310
1310
  return;
1311
1311
  } else {
1312
- relationships[key] = this.__graph.getData(identifier, key);
1312
+ relationships[key] = structuredClone(this.__graph.getData(identifier, key));
1313
1313
  }
1314
1314
  });
1315
1315
  }
@@ -1358,7 +1358,7 @@ class JSONAPICache {
1358
1358
  id,
1359
1359
  lid
1360
1360
  } = identifier;
1361
- const attributes = Object.assign({}, peeked.remoteAttrs);
1361
+ const attributes = structuredClone(peeked.remoteAttrs);
1362
1362
  const relationships = {};
1363
1363
  const rels = this.__graph.identifiers.get(identifier);
1364
1364
  if (rels) {
@@ -1367,7 +1367,7 @@ class JSONAPICache {
1367
1367
  if (rel.definition.isImplicit) {
1368
1368
  return;
1369
1369
  } else {
1370
- relationships[key] = this.__graph.getData(identifier, key);
1370
+ relationships[key] = structuredClone(this.__graph.getData(identifier, key));
1371
1371
  }
1372
1372
  });
1373
1373
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@warp-drive-mirror/json-api",
3
- "version": "5.8.0-alpha.22",
3
+ "version": "5.8.0-alpha.24",
4
4
  "description": "A {json:api} Cache Implementation for WarpDrive",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -32,7 +32,7 @@
32
32
  }
33
33
  },
34
34
  "peerDependencies": {
35
- "@warp-drive-mirror/core": "5.8.0-alpha.22"
35
+ "@warp-drive-mirror/core": "5.8.0-alpha.24"
36
36
  },
37
37
  "dependencies": {
38
38
  "@embroider/macros": "^1.18.1",
@@ -44,8 +44,8 @@
44
44
  "@babel/plugin-transform-typescript": "^7.28.0",
45
45
  "@babel/preset-typescript": "^7.27.1",
46
46
  "@types/json-to-ast": "^2.1.4",
47
- "@warp-drive/internal-config": "5.8.0-alpha.22",
48
- "@warp-drive-mirror/core": "5.8.0-alpha.22",
47
+ "@warp-drive/internal-config": "5.8.0-alpha.24",
48
+ "@warp-drive-mirror/core": "5.8.0-alpha.24",
49
49
  "decorator-transforms": "^2.3.0",
50
50
  "expect-type": "^1.2.2",
51
51
  "typescript": "^5.9.2",