react-dom 15.4.0-rc.4 → 15.4.0
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.
- package/dist/react-dom-server.js +330 -311
- package/dist/react-dom-server.min.js +5 -5
- package/dist/react-dom.js +419 -401
- package/dist/react-dom.min.js +5 -5
- package/lib/ReactChildFiber.js +7 -9
- package/lib/ReactCompositeComponent.js +2 -2
- package/lib/ReactDebugTool.js +5 -6
- package/lib/ReactFiber.js +9 -9
- package/lib/ReactFiberBeginWork.js +26 -31
- package/lib/ReactFiberCommitWork.js +5 -7
- package/lib/ReactFiberCompleteWork.js +13 -14
- package/lib/ReactFiberReconciler.js +5 -8
- package/lib/ReactFiberRoot.js +2 -4
- package/lib/ReactFiberScheduler.js +13 -20
- package/lib/ReactOwner.js +2 -2
- package/lib/ReactPerf.js +45 -45
- package/lib/ReactReconciler.js +2 -2
- package/lib/ReactRef.js +5 -5
- package/lib/ReactReifiedYield.js +2 -4
- package/lib/ReactShallowRenderer.js +3 -4
- package/lib/ReactTestUtils.js +2 -2
- package/lib/ReactVersion.js +1 -1
- package/lib/ResponderTouchHistoryStore.js +3 -3
- package/lib/getNextDebugID.js +20 -0
- package/lib/instantiateReactComponent.js +2 -3
- package/package.json +2 -2
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
|
|
12
|
+
'use strict';
|
|
13
|
+
|
|
14
|
+
var nextDebugID = 1;
|
|
15
|
+
|
|
16
|
+
function getNextDebugID() {
|
|
17
|
+
return nextDebugID++;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
module.exports = getNextDebugID;
|
|
@@ -17,6 +17,7 @@ var ReactCompositeComponent = require('./ReactCompositeComponent');
|
|
|
17
17
|
var ReactEmptyComponent = require('./ReactEmptyComponent');
|
|
18
18
|
var ReactHostComponent = require('./ReactHostComponent');
|
|
19
19
|
|
|
20
|
+
var getNextDebugID = require('./getNextDebugID');
|
|
20
21
|
var invariant = require('fbjs/lib/invariant');
|
|
21
22
|
var warning = require('fbjs/lib/warning');
|
|
22
23
|
|
|
@@ -49,8 +50,6 @@ function isInternalComponentType(type) {
|
|
|
49
50
|
return typeof type === 'function' && typeof type.prototype !== 'undefined' && typeof type.prototype.mountComponent === 'function' && typeof type.prototype.receiveComponent === 'function';
|
|
50
51
|
}
|
|
51
52
|
|
|
52
|
-
var nextDebugID = 1;
|
|
53
|
-
|
|
54
53
|
/**
|
|
55
54
|
* Given a ReactNode, create an instance that will actually be mounted.
|
|
56
55
|
*
|
|
@@ -101,7 +100,7 @@ function instantiateReactComponent(node, shouldHaveDebugID) {
|
|
|
101
100
|
instance._mountImage = null;
|
|
102
101
|
|
|
103
102
|
if (process.env.NODE_ENV !== 'production') {
|
|
104
|
-
instance._debugID = shouldHaveDebugID ?
|
|
103
|
+
instance._debugID = shouldHaveDebugID ? getNextDebugID() : 0;
|
|
105
104
|
}
|
|
106
105
|
|
|
107
106
|
// Internal instances should fully constructed at this point, so they should
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-dom",
|
|
3
|
-
"version": "15.4.0
|
|
3
|
+
"version": "15.4.0",
|
|
4
4
|
"description": "React package for working with the DOM.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": "facebook/react",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"object-assign": "^4.1.0"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"react": "^15.4.0
|
|
21
|
+
"react": "^15.4.0"
|
|
22
22
|
},
|
|
23
23
|
"files": [
|
|
24
24
|
"LICENSE",
|