react 15.4.2 → 15.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,6 +21,9 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
21
21
  var React = require('./React');
22
22
  var ReactTransitionChildMapping = require('./ReactTransitionChildMapping');
23
23
 
24
+ var propTypesFactory = require('prop-types/factory');
25
+ var PropTypes = propTypesFactory(React.isValidElement);
26
+
24
27
  var emptyFunction = require('fbjs/lib/emptyFunction');
25
28
 
26
29
  /**
@@ -216,8 +219,8 @@ var ReactTransitionGroup = function (_React$Component) {
216
219
 
217
220
  ReactTransitionGroup.displayName = 'ReactTransitionGroup';
218
221
  ReactTransitionGroup.propTypes = {
219
- component: React.PropTypes.any,
220
- childFactory: React.PropTypes.func
222
+ component: PropTypes.any,
223
+ childFactory: PropTypes.func
221
224
  };
222
225
  ReactTransitionGroup.defaultProps = {
223
226
  component: 'span',
@@ -15,16 +15,17 @@ var _assign = require('object-assign');
15
15
  var React = require('./React');
16
16
 
17
17
  // `version` will be added here by the React module.
18
- var ReactUMDEntry = _assign({
18
+ var ReactUMDEntry = _assign(React, {
19
19
  __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
20
20
  ReactCurrentOwner: require('./ReactCurrentOwner')
21
21
  }
22
- }, React);
22
+ });
23
23
 
24
24
  if (process.env.NODE_ENV !== 'production') {
25
25
  _assign(ReactUMDEntry.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, {
26
26
  // ReactComponentTreeHook should not be included in production.
27
- ReactComponentTreeHook: require('./ReactComponentTreeHook')
27
+ ReactComponentTreeHook: require('./ReactComponentTreeHook'),
28
+ getNextDebugID: require('./getNextDebugID')
28
29
  });
29
30
  }
30
31
 
@@ -10,4 +10,4 @@
10
10
 
11
11
  'use strict';
12
12
 
13
- module.exports = '15.4.2';
13
+ module.exports = '15.5.1';
@@ -15,17 +15,18 @@ var _assign = require('object-assign');
15
15
  var ReactWithAddons = require('./ReactWithAddons');
16
16
 
17
17
  // `version` will be added here by the React module.
18
- var ReactWithAddonsUMDEntry = _assign({
18
+ var ReactWithAddonsUMDEntry = _assign(ReactWithAddons, {
19
19
  __SECRET_INJECTED_REACT_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: null, // Will be injected by ReactDOM UMD build.
20
20
  __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
21
21
  ReactCurrentOwner: require('./ReactCurrentOwner')
22
22
  }
23
- }, ReactWithAddons);
23
+ });
24
24
 
25
25
  if (process.env.NODE_ENV !== 'production') {
26
26
  _assign(ReactWithAddonsUMDEntry.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, {
27
27
  // ReactComponentTreeHook should not be included in production.
28
- ReactComponentTreeHook: require('./ReactComponentTreeHook')
28
+ ReactComponentTreeHook: require('./ReactComponentTreeHook'),
29
+ getNextDebugID: require('./getNextDebugID')
29
30
  });
30
31
  }
31
32
 
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Copyright 2013-present, Facebook, Inc.
3
+ * All rights reserved.
4
+ *
5
+ * This source code is licensed under the BSD-style license found in the
6
+ * LICENSE file in the root directory of this source tree. An additional grant
7
+ * of patent rights can be found in the PATENTS file in the same directory.
8
+ *
9
+ */
10
+
11
+ /* globals React */
12
+
13
+ 'use strict';
14
+
15
+ var ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
16
+
17
+ module.exports = ReactInternals.getNextDebugID;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react",
3
3
  "description": "React is a JavaScript library for building user interfaces.",
4
- "version": "15.4.2",
4
+ "version": "15.5.1",
5
5
  "keywords": [
6
6
  "react"
7
7
  ],
@@ -23,9 +23,10 @@
23
23
  "node": ">=0.10.0"
24
24
  },
25
25
  "dependencies": {
26
- "fbjs": "^0.8.4",
26
+ "fbjs": "^0.8.9",
27
27
  "loose-envify": "^1.1.0",
28
- "object-assign": "^4.1.0"
28
+ "object-assign": "^4.1.0",
29
+ "prop-types": "^15.5.0"
29
30
  },
30
31
  "browserify": {
31
32
  "transform": [