瀏覽代碼

deps: react-redux@7.1.0

RN 0.60 loudly complains (loudly) about deprecated methods which react-redux was using.
efficient_tiling
Saúl Ibarra Corretgé 5 年之前
父節點
當前提交
861cf7d842
共有 3 個檔案被更改,包括 91 行新增33 行删除
  1. 22
    5
      flow-typed/npm/react-redux_v7.x.x.js
  2. 67
    26
      package-lock.json
  3. 2
    2
      package.json

flow-typed/npm/react-redux_v5.x.x.js → flow-typed/npm/react-redux_v7.x.x.js 查看文件

1
-// flow-typed signature: be1a6a9041ded9d5eb2308664fa10a77
2
-// flow-typed version: c6154227d1/react-redux_v5.x.x/flow_>=v0.89.x <=v0.103.x
1
+// flow-typed signature: d2ddacbbca9700881249a9435381e689
2
+// flow-typed version: c6154227d1/react-redux_v7.x.x/flow_>=v0.89.x <=v0.103.x
3
 
3
 
4
 /**
4
 /**
5
 The order of type arguments for connect() is as follows:
5
 The order of type arguments for connect() is as follows:
27
   RMP = Returned merge props
27
   RMP = Returned merge props
28
   CP = Props for returned component
28
   CP = Props for returned component
29
   Com = React Component
29
   Com = React Component
30
+  SS = Selected state
30
   ST = Static properties of Com
31
   ST = Static properties of Com
31
   EFO = Extra factory options (used only in connectAdvanced)
32
   EFO = Extra factory options (used only in connectAdvanced)
32
 */
33
 */
38
 
39
 
39
   declare export type Options<S, OP, SP, MP> = {|
40
   declare export type Options<S, OP, SP, MP> = {|
40
     pure?: boolean,
41
     pure?: boolean,
41
-    withRef?: boolean,
42
+    forwardRef?: boolean,
42
     areStatesEqual?: (next: S, prev: S) => boolean,
43
     areStatesEqual?: (next: S, prev: S) => boolean,
43
     areOwnPropsEqual?: (next: OP, prev: OP) => boolean,
44
     areOwnPropsEqual?: (next: OP, prev: OP) => boolean,
44
     areStatePropsEqual?: (next: SP, prev: SP) => boolean,
45
     areStatePropsEqual?: (next: SP, prev: SP) => boolean,
198
     options?: ?Options<S, OP, SP, P>,
199
     options?: ?Options<S, OP, SP, P>,
199
   ): Connector<P, OP, P>;
200
   ): Connector<P, OP, P>;
200
 
201
 
202
+  // ------------------------------------------------------------
203
+  // Typings for Hooks
204
+  // ------------------------------------------------------------
205
+
206
+  declare export function useDispatch<D>(): D;
207
+
208
+  declare export function useSelector<S, SS>(
209
+    selector: (state: S) => SS,
210
+    equalityFn?: (a: SS, b: SS) => boolean,
211
+  ): SS;
212
+
213
+  declare export function useStore<Store>(): Store;
214
+
201
   // ------------------------------------------------------------
215
   // ------------------------------------------------------------
202
   // Typings for Provider
216
   // Typings for Provider
203
   // ------------------------------------------------------------
217
   // ------------------------------------------------------------
222
     renderCountProp?: string,
236
     renderCountProp?: string,
223
     shouldHandleStateChanges?: boolean,
237
     shouldHandleStateChanges?: boolean,
224
     storeKey?: string,
238
     storeKey?: string,
225
-    withRef?: boolean,
239
+    forwardRef?: boolean,
226
   };
240
   };
227
 
241
 
228
   declare type SelectorFactoryOptions<Com> = {
242
   declare type SelectorFactoryOptions<Com> = {
231
     renderCountProp: ?string,
245
     renderCountProp: ?string,
232
     shouldHandleStateChanges: boolean,
246
     shouldHandleStateChanges: boolean,
233
     storeKey: string,
247
     storeKey: string,
234
-    withRef: boolean,
248
+    forwardRef: boolean,
235
     displayName: string,
249
     displayName: string,
236
     wrappedComponentName: string,
250
     wrappedComponentName: string,
237
     WrappedComponent: Com,
251
     WrappedComponent: Com,
272
     createProvider: typeof createProvider,
286
     createProvider: typeof createProvider,
273
     connect: typeof connect,
287
     connect: typeof connect,
274
     connectAdvanced: typeof connectAdvanced,
288
     connectAdvanced: typeof connectAdvanced,
289
+    useDispatch: typeof useDispatch,
290
+    useSelector: typeof useSelector,
291
+    useStore: typeof useStore,
275
   };
292
   };
276
 }
293
 }

