瀏覽代碼

upgrade deps

Daniel Zlotin 7 年之前
父節點
當前提交
04eefcf7f5
共有 5 個文件被更改,包括 4 次插入6 次删除
  1. 0
    2
      .travis.yml
  2. 1
    1
      integration/remx/component.js
  3. 1
    1
      integration/remx/remx.test.js
  4. 1
    1
      integration/remx/store.js
  5. 1
    1
      scripts/env/installNode.sh

+ 0
- 2
.travis.yml 查看文件

@@ -4,7 +4,6 @@ language: generic
4 4
 
5 5
 env:
6 6
   global:
7
-    - YARN_CACHE=$HOME/.yarn-cache
8 7
     - CODE_SIGNING_REQUIRED=NO
9 8
     - RCT_NO_LAUNCH_PACKAGER=true
10 9
 
@@ -18,7 +17,6 @@ before_cache:
18 17
   - rm -fr $HOME/.gradle/caches/*/plugin-resolution/
19 18
 cache:
20 19
   directories:
21
-    - $YARN_CACHE
22 20
     - $HOME/.m2
23 21
     - $HOME/.gradle/caches/
24 22
     - $HOME/.gradle/wrapper/

+ 1
- 1
integration/remx/component.js 查看文件

@@ -2,7 +2,7 @@ const React = require('react');
2 2
 const { Component } = require('react');
3 3
 
4 4
 const { Text } = require('react-native');
5
-const { connect } = require('remx/react-native');
5
+const { connect } = require('remx');
6 6
 const store = require('./store');
7 7
 
8 8
 class MyContainer extends Component {

+ 1
- 1
integration/remx/remx.test.js 查看文件

@@ -31,7 +31,7 @@ describe('remx support', () => {
31 31
     expect(renderCountIncrement).toHaveBeenCalledTimes(2);
32 32
   });
33 33
 
34
-  it('rerenders as a result of an underlying state change with a new key using merge', () => {
34
+  it('rerenders as a result of an underlying state change with a new key', () => {
35 35
     const renderCountIncrement = jest.fn();
36 36
     const tree = renderer.create(<MyConnectedContainer printAge={true} renderCountIncrement={renderCountIncrement} />);
37 37
 

+ 1
- 1
integration/remx/store.js 查看文件

@@ -13,7 +13,7 @@ const setters = remx.setters({
13 13
   },
14 14
 
15 15
   setAge(age) {
16
-    state.merge({ person: { age } });
16
+    state.person.age = age;
17 17
   }
18 18
 });
19 19
 

+ 1
- 1
scripts/env/installNode.sh 查看文件

@@ -2,4 +2,4 @@
2 2
 
3 3
 curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash
4 4
 export NVM_DIR="$HOME/.nvm" && [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
5
-nvm install 8.2.1
5
+nvm install stable