react-native-onyx 2.0.84 → 2.0.85

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/dist/useOnyx.js CHANGED
@@ -86,7 +86,7 @@ function useOnyx(key, options, dependencies = []) {
86
86
  // Indicates if it's the first Onyx connection of this hook or not, as we don't want certain use cases
87
87
  // in `getSnapshot()` to be satisfied several times.
88
88
  const isFirstConnectionRef = (0, react_1.useRef)(true);
89
- // Indicates if the hook is connecting to a Onyx key.
89
+ // Indicates if the hook is connecting to an Onyx key.
90
90
  const isConnectingRef = (0, react_1.useRef)(false);
91
91
  // Stores the `onStoreChange()` function, which can be used to trigger a `getSnapshot()` update when desired.
92
92
  const onStoreChangeFnRef = (0, react_1.useRef)(null);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-onyx",
3
- "version": "2.0.84",
3
+ "version": "2.0.85",
4
4
  "author": "Expensify, Inc.",
5
5
  "homepage": "https://expensify.com",
6
6
  "description": "State management for React Native",
@@ -25,7 +25,8 @@
25
25
  "README.md",
26
26
  "LICENSE.md"
27
27
  ],
28
- "main": "lib/index.ts",
28
+ "main": "dist/index.js",
29
+ "types": "dist/index.d.ts",
29
30
  "scripts": {
30
31
  "lint": "eslint .",
31
32
  "typecheck": "tsc --noEmit",
package/lib/index.ts DELETED
@@ -1,51 +0,0 @@
1
- import type {ConnectOptions, OnyxUpdate} from './Onyx';
2
- import Onyx from './Onyx';
3
- import type {
4
- CustomTypeOptions,
5
- KeyValueMapping,
6
- NullishDeep,
7
- OnyxCollection,
8
- OnyxEntry,
9
- OnyxKey,
10
- OnyxValue,
11
- Selector,
12
- OnyxInputValue,
13
- OnyxCollectionInputValue,
14
- OnyxInput,
15
- OnyxSetInput,
16
- OnyxMultiSetInput,
17
- OnyxMergeInput,
18
- OnyxMergeCollectionInput,
19
- } from './types';
20
- import type {FetchStatus, ResultMetadata, UseOnyxResult} from './useOnyx';
21
- import type {Connection} from './OnyxConnectionManager';
22
- import useOnyx from './useOnyx';
23
- import withOnyx from './withOnyx';
24
- import type {WithOnyxState} from './withOnyx/types';
25
-
26
- export default Onyx;
27
- export {useOnyx, withOnyx};
28
- export type {
29
- ConnectOptions,
30
- CustomTypeOptions,
31
- FetchStatus,
32
- KeyValueMapping,
33
- NullishDeep,
34
- OnyxCollection,
35
- OnyxEntry,
36
- OnyxKey,
37
- OnyxInputValue,
38
- OnyxCollectionInputValue,
39
- OnyxInput,
40
- OnyxSetInput,
41
- OnyxMultiSetInput,
42
- OnyxMergeInput,
43
- OnyxMergeCollectionInput,
44
- OnyxUpdate,
45
- OnyxValue,
46
- ResultMetadata,
47
- Selector,
48
- UseOnyxResult,
49
- WithOnyxState,
50
- Connection,
51
- };