@warp-drive-mirror/json-api 5.8.0-alpha.10 → 5.8.0-alpha.11
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/dist/index.js +2 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -3092,12 +3092,13 @@ function didCommit(cache, committedIdentifier, data, op) {
|
|
|
3092
3092
|
const existingId = committedIdentifier.id;
|
|
3093
3093
|
const identifier = op !== 'deleteRecord' && data ? cacheKeyManager.updateRecordIdentifier(committedIdentifier, data) : committedIdentifier;
|
|
3094
3094
|
const cached = cache.__peek(identifier, false);
|
|
3095
|
-
if (cached.isDeleted) {
|
|
3095
|
+
if (cached.isDeleted || op === 'deleteRecord') {
|
|
3096
3096
|
cache.__graph.push({
|
|
3097
3097
|
op: 'deleteRecord',
|
|
3098
3098
|
record: identifier,
|
|
3099
3099
|
isNew: false
|
|
3100
3100
|
});
|
|
3101
|
+
cached.isDeleted = true;
|
|
3101
3102
|
cached.isDeletionCommitted = true;
|
|
3102
3103
|
cache._capabilities.notifyChange(identifier, 'removed', null);
|
|
3103
3104
|
// TODO @runspired should we early exit here?
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@warp-drive-mirror/json-api",
|
|
3
|
-
"version": "5.8.0-alpha.
|
|
3
|
+
"version": "5.8.0-alpha.11",
|
|
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.
|
|
35
|
+
"@warp-drive-mirror/core": "5.8.0-alpha.11"
|
|
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.
|
|
48
|
-
"@warp-drive-mirror/core": "5.8.0-alpha.
|
|
47
|
+
"@warp-drive/internal-config": "5.8.0-alpha.11",
|
|
48
|
+
"@warp-drive-mirror/core": "5.8.0-alpha.11",
|
|
49
49
|
"decorator-transforms": "^2.3.0",
|
|
50
50
|
"expect-type": "^1.2.2",
|
|
51
51
|
"typescript": "^5.9.2",
|