Skip to content

Commit

Permalink
Merge pull request #176 from brigade/6.0.0
Browse files Browse the repository at this point in the history
6.0.0
  • Loading branch information
jamesplease authored Apr 11, 2017
2 parents 74bfb3f + c56445a commit b23770d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
## master (unreleased)

## 6.0.0

- Add `prop-types` as a peer dependency to remove deprecation warnings when
running on React 15.5

## 5.3.1

- Remove the `prop-types` peer dependency. This was an accidental breaking
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-waypoint",
"version": "5.3.1",
"version": "6.0.0",
"description": "A React component to execute a function whenever you scroll to an element.",
"main": "build/waypoint.js",
"types": "index.d.ts",
Expand Down Expand Up @@ -28,7 +28,8 @@
"author": "Brigade Engineering",
"license": "MIT",
"peerDependencies": {
"react": "^0.14.0 || ^15.0.0"
"react": "^0.14.0 || ^15.0.0",
"prop-types": "^15.0.0"
},
"devDependencies": {
"@types/react": "^15.0.21",
Expand Down
3 changes: 2 additions & 1 deletion src/waypoint.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { addEventListener, removeEventListener } from 'consolidated-events';
import React, { PropTypes } from 'react';
import PropTypes from 'prop-types';
import React from 'react';

import computeOffsetPixels from './computeOffsetPixels';
import constants from './constants';
Expand Down

0 comments on commit b23770d

Please sign in to comment.