Skip to content

Commit 76e2cc9

Browse files
author
Luis Merino
committed
chore(deps): upgrade @researchgate/react-intersection-observer (react@^16.3.2)
1 parent 50746f3 commit 76e2cc9

File tree

6 files changed

+3145
-2612
lines changed

6 files changed

+3145
-2612
lines changed

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
language: node_js
22
node_js:
33
- "10"
4-
- "6"
4+
- "8"
55
cache: yarn
66
deploy:
77
local_dir: docs
88
provider: pages
99
skip_cleanup: true
1010
github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard
1111
on:
12-
branch: master
13-
condition: '"$TRAVIS_JOB_NUMBER" == *.1'
12+
branch: master
13+
condition: '"$TRAVIS_JOB_NUMBER" == *.1'
1414
before_install: yarn global add greenkeeper-lockfile@1
1515
before_script:
1616
- greenkeeper-lockfile-update
17-
# true needs to be removed after https://github.com/conventional-changelog/conventional-github-releaser/pull/47 is fixed
17+
# true needs to be removed after https://github.com/conventional-changelog/conventional-github-releaser/pull/47 is fixed
1818
- 'if [[ -n "$TRAVIS_TAG" ]] && [[ "$TRAVIS_JOB_NUMBER" == *.1 ]]; then yarn run create-github-release || true; fi'
1919
script:
2020
- yarn run lint

package.json

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@
77
"url": "https://github.com/researchgate/react-intersection-list/issues"
88
},
99
"dependencies": {
10-
"@researchgate/react-intersection-observer": "^0.7.3",
11-
"prop-types": "^15.6.1",
12-
"react-lifecycles-compat": "^3.0.4",
10+
"@researchgate/react-intersection-observer": "^1.0.0",
11+
"prop-types": "^15.7.2",
1312
"warning": "^4.0.1"
1413
},
1514
"devDependencies": {
1615
"@researchgate/babel-preset-rg": "^1.0.1",
1716
"@researchgate/eslint-config-rg-react": "^5.0.0",
1817
"@storybook/addon-options": "^3.2.16",
1918
"@storybook/react": "^3.2.16",
19+
"@types/react": "^16.8.14",
2020
"babel-cli": "^6.24.1",
2121
"babel-core": "^6.26.0",
2222
"babel-eslint": "^9.0.0",
@@ -29,7 +29,7 @@
2929
"eslint-plugin-import": "^2.8.0",
3030
"eslint-plugin-prettier": "^3.0.0",
3131
"eslint-plugin-react": "^7.5.1",
32-
"husky": "^0.14.3",
32+
"husky": "^1.3.1",
3333
"intersection-observer": "^0.5.0",
3434
"jest": "^22.0.0",
3535
"lint-staged": "^7.0.0",
@@ -40,8 +40,8 @@
4040
"react-test-renderer": "^16.4.0",
4141
"rimraf": "^2.6.1",
4242
"standard-version": "^4.2.0",
43-
"style-loader": "^0.22.0",
44-
"typescript": "^2.6.2",
43+
"style-loader": "^0.19.0",
44+
"typescript": "^3.4.4",
4545
"validate-commit-msg": "^2.14.0",
4646
"whatwg-fetch": "^2.0.3"
4747
},
@@ -71,8 +71,8 @@
7171
"main": "lib/js/index.js",
7272
"module": "lib/es/index.js",
7373
"peerDependencies": {
74-
"react": ">=15",
75-
"react-dom": ">=15"
74+
"react": "^16.3.2",
75+
"react-dom": "^16.3.2"
7676
},
7777
"repository": {
7878
"type": "git",
@@ -83,9 +83,7 @@
8383
"testMatch": [
8484
"**/__tests__/**/*.spec.js"
8585
],
86-
"setupFiles": [
87-
"raf/polyfill"
88-
]
86+
"testURL": "http://localhost/"
8987
},
9088
"scripts": {
9189
"build": "npm run build:js && npm run build:es",

src/List.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React, { PureComponent } from 'react';
22
import PropTypes from 'prop-types';
3-
import { polyfill } from 'react-lifecycles-compat';
43
import warning from 'warning';
54
import Sentinel from './Sentinel';
65
import { getItemCount, computeSize } from './utils';
@@ -163,7 +162,4 @@ class List extends PureComponent {
163162
}
164163
}
165164

166-
// Polyfill your component so the new lifecycles will work with older versions of React:
167-
polyfill(List);
168-
169165
export default List;

src/Sentinel.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React, { Component } from 'react';
22
import Observer from '@researchgate/react-intersection-observer';
33
import PropTypes from 'prop-types';
4-
import { polyfill } from 'react-lifecycles-compat';
54
import { computeRootMargin } from './utils';
65

76
class Sentinel extends Component {
@@ -74,7 +73,4 @@ class Sentinel extends Component {
7473
}
7574
}
7675

77-
// Polyfill your component so the new lifecycles will work with older versions of React:
78-
polyfill(Sentinel);
79-
8076
export default Sentinel;

types/tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"compilerOptions": {
3-
"jsx": "React",
4-
"noEmit": true
3+
"jsx": "react",
4+
"noEmit": true,
5+
"lib": ["es6"]
56
}
67
}

0 commit comments

Comments
 (0)