react-native-onyx 2.0.78 → 2.0.80

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.
Files changed (2) hide show
  1. package/dist/Onyx.js +3 -1
  2. package/package.json +5 -1
package/dist/Onyx.js CHANGED
@@ -494,7 +494,9 @@ function updateSnapshots(data) {
494
494
  if (!snapshotData || !snapshotData[key]) {
495
495
  return;
496
496
  }
497
- updatedData = Object.assign(Object.assign({}, updatedData), { [key]: (0, pick_1.default)(value, Object.keys(snapshotData[key])) });
497
+ const oldValue = updatedData[key] || {};
498
+ const newValue = (0, pick_1.default)(value, Object.keys(snapshotData[key]));
499
+ updatedData = Object.assign(Object.assign({}, updatedData), { [key]: Object.assign(oldValue, newValue) });
498
500
  });
499
501
  // Skip the update if there's no data to be merged
500
502
  if (utils_1.default.isEmptyObject(updatedData)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-onyx",
3
- "version": "2.0.78",
3
+ "version": "2.0.80",
4
4
  "author": "Expensify, Inc.",
5
5
  "homepage": "https://expensify.com",
6
6
  "description": "State management for React Native",
@@ -41,6 +41,10 @@
41
41
  "dependencies": {
42
42
  "ascii-table": "0.0.9",
43
43
  "fast-equals": "^4.0.3",
44
+ "lodash.bindall": "^4.4.0",
45
+ "lodash.clone": "^4.5.0",
46
+ "lodash.pick": "^4.4.0",
47
+ "lodash.transform": "^4.6.0",
44
48
  "underscore": "^1.13.6"
45
49
  },
46
50
  "devDependencies": {