ember-data-model-fragments 6.0.4 → 6.0.5

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/CHANGELOG.md CHANGED
@@ -13,6 +13,15 @@
13
13
 
14
14
 
15
15
 
16
+
17
+ ## v6.0.5 (2023-09-30)
18
+
19
+ #### :bug: Bug Fix
20
+ * [#480](https://github.com/adopted-ember-addons/ember-data-model-fragments/pull/480) fix(changedAttributes): initial value of property which are supposed to be null return a value when the record is in flight ([@VincentMolinie](https://github.com/VincentMolinie))
21
+
22
+ #### Committers: 1
23
+ - Vincent Molinié ([@VincentMolinie](https://github.com/VincentMolinie))
24
+
16
25
  ## v6.0.4 (2023-09-01)
17
26
 
18
27
  #### :bug: Bug Fix
@@ -671,10 +671,7 @@ export default class FragmentRecordData extends RecordData {
671
671
  this._fragmentsOrInFlight
672
672
  )) {
673
673
  const behavior = this._fragmentBehavior[key];
674
- const oldFragment =
675
- key in this._inFlightFragments
676
- ? this._inFlightFragments[key]
677
- : this._fragmentData[key];
674
+ const oldFragment = this._fragmentData[key];
678
675
  diffData[key] = [
679
676
  behavior.canonicalState(oldFragment),
680
677
  behavior.currentState(newFragment),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-data-model-fragments",
3
- "version": "6.0.4",
3
+ "version": "6.0.5",
4
4
  "description": "Ember Data addon to support nested JSON documents",
5
5
  "keywords": [
6
6
  "ember-addon",