@ember-data/store 3.28.6 → 3.28.9
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.
|
@@ -2,7 +2,6 @@ import { getOwner, setOwner } from '@ember/application';
|
|
|
2
2
|
import { assert, deprecate } from '@ember/debug';
|
|
3
3
|
import EmberError from '@ember/error';
|
|
4
4
|
import { get } from '@ember/object';
|
|
5
|
-
import { assign } from '@ember/polyfills';
|
|
6
5
|
import { isPresent } from '@ember/utils';
|
|
7
6
|
import { DEBUG } from '@glimmer/env';
|
|
8
7
|
|
|
@@ -39,9 +38,10 @@ class Store extends CoreStore {
|
|
|
39
38
|
let createOptions: any = {
|
|
40
39
|
store: this,
|
|
41
40
|
_internalModel: internalModel,
|
|
41
|
+
// TODO deprecate allowing unknown args setting
|
|
42
|
+
_createProps: createRecordArgs,
|
|
42
43
|
container: null,
|
|
43
44
|
};
|
|
44
|
-
assign(createOptions, createRecordArgs);
|
|
45
45
|
|
|
46
46
|
// ensure that `getOwner(this)` works inside a model instance
|
|
47
47
|
setOwner(createOptions, getOwner(this));
|
|
@@ -905,11 +905,18 @@ export default class InternalModel {
|
|
|
905
905
|
|
|
906
906
|
notifyHasManyChange(key: string) {
|
|
907
907
|
if (this.hasRecord) {
|
|
908
|
+
let manyArray = this._manyArrayCache[key];
|
|
909
|
+
let hasPromise = !!this._relationshipPromisesCache[key];
|
|
910
|
+
|
|
911
|
+
if (manyArray && hasPromise) {
|
|
912
|
+
// do nothing, we will notify the ManyArray directly
|
|
913
|
+
// once the fetch has completed.
|
|
914
|
+
return;
|
|
915
|
+
}
|
|
916
|
+
|
|
908
917
|
if (CUSTOM_MODEL_CLASS) {
|
|
909
918
|
this.store._notificationManager.notify(this.identifier, 'relationships', key);
|
|
910
919
|
} else {
|
|
911
|
-
let manyArray = this._manyArrayCache[key];
|
|
912
|
-
|
|
913
920
|
if (manyArray) {
|
|
914
921
|
manyArray.notify();
|
|
915
922
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ember-data/store",
|
|
3
|
-
"version": "3.28.
|
|
3
|
+
"version": "3.28.9",
|
|
4
4
|
"description": "The default blueprint for ember-cli addons.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon"
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"start": "ember serve"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@ember-data/canary-features": "3.28.
|
|
21
|
-
"@ember-data/private-build-infra": "3.28.
|
|
20
|
+
"@ember-data/canary-features": "3.28.9",
|
|
21
|
+
"@ember-data/private-build-infra": "3.28.9",
|
|
22
22
|
"@ember/string": "^3.0.0",
|
|
23
23
|
"@glimmer/tracking": "^1.0.4",
|
|
24
24
|
"ember-cli-babel": "^7.26.6",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"ember-cli-typescript": "^4.1.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@ember-data/unpublished-test-infra": "3.28.
|
|
29
|
+
"@ember-data/unpublished-test-infra": "3.28.9",
|
|
30
30
|
"@ember/optional-features": "^2.0.0",
|
|
31
31
|
"@ember/test-helpers": "^2.2.5",
|
|
32
32
|
"@types/ember": "^3.16.5",
|