Skip to content

Commit cd31dcc

Browse files
committed
remove npm@2 support
1 parent c8f009e commit cd31dcc

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
## master (unreleased)
22

3+
## 3.0.0
4+
5+
- Add React 15.5.x support
6+
- Deprecate React 0.14 peer dependencie
7+
38
## 2.2.0
49

510
- Add beforeAnimate/afterAnimate hooks to scroll handler

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,7 @@ npm install react-scrollchor --save
2525

2626
### Dependencies
2727
* User should provide its own `React` package
28-
* on `npm 2` enviroments, package [fbjs](https://www.npmjs.com/package/fbjs) should be installed too:
29-
```bash
30-
npm install fbjs --save
31-
```
28+
3229

3330
#### `fbjs` package
3431
[fbjs](https://www.npmjs.com/package/fbjs) is a collection of utility libraries created by React Team. It include useful modules like `warning` and `invariant`

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
],
88
"repository": "https://github.com/bySabi/react-scrollchor.git",
99
"main": "lib/scrollchor.js",
10+
"engines": {
11+
"npm": ">=3.0"
12+
},
1013
"scripts": {
1114
"build-npm": "rimraf lib && mkdirp lib && babel src/ -d lib/",
1215
"lint": "eslint . --ext .js,.jsx",
@@ -27,7 +30,7 @@
2730
"author": "bySabi Files",
2831
"license": "ISC",
2932
"peerDependencies": {
30-
"react": "^15.0.0",
33+
"react": ">=15.0.0",
3134
"fbjs": "*"
3235
},
3336
"devDependencies": {

0 commit comments

Comments
 (0)