Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed deprecated PropTypes #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 13 additions & 9 deletions dist/HTMLDocument.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _propTypes = require('prop-types');

var _propTypes2 = _interopRequireDefault(_propTypes);

var _reactDomServer = require('react-dom/server');

var _reactDomServer2 = _interopRequireDefault(_reactDomServer);
Expand Down Expand Up @@ -165,15 +169,15 @@ var HTMLDocument = (function (_Component) {
})(_react.Component);

HTMLDocument.propTypes = {
childrenContainerId: _react.PropTypes.string,
children: _react.PropTypes.node,
htmlAttributes: _react.PropTypes.object,
favicon: _react.PropTypes.string,
metatags: _react.PropTypes.array,
scripts: _react.PropTypes.array,
stylesheets: _react.PropTypes.array,
title: _react.PropTypes.string,
universalState: _react.PropTypes.object
childrenContainerId: _propTypes2['default'].string,
children: _propTypes2['default'].node,
htmlAttributes: _propTypes2['default'].object,
favicon: _propTypes2['default'].string,
metatags: _propTypes2['default'].array,
scripts: _propTypes2['default'].array,
stylesheets: _propTypes2['default'].array,
title: _propTypes2['default'].string,
universalState: _propTypes2['default'].object
};

HTMLDocument.defaultProps = {
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@
"eslint-config-airbnb": "^0.1.0",
"eslint-plugin-react": "^3.6.3",
"mocha": "^2.3.3",
"prop-types": "^15.5.8",
"react": "^15.0.2"
},
"dependencies": {
"react-dom": "^15.0.2"
"react-dom": "^15.5.0"
}
}
3 changes: 2 additions & 1 deletion src/HTMLDocument.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom/server';

import { STATE_SCRIPT_ID, ASSET_TYPES } from './constants';
Expand Down
3 changes: 2 additions & 1 deletion test/TestApp.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';


class TestApp extends Component {
Expand Down
1 change: 1 addition & 0 deletions test/test-script.js
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/* eslint-disable */
var x = 1;