+ 67
- 26
package-lock.json 查看文件

8409
         "minimalistic-crypto-utils": "^1.0.1"
8409
         "minimalistic-crypto-utils": "^1.0.1"
8410
       }
8410
       }
8411
     },
8411
     },
8412
+    "hoist-non-react-statics": {
8413
+      "version": "3.3.0",
8414
+      "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.0.tgz",
8415
+      "integrity": "sha512-0XsbTXxgiaCDYDIWFcwkmerZPSwywfUqYmwT4jzewKTQSWoE6FCMoUVOeBJWK3E/CrWbxRG3m5GzY4lnIwGRBA==",
8416
+      "requires": {
8417
+        "react-is": "^16.7.0"
8418
+      },
8419
+      "dependencies": {
8420
+        "react-is": {
8421
+          "version": "16.9.0",
8422
+          "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.9.0.tgz",
8423
+          "integrity": "sha512-tJBzzzIgnnRfEm046qRcURvwQnZVXmuCbscxUO5RWrGTXpon2d4c8mI0D8WE6ydVIm29JiLB6+RslkIvym9Rjw=="
8424
+        }
8425
+      }
8426
+    },
8412
     "hosted-git-info": {
8427
     "hosted-git-info": {
8413
       "version": "2.5.0",
8428
       "version": "2.5.0",
8414
       "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.5.0.tgz",
8429
       "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.5.0.tgz",
10619
       "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.13.tgz",
10634
       "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.13.tgz",
10620
       "integrity": "sha512-vm3/XWXfWtRua0FkUyEHBZy8kCPjErNBT9fJx8Zvs+U6zjqPbTUOpkaoum3O5uiA8sm+yNMHXfYkTUHFoMxFNA=="
10635
       "integrity": "sha512-vm3/XWXfWtRua0FkUyEHBZy8kCPjErNBT9fJx8Zvs+U6zjqPbTUOpkaoum3O5uiA8sm+yNMHXfYkTUHFoMxFNA=="
10621
     },
10636
     },
10622
-    "lodash-es": {
10623
-      "version": "4.17.15",
10624
-      "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.15.tgz",
10625
-      "integrity": "sha512-rlrc3yU3+JNOpZ9zj5pQtxnx2THmvRykwL4Xlxoa8I9lHBlVbbyPhgyPMioxVZ4NqyxaVVtaJnzsyOidQIhyyQ=="
10626
-    },
10627
     "lodash.assign": {
10637
     "lodash.assign": {
10628
       "version": "4.2.0",
10638
       "version": "4.2.0",
10629
       "resolved": "https://registry.npmjs.org/lodash.assign/-/lodash.assign-4.2.0.tgz",
10639
       "resolved": "https://registry.npmjs.org/lodash.assign/-/lodash.assign-4.2.0.tgz",
14243
       }
14253
       }
14244
     },
14254
     },
