@ember-data/store 4.9.0-beta.3 → 4.9.1
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.
|
@@ -41,6 +41,10 @@ if (macroCondition(getOwnConfig<{ polyfillUUID: boolean }>().polyfillUUID)) {
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
function uuidv4(): string {
|
|
44
|
+
assert(
|
|
45
|
+
'crypto.randomUUID needs to be avaliable. Some browsers incorrectly disallow it in insecure contexts. You maybe want to enable the polyfill: https://github.com/emberjs/data#randomuuid-polyfill',
|
|
46
|
+
_crypto.randomUUID
|
|
47
|
+
);
|
|
44
48
|
return _crypto.randomUUID();
|
|
45
49
|
}
|
|
46
50
|
|
|
@@ -211,7 +211,10 @@ class RecordArrayManager {
|
|
|
211
211
|
// during unloadAll we can ignore removes since we've already
|
|
212
212
|
// cleared the array.
|
|
213
213
|
if (liveArray && liveArray[SOURCE].length === 0 && isRemove) {
|
|
214
|
-
|
|
214
|
+
const pendingLive = allPending.get(liveArray);
|
|
215
|
+
if (!pendingLive || pendingLive.size === 0) {
|
|
216
|
+
return pending;
|
|
217
|
+
}
|
|
215
218
|
}
|
|
216
219
|
|
|
217
220
|
if (!liveArray) {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { getOwner, setOwner } from '@ember/application';
|
|
5
5
|
import { assert, deprecate } from '@ember/debug';
|
|
6
|
-
import { _backburner as emberBackburner
|
|
6
|
+
import { _backburner as emberBackburner } from '@ember/runloop';
|
|
7
7
|
import Service from '@ember/service';
|
|
8
8
|
import { registerWaiter, unregisterWaiter } from '@ember/test';
|
|
9
9
|
import { DEBUG } from '@glimmer/env';
|
|
@@ -642,7 +642,7 @@ class Store extends Service {
|
|
|
642
642
|
recordData.setIsDeleted(identifier, true);
|
|
643
643
|
|
|
644
644
|
if (recordData.isNew(identifier)) {
|
|
645
|
-
|
|
645
|
+
emberBackburner.join(() => {
|
|
646
646
|
this._instanceCache.unloadRecord(identifier);
|
|
647
647
|
});
|
|
648
648
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ember-data/store",
|
|
3
|
-
"version": "4.9.
|
|
3
|
+
"version": "4.9.1",
|
|
4
4
|
"description": "The core of EmberData. Provides the Store service which coordinates the cache with the network and presentation layers.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon"
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
"author": "",
|
|
15
15
|
"directories": {},
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"@ember-data/model": "4.9.
|
|
18
|
-
"@ember-data/record-data": "4.9.
|
|
19
|
-
"@ember-data/tracking": "4.9.
|
|
17
|
+
"@ember-data/model": "4.9.1",
|
|
18
|
+
"@ember-data/record-data": "4.9.1",
|
|
19
|
+
"@ember-data/tracking": "4.9.1",
|
|
20
20
|
"@ember/string": "^3.0.0",
|
|
21
21
|
"@glimmer/tracking": "^1.1.2"
|
|
22
22
|
},
|
|
@@ -37,18 +37,18 @@
|
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@ember-data/canary-features": "4.9.
|
|
41
|
-
"@ember-data/private-build-infra": "4.9.
|
|
42
|
-
"@embroider/macros": "^1.
|
|
40
|
+
"@ember-data/canary-features": "4.9.1",
|
|
41
|
+
"@ember-data/private-build-infra": "4.9.1",
|
|
42
|
+
"@embroider/macros": "^1.10.0",
|
|
43
43
|
"ember-auto-import": "^2.4.3",
|
|
44
44
|
"ember-cached-decorator-polyfill": "^1.0.1",
|
|
45
45
|
"ember-cli-babel": "^7.26.11"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@babel/core": "^7.
|
|
48
|
+
"@babel/core": "^7.20.2",
|
|
49
49
|
"@glimmer/component": "^1.1.2",
|
|
50
|
-
"ember-source": "~4.8.
|
|
51
|
-
"webpack": "^5.
|
|
50
|
+
"ember-source": "~4.8.2",
|
|
51
|
+
"webpack": "^5.75.0"
|
|
52
52
|
},
|
|
53
53
|
"engines": {
|
|
54
54
|
"node": "^14.8.0 || 16.* || >= 18.*"
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"volta": {
|
|
58
58
|
"extends": "../../package.json"
|
|
59
59
|
},
|
|
60
|
-
"packageManager": "pnpm@7.
|
|
60
|
+
"packageManager": "pnpm@7.15.0"
|
|
61
61
|
}
|