diff --git a/examples/with-pretty-url-routing/package.json b/examples/with-pretty-url-routing/package.json index 6ecb3fb5..3080fbb7 100644 --- a/examples/with-pretty-url-routing/package.json +++ b/examples/with-pretty-url-routing/package.json @@ -8,6 +8,7 @@ "express": "^4.15.2", "next": "^2.0.0", "next-url-prettifier": "^1.0.2", + "prop-types": "^15.5.6", "react": "^15.4.2", "react-dom": "^15.4.2" } diff --git a/examples/with-pretty-url-routing/pages/greeting.js b/examples/with-pretty-url-routing/pages/greeting.js index e4fe354f..03b9d4fb 100644 --- a/examples/with-pretty-url-routing/pages/greeting.js +++ b/examples/with-pretty-url-routing/pages/greeting.js @@ -1,4 +1,5 @@ import React from 'react' +import PropTypes from 'prop-types' import {Link} from 'next-url-prettifier' import {Router} from '../routes' @@ -29,6 +30,6 @@ export default class GreetingPage extends React.Component { } GreetingPage.propTypes = { - lang: React.PropTypes.string, - name: React.PropTypes.string + lang: PropTypes.string, + name: PropTypes.string } diff --git a/lib/app.js b/lib/app.js index 2cc4d575..f8d33cee 100644 --- a/lib/app.js +++ b/lib/app.js @@ -1,4 +1,5 @@ -import React, { Component, PropTypes } from 'react' +import React, { Component } from 'react' +import PropTypes from 'prop-types' import { AppContainer } from 'react-hot-loader' import shallowEquals from './shallow-equals' import { warn } from './utils' diff --git a/lib/head.js b/lib/head.js index ea580942..6200efe4 100644 --- a/lib/head.js +++ b/lib/head.js @@ -1,9 +1,10 @@ import React from 'react' +import PropTypes from 'prop-types' import sideEffect from './side-effect' class Head extends React.Component { static contextTypes = { - headManager: React.PropTypes.object + headManager: PropTypes.object } render () { diff --git a/lib/link.js b/lib/link.js index 87c4c32f..547161e7 100644 --- a/lib/link.js +++ b/lib/link.js @@ -1,5 +1,6 @@ import { resolve, format, parse } from 'url' -import React, { Component, Children, PropTypes } from 'react' +import React, { Component, Children } from 'react' +import PropTypes from 'prop-types' import Router from './router' import { warn, execOnce, getLocationOrigin } from './utils' diff --git a/package.json b/package.json index 532d3ee1..cc450d2a 100644 --- a/package.json +++ b/package.json @@ -80,6 +80,7 @@ "mz": "2.6.0", "path-match": "1.2.4", "pkg-up": "1.0.0", + "prop-types": "15.5.6", "react-hot-loader": "3.0.0-beta.6", "send": "0.15.1", "source-map-support": "0.4.14", @@ -116,8 +117,8 @@ "node-fetch": "1.6.3", "node-notifier": "5.1.2", "nyc": "10.2.0", - "react": "15.4.2", - "react-dom": "15.4.2", + "react": "15.5.3", + "react-dom": "15.5.3", "standard": "9.0.2", "wd": "1.2.0" }, diff --git a/server/document.js b/server/document.js index 6c698da2..469c1223 100644 --- a/server/document.js +++ b/server/document.js @@ -1,4 +1,5 @@ -import React, { Component, PropTypes } from 'react' +import React, { Component } from 'react' +import PropTypes from 'prop-types' import htmlescape from 'htmlescape' import flush from 'styled-jsx/server' diff --git a/yarn.lock b/yarn.lock index 1bed96f9..1c6c5054 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2029,9 +2029,9 @@ fb-watchman@^2.0.0: dependencies: bser "^2.0.0" -fbjs@^0.8.1, fbjs@^0.8.4: - version "0.8.9" - resolved "https://registry.npmjs.org/fbjs/-/fbjs-0.8.9.tgz#180247fbd347dcc9004517b904f865400a0c8f14" +fbjs@^0.8.9: + version "0.8.12" + resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.12.tgz#10b5d92f76d45575fd63a217d4ea02bea2f8ed04" dependencies: core-js "^1.0.0" isomorphic-fetch "^2.1.1" @@ -4005,6 +4005,12 @@ promise@^7.1.1: dependencies: asap "~2.0.3" +prop-types@^15.5.2, prop-types@^15.5.6, prop-types@~15.5.0: + version "15.5.6" + resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.5.6.tgz#797a915b1714b645ebb7c5d6cc690346205bd2aa" + dependencies: + fbjs "^0.8.9" + prr@~0.0.0: version "0.0.0" resolved "https://registry.npmjs.org/prr/-/prr-0.0.0.tgz#1a84b85908325501411853d0081ee3fa86e2926a" @@ -4075,13 +4081,14 @@ react-deep-force-update@^2.0.1: version "2.0.1" resolved "https://registry.npmjs.org/react-deep-force-update/-/react-deep-force-update-2.0.1.tgz#4f7f6c12c3e7de42f345992a3c518236fa1ecad3" -react-dom@15.4.2: - version "15.4.2" - resolved "https://registry.npmjs.org/react-dom/-/react-dom-15.4.2.tgz#015363f05b0a1fd52ae9efdd3a0060d90695208f" +react-dom@15.5.3: + version "15.5.3" + resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-15.5.3.tgz#2ee127ce942df55da53111ae303316e68072b5c5" dependencies: - fbjs "^0.8.1" + fbjs "^0.8.9" loose-envify "^1.1.0" object-assign "^4.1.0" + prop-types "~15.5.0" react-hot-loader@3.0.0-beta.6: version "3.0.0-beta.6" @@ -4100,13 +4107,14 @@ react-proxy@^3.0.0-alpha.0: dependencies: lodash "^4.6.1" -react@15.4.2: - version "15.4.2" - resolved "https://registry.npmjs.org/react/-/react-15.4.2.tgz#41f7991b26185392ba9bae96c8889e7e018397ef" +react@15.5.3: + version "15.5.3" + resolved "https://registry.yarnpkg.com/react/-/react-15.5.3.tgz#84055382c025dec4e3b902bb61a8697cc79c1258" dependencies: - fbjs "^0.8.4" + fbjs "^0.8.9" loose-envify "^1.1.0" object-assign "^4.1.0" + prop-types "^15.5.2" read-pkg-up@^1.0.1: version "1.0.1"