14245
     "react-redux": {
14255
     "react-redux": {
14246
-      "version": "5.0.7",
14247
-      "resolved": "https://registry.npmjs.org/react-redux/-/react-redux-5.0.7.tgz",
14248
-      "integrity": "sha512-5VI8EV5hdgNgyjfmWzBbdrqUkrVRKlyTKk1sGH3jzM2M2Mhj/seQgPXaz6gVAj2lz/nz688AdTqMO18Lr24Zhg==",
14256
+      "version": "7.1.0",
14257
+      "resolved": "https://registry.npmjs.org/react-redux/-/react-redux-7.1.0.tgz",
14258
+      "integrity": "sha512-hyu/PoFK3vZgdLTg9ozbt7WF3GgX5+Yn3pZm5/96/o4UueXA+zj08aiSC9Mfj2WtD1bvpIb3C5yvskzZySzzaw==",
14249
       "requires": {
14259
       "requires": {
14250
-        "hoist-non-react-statics": "^2.5.0",
14251
-        "invariant": "^2.0.0",
14252
-        "lodash": "^4.17.5",
14253
-        "lodash-es": "^4.17.5",
14254
-        "loose-envify": "^1.1.0",
14255
-        "prop-types": "^15.6.0"
14260
+        "@babel/runtime": "^7.4.5",
14261
+        "hoist-non-react-statics": "^3.3.0",
14262
+        "invariant": "^2.2.4",
14263
+        "loose-envify": "^1.4.0",
14264
+        "prop-types": "^15.7.2",
14265
+        "react-is": "^16.8.6"
14256
       },
14266
       },
14257
       "dependencies": {
14267
       "dependencies": {
14258
-        "hoist-non-react-statics": {
14259
-          "version": "2.5.0",
14260
-          "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-2.5.0.tgz",
14261
-          "integrity": "sha512-6Bl6XsDT1ntE0lHbIhr4Kp2PGcleGZ66qu5Jqk8lc0Xc/IeG6gVLmwUGs/K0Us+L8VWoKgj0uWdPMataOsm31w=="
14268
+        "invariant": {
14269
+          "version": "2.2.4",
14270
+          "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz",
14271
+          "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==",
14272
+          "requires": {
14273
+            "loose-envify": "^1.0.0"
14274
+          }
14262
         },
14275
         },
14263
-        "lodash": {
14264
-          "version": "4.17.10",
14265
-          "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.10.tgz",
14266
-          "integrity": "sha512-UejweD1pDoXu+AD825lWwp4ZGtSwgnpZxb3JDViD7StjQz+Nb/6l093lx4OQ0foGWNRoc19mWy7BzL+UAK2iVg=="
14276
+        "loose-envify": {
14277
+          "version": "1.4.0",
14278
+          "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",
14279
+          "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",
14280
+          "requires": {
14281
+            "js-tokens": "^3.0.0 || ^4.0.0"
14282
+          }
14283
+        },
14284
+        "prop-types": {
14285
+          "version": "15.7.2",
14286
+          "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.7.2.tgz",
14287
+          "integrity": "sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==",
14288
+          "requires": {
14289
+            "loose-envify": "^1.4.0",
14290
+            "object-assign": "^4.1.1",
14291
+            "react-is": "^16.8.1"
14292
+          }
14293
+        },
14294
+        "react-is": {
14295
+          "version": "16.9.0",
14296
+          "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.9.0.tgz",
14297
+          "integrity": "sha512-tJBzzzIgnnRfEm046qRcURvwQnZVXmuCbscxUO5RWrGTXpon2d4c8mI0D8WE6ydVIm29JiLB6+RslkIvym9Rjw=="
14267
         }
14298
         }
14268
       }
14299
       }
14269
     },
14300
     },
14745
       }
14776
       }
14746
     },
14777
     },
14747
     "redux": {
14778
     "redux": {
14748
-      "version": "4.0.0",
14749
-      "resolved": "https://registry.npmjs.org/redux/-/redux-4.0.0.tgz",
14750
-      "integrity": "sha512-NnnHF0h0WVE/hXyrB6OlX67LYRuaf/rJcbWvnHHEPCF/Xa/AZpwhs/20WyqzQae5x4SD2F9nPObgBh2rxAgLiA==",
14779
+      "version": "4.0.4",
14780
+      "resolved": "https://registry.npmjs.org/redux/-/redux-4.0.4.tgz",
14781
+      "integrity": "sha512-vKv4WdiJxOWKxK0yRoaK3Y4pxxB0ilzVx6dszU2W8wLxlb2yikRph4iV/ymtdJ6ZxpBLFbyrxklnT5yBbQSl3Q==",
14751
       "requires": {
14782
       "requires": {
14752
-        "loose-envify": "^1.1.0",
14783
+        "loose-envify": "^1.4.0",
14753
         "symbol-observable": "^1.2.0"
14784
         "symbol-observable": "^1.2.0"
14785
+      },
14786
+      "dependencies": {
14787
+        "loose-envify": {
14788
+          "version": "1.4.0",
14789
+          "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",
14790
+          "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",
14791
+          "requires": {
14792
+            "js-tokens": "^3.0.0 || ^4.0.0"
14793
+          }
14794
+        }
14754
       }
14795
       }
14755
     },
14796
     },
14756
     "redux-thunk": {
14797
     "redux-thunk": {

+ 2
- 2
package.json 查看文件

79
     "react-native-watch-connectivity": "0.2.0",
79
     "react-native-watch-connectivity": "0.2.0",
80
     "react-native-webrtc": "github:jitsi/react-native-webrtc#44ecfddfa816d260087e16c92f299ded169a4472",
80
     "react-native-webrtc": "github:jitsi/react-native-webrtc#44ecfddfa816d260087e16c92f299ded169a4472",
81
     "react-native-webview": "5.8.1",
81
     "react-native-webview": "5.8.1",
82
-    "react-redux": "5.0.7",
82
+    "react-redux": "7.1.0",
83
     "react-textarea-autosize": "7.1.0",
83
     "react-textarea-autosize": "7.1.0",
84
     "react-transition-group": "2.4.0",
84
     "react-transition-group": "2.4.0",
85
-    "redux": "4.0.0",
85
+    "redux": "4.0.4",
86
     "redux-thunk": "2.2.0",
86
     "redux-thunk": "2.2.0",
87
     "styled-components": "3.4.9",
87
     "styled-components": "3.4.9",
88
     "uuid": "3.1.0",
88
     "uuid": "3.1.0",

Loading…
取消
儲存