react-native-onyx 3.0.153 → 3.0.154

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.
@@ -60,7 +60,7 @@ declare function getMembersOfCollection(collectionKey: OnyxKey): Set<OnyxKey> |
60
60
  * @returns A tuple of [collectionKey, memberId]
61
61
  * @throws If the key is not a valid collection member key
62
62
  */
63
- declare function splitCollectionMemberKey<TKey extends CollectionKey, CollectionKeyType = TKey extends `${infer Prefix}_${string}` ? `${Prefix}_` : never>(key: TKey, collectionKey?: string): [CollectionKeyType, string];
63
+ declare function splitCollectionMemberKey<TKey extends CollectionKey>(key: TKey, collectionKey?: string): [TKey extends `${infer Prefix}_${string}` ? `${Prefix}_` : never, string];
64
64
  /**
65
65
  * Initializes the RAM-only key set. Called once during Onyx.init().
66
66
  */
package/dist/OnyxKeys.js CHANGED
@@ -146,14 +146,6 @@ function deregisterMemberKey(key) {
146
146
  function getMembersOfCollection(collectionKey) {
147
147
  return collectionToMembersMap.get(collectionKey);
148
148
  }
149
- /**
150
- * Splits a collection member key into the collection key part and the ID part.
151
- *
152
- * @param key - The collection member key to split
153
- * @param collectionKey - Optional pre-resolved collection key for optimization
154
- * @returns A tuple of [collectionKey, memberId]
155
- * @throws If the key is not a valid collection member key
156
- */
157
149
  function splitCollectionMemberKey(key, collectionKey) {
158
150
  if (collectionKey && !isCollectionMemberKey(collectionKey, key)) {
159
151
  throw new Error(`Invalid '${collectionKey}' collection key provided, it isn't compatible with '${key}' key.`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-onyx",
3
- "version": "3.0.153",
3
+ "version": "3.0.154",
4
4
  "author": "Expensify, Inc.",
5
5
  "homepage": "https://expensify.com",
6
6
  "description": "State management for React Native",