react-native-onyx 1.0.52 → 1.0.53

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/lib/Onyx.js CHANGED
@@ -1134,6 +1134,11 @@ function mergeCollection(collectionKey, collection) {
1134
1134
  if (isKeyMatch(collectionKey, dataKey)) {
1135
1135
  return;
1136
1136
  }
1137
+
1138
+ if (process.env.NODE_ENV === 'development') {
1139
+ throw new Error(`Provided collection doesn't have all its data belonging to the same parent. CollectionKey: ${collectionKey}, DataKey: ${dataKey}`);
1140
+ }
1141
+
1137
1142
  hasCollectionKeyCheckFailed = true;
1138
1143
  Logger.logAlert(`Provided collection doesn't have all its data belonging to the same parent. CollectionKey: ${collectionKey}, DataKey: ${dataKey}`);
1139
1144
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-onyx",
3
- "version": "1.0.52",
3
+ "version": "1.0.53",
4
4
  "author": "Expensify, Inc.",
5
5
  "homepage": "https://expensify.com",
6
6
  "description": "State management for React Native",