react-native-onyx 2.0.87 → 2.0.89

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 +2 -2
  2. package/package.json +2 -2
package/dist/Onyx.js CHANGED
@@ -500,8 +500,8 @@ function updateSnapshots(data) {
500
500
  if (!snapshotData || !snapshotData[key]) {
501
501
  return;
502
502
  }
503
- if (Array.isArray(value)) {
504
- updatedData[key] = value;
503
+ if (Array.isArray(value) || Array.isArray(snapshotData[key])) {
504
+ updatedData[key] = value || [];
505
505
  return;
506
506
  }
507
507
  const oldValue = updatedData[key] || {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-onyx",
3
- "version": "2.0.87",
3
+ "version": "2.0.89",
4
4
  "author": "Expensify, Inc.",
5
5
  "homepage": "https://expensify.com",
6
6
  "description": "State management for React Native",
@@ -115,7 +115,7 @@
115
115
  }
116
116
  },
117
117
  "engines": {
118
- "node": ">=20.18.0",
118
+ "node": ">=20.18.1",
119
119
  "npm": ">=10.8.2"
120
120
  },
121
121
  "sideEffects": false