Skip to content

Commit a95faee

Browse files
committed
feat: mobx 5 support
1 parent 88b24c9 commit a95faee

File tree

5 files changed

+30
-25
lines changed

5 files changed

+30
-25
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
/node_modules
77
/umd
88
npm-debug.log
9-
.nyc_output
9+
yarn-error.log
1010
coverage.lcov
1111
codecov.yml
1212
yarn.lock
13+
.nyc_output

.travis.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
sudo: false
22
language: node_js
33
cache:
4+
yarn: true
45
directories:
56
- node_modules
67
notifications:
78
email: false
89
node_js:
9-
- 8
10+
- '8'
1011
before_install:
1112
- npm i -g npm@^3.0.0
1213
before_script:
1314
- npm prune
14-
install:
15-
- npm install
1615
script:
1716
- npm run cover
1817
- npm run coverage:check

demo/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
"basscss-colors": "2.2.0",
1919
"classnames": "2.2.5",
2020
"font-awesome": "4.7.0",
21-
"mobx": "4.2.0",
22-
"mobx-react": "^5.0.0",
23-
"mobx-react-devtools": "^5.0.1",
21+
"mobx": "^5.0.3",
22+
"mobx-react": "^5.2.3",
23+
"mobx-react-devtools": "^6.0.1",
2424
"prop-types": "^15.6.0",
2525
"react": "^16.0.0",
2626
"react-dom": "^16.0.0"

demo/yarn.lock

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2079,9 +2079,9 @@ hoek@2.x.x:
20792079
version "2.16.3"
20802080
resolved "https://registry.yarnpkg.com/hoek/-/hoek-2.16.3.tgz#20bb7403d3cea398e91dc4710a8ff1b8274a25ed"
20812081

2082-
hoist-non-react-statics@^2.3.1:
2083-
version "2.5.0"
2084-
resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-2.5.0.tgz#d2ca2dfc19c5a91c5a6615ce8e564ef0347e2a40"
2082+
hoist-non-react-statics@^2.5.0:
2083+
version "2.5.5"
2084+
resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-2.5.5.tgz#c5903cf409c0dfd908f388e619d86b9c1174cb47"
20852085

20862086
home-or-tmp@^2.0.0:
20872087
version "2.0.0"
@@ -2652,19 +2652,20 @@ minimist@^1.2.0:
26522652
dependencies:
26532653
minimist "0.0.8"
26542654

2655-
mobx-react-devtools@^5.0.1:
2656-
version "5.0.1"
2657-
resolved "https://registry.yarnpkg.com/mobx-react-devtools/-/mobx-react-devtools-5.0.1.tgz#9473c85929b2fc0c95086430419028cebd96fb3b"
2655+
mobx-react-devtools@^6.0.1:
2656+
version "6.0.1"
2657+
resolved "https://registry.yarnpkg.com/mobx-react-devtools/-/mobx-react-devtools-6.0.1.tgz#24fdb14349e1b0b5a014d7c031cfe8188ed9c418"
26582658

2659-
mobx-react@^5.0.0:
2660-
version "5.0.0"
2661-
resolved "https://registry.yarnpkg.com/mobx-react/-/mobx-react-5.0.0.tgz#8d5a33be376fa22b184a6f555d40a6a3a8459a16"
2659+
mobx-react@^5.2.3:
2660+
version "5.2.3"
2661+
resolved "https://registry.yarnpkg.com/mobx-react/-/mobx-react-5.2.3.tgz#cdf6141c2fe63377c5813cbd254e8ce0d4676631"
26622662
dependencies:
2663-
hoist-non-react-statics "^2.3.1"
2663+
hoist-non-react-statics "^2.5.0"
2664+
react-lifecycles-compat "^3.0.2"
26642665

2665-
mobx@4.2.0:
2666-
version "4.2.0"
2667-
resolved "https://registry.yarnpkg.com/mobx/-/mobx-4.2.0.tgz#ee0b0a4f3da2f4776225046ab208ac329a4841d4"
2666+
mobx@^5.0.3:
2667+
version "5.0.3"
2668+
resolved "https://registry.yarnpkg.com/mobx/-/mobx-5.0.3.tgz#53b97f2a0f9b0dd7774c96249f81bf2d513d8e1c"
26682669

26692670
ms@0.7.1:
26702671
version "0.7.1"
@@ -3390,6 +3391,10 @@ react-dom@^16.0.0:
33903391
object-assign "^4.1.1"
33913392
prop-types "^15.6.0"
33923393

3394+
react-lifecycles-compat@^3.0.2:
3395+
version "3.0.4"
3396+
resolved "https://registry.yarnpkg.com/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz#4f1a273afdfc8f3488a8c516bfda78f872352362"
3397+
33933398
react@^16.0.0:
33943399
version "16.0.0"
33953400
resolved "https://registry.yarnpkg.com/react/-/react-16.0.0.tgz#ce7df8f1941b036f02b2cca9dbd0cb1f0e855e2d"

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "mobx-react-matchmedia",
33
"license": "MIT",
4-
"version": "0.0.0-semantically-released",
4+
"version": "0.0.0-development",
55
"author": "Claudio Savino <claudio.savino@me.com> (https://twitter.com/foxhound87)",
66
"description": "A React HOC with mediaqueries for responsive layout.",
77
"homepage": "https://www.npmjs.com/package/mobx-react-matchmedia",
@@ -25,7 +25,7 @@
2525
"cover": "nyc npm test",
2626
"coverage:check": "nyc check-coverage --satements 25 --branches 0 --functions 0 --lines 30",
2727
"coverage:report": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
28-
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
28+
"semantic-release": "semantic-release"
2929
},
3030
"repository": {
3131
"type": "git",
@@ -53,7 +53,7 @@
5353
"match-media-mock": "0.1.0"
5454
},
5555
"peerDependencies": {
56-
"mobx": "^2.5.0 || ^3.0.0 || ^4.0.0",
56+
"mobx": "^2.5.0 || ^3.0.0 || ^4.0.0 || ^5.0.0",
5757
"prop-types": "^15.6.0",
5858
"react": "^15.0.0 || ^16.0.0"
5959
},
@@ -84,14 +84,14 @@
8484
"husky": "^0.12.0",
8585
"jsdom": "^11.3.0",
8686
"json-loader": "0.5.4",
87-
"mobx": "4.2.0",
87+
"mobx": "^5.0.3",
8888
"mocha": "3.2.0",
8989
"npm-run-all": "4.0.1",
9090
"nyc": "10.1.2",
9191
"react": "^16.0.0",
9292
"react-dom": "^16.0.0",
9393
"react-test-renderer": "^16.0.0",
94-
"semantic-release": "^8.0.3",
94+
"semantic-release": "^15.8.1",
9595
"webpack": "1.14.0"
9696
}
9797
}

0 commit comments

Comments
 (0)