@ember-data/model 4.11.1 → 4.11.3
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.
|
@@ -5,7 +5,14 @@ import { assert, deprecate } from '@ember/debug';
|
|
|
5
5
|
|
|
6
6
|
import { DEPRECATE_PROMISE_PROXIES } from '@ember-data/private-build-infra/deprecations';
|
|
7
7
|
import type Store from '@ember-data/store';
|
|
8
|
-
import {
|
|
8
|
+
import {
|
|
9
|
+
IDENTIFIER_ARRAY_TAG,
|
|
10
|
+
MUTATE,
|
|
11
|
+
notifyArray,
|
|
12
|
+
RecordArray,
|
|
13
|
+
recordIdentifierFor,
|
|
14
|
+
SOURCE,
|
|
15
|
+
} from '@ember-data/store/-private';
|
|
9
16
|
import type ShimModelClass from '@ember-data/store/-private/legacy-model-support/shim-model-class';
|
|
10
17
|
import { IdentifierArrayCreateOptions } from '@ember-data/store/-private/record-arrays/identifier-array';
|
|
11
18
|
import type { CreateRecordProperties } from '@ember-data/store/-private/store-service';
|
|
@@ -271,8 +278,9 @@ export default class RelatedCollection extends RecordArray {
|
|
|
271
278
|
|
|
272
279
|
notify() {
|
|
273
280
|
const tag = this[IDENTIFIER_ARRAY_TAG];
|
|
274
|
-
tag.ref = null;
|
|
275
281
|
tag.shouldReset = true;
|
|
282
|
+
// @ts-expect-error
|
|
283
|
+
notifyArray(this);
|
|
276
284
|
}
|
|
277
285
|
|
|
278
286
|
/**
|
package/addon/-private/model.js
CHANGED
|
@@ -38,6 +38,7 @@ export function lookupLegacySupport(record) {
|
|
|
38
38
|
let support = LEGACY_SUPPORT.get(identifier);
|
|
39
39
|
|
|
40
40
|
if (!support) {
|
|
41
|
+
assert(`Memory Leak Detected`, !record.isDestroyed && !record.isDestroying);
|
|
41
42
|
support = new LegacySupport(record);
|
|
42
43
|
LEGACY_SUPPORT.set(identifier, support);
|
|
43
44
|
LEGACY_SUPPORT.set(record, support);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ember-data/model",
|
|
3
|
-
"version": "4.11.
|
|
3
|
+
"version": "4.11.3",
|
|
4
4
|
"description": "A presentation layer for apps built with @ember-data/store",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon"
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
"author": "",
|
|
15
15
|
"directories": {},
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"@ember-data/record-data": "4.11.
|
|
18
|
-
"@ember-data/store": "4.11.
|
|
19
|
-
"@ember-data/tracking": "4.11.
|
|
17
|
+
"@ember-data/record-data": "4.11.3",
|
|
18
|
+
"@ember-data/store": "4.11.3",
|
|
19
|
+
"@ember-data/tracking": "4.11.3",
|
|
20
20
|
"@ember/string": "^3.0.1",
|
|
21
21
|
"ember-inflector": "^4.0.2"
|
|
22
22
|
},
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@ember-data/canary-features": "4.11.
|
|
38
|
-
"@ember-data/private-build-infra": "4.11.
|
|
37
|
+
"@ember-data/canary-features": "4.11.3",
|
|
38
|
+
"@ember-data/private-build-infra": "4.11.3",
|
|
39
39
|
"@ember/edition-utils": "^1.2.0",
|
|
40
40
|
"@embroider/macros": "^1.10.0",
|
|
41
41
|
"ember-auto-import": "^2.4.3",
|