@ember-data/model 4.11.0 → 4.11.2

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 { IDENTIFIER_ARRAY_TAG, MUTATE, RecordArray, recordIdentifierFor, SOURCE } from '@ember-data/store/-private';
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
  /**
@@ -42,6 +42,9 @@ class Tag {
42
42
  this.rev = 1;
43
43
  this.isDirty = true;
44
44
  this.value = undefined;
45
+ /*
46
+ * whether this was part of a transaction when mutated
47
+ */
45
48
  this.t = false;
46
49
  }
47
50
  @tracked ref = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ember-data/model",
3
- "version": "4.11.0",
3
+ "version": "4.11.2",
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.0",
18
- "@ember-data/store": "4.11.0",
19
- "@ember-data/tracking": "4.11.0",
17
+ "@ember-data/record-data": "4.11.2",
18
+ "@ember-data/store": "4.11.2",
19
+ "@ember-data/tracking": "4.11.2",
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.0",
38
- "@ember-data/private-build-infra": "4.11.0",
37
+ "@ember-data/canary-features": "4.11.2",
38
+ "@ember-data/private-build-infra": "4.11.2",
39
39
  "@ember/edition-utils": "^1.2.0",
40
40
  "@embroider/macros": "^1.10.0",
41
41
  "ember-auto-import": "^2.4.3",