react 16.0.0-rc.1 → 16.0.0-rc.2
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/cjs/react.development.js
CHANGED
|
@@ -1002,7 +1002,7 @@ var ReactChildren_1 = ReactChildren;
|
|
|
1002
1002
|
* @providesModule ReactVersion
|
|
1003
1003
|
*/
|
|
1004
1004
|
|
|
1005
|
-
var ReactVersion = '16.0.0-rc.
|
|
1005
|
+
var ReactVersion = '16.0.0-rc.2';
|
|
1006
1006
|
|
|
1007
1007
|
/**
|
|
1008
1008
|
* Returns the first child in a collection of children and verifies that there
|
|
@@ -11,4 +11,4 @@ function L(a,b,d,e){if(K.length){var c=K.pop();c.result=a;c.keyPrefix=b;c.func=d
|
|
|
11
11
|
function N(a,b,d,e){var c=typeof a;if("undefined"===c||"boolean"===c)a=null;if(null===a||"string"===c||"number"===c||"object"===c&&a.$$typeof===I)return d(e,a,""===b?"."+O(a,0):b),1;var g=0;b=""===b?".":b+":";if(Array.isArray(a))for(var k=0;k<a.length;k++){c=a[k];var m=b+O(c,k);g+=N(c,m,d,e)}else if(m=H&&a[H]||a["@@iterator"],"function"===typeof m)for(a=m.call(a),k=0;!(c=a.next()).done;)c=c.value,m=b+O(c,k++),g+=N(c,m,d,e);else"object"===c&&(d=""+a,t("31","[object Object]"===d?"object with keys {"+
|
|
12
12
|
Object.keys(a).join(", ")+"}":d,""));return g}function O(a,b){return"object"===typeof a&&null!==a&&null!=a.key?escape(a.key):b.toString(36)}function P(a,b){a.func.call(a.context,b,a.count++)}function Q(a,b,d){var e=a.result,c=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?R(a,e,d,r.thatReturnsArgument):null!=a&&(G.isValidElement(a)&&(a=G.cloneAndReplaceKey(a,c+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(J,"$\x26/")+"/")+d)),e.push(a))}
|
|
13
13
|
function R(a,b,d,e,c){var g="";null!=d&&(g=(""+d).replace(J,"$\x26/")+"/");b=L(b,g,e,c);null==a||N(a,"",Q,b);M(b)}var S={forEach:function(a,b,d){if(null==a)return a;b=L(null,null,b,d);null==a||N(a,"",P,b);M(b)},map:function(a,b,d){if(null==a)return a;var e=[];R(a,e,null,b,d);return e},count:function(a){return null==a?0:N(a,"",r.thatReturnsNull,null)},toArray:function(a){var b=[];R(a,b,null,r.thatReturnsArgument);return b}};
|
|
14
|
-
module.exports={Children:{map:S.map,forEach:S.forEach,count:S.count,toArray:S.toArray,only:function(a){G.isValidElement(a)?void 0:t("143");return a}},Component:B.Component,PureComponent:B.PureComponent,unstable_AsyncComponent:B.AsyncComponent,createElement:G.createElement,cloneElement:G.cloneElement,isValidElement:G.isValidElement,createFactory:G.createFactory,version:"16.0.0-rc.
|
|
14
|
+
module.exports={Children:{map:S.map,forEach:S.forEach,count:S.count,toArray:S.toArray,only:function(a){G.isValidElement(a)?void 0:t("143");return a}},Component:B.Component,PureComponent:B.PureComponent,unstable_AsyncComponent:B.AsyncComponent,createElement:G.createElement,cloneElement:G.cloneElement,isValidElement:G.isValidElement,createFactory:G.createFactory,version:"16.0.0-rc.2",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:C}};
|
package/index.js
CHANGED
|
@@ -8,8 +8,8 @@ function testMinificationUsedDCE() {
|
|
|
8
8
|
try {
|
|
9
9
|
// use scoped variable for our initial test, in case
|
|
10
10
|
// 'top-level' mangling is not enabled.
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
var source = testMinificationUsedDCE.toString();
|
|
12
|
+
var longVariableName = true;
|
|
13
13
|
if (longVariableName && source.match(/longVariableName/g).length === 3) {
|
|
14
14
|
// We are not minified.
|
|
15
15
|
// This might be a Node environment where DCE is not expected anyway.
|
package/package.json
CHANGED
package/umd/react.development.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react.development.js v16.0.0-rc.
|
|
2
|
+
* react.development.js v16.0.0-rc.2
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
(function (global, factory) {
|
|
@@ -1247,7 +1247,7 @@ var ReactChildren_1 = ReactChildren;
|
|
|
1247
1247
|
* @providesModule ReactVersion
|
|
1248
1248
|
*/
|
|
1249
1249
|
|
|
1250
|
-
var ReactVersion = '16.0.0-rc.
|
|
1250
|
+
var ReactVersion = '16.0.0-rc.2';
|
|
1251
1251
|
|
|
1252
1252
|
/**
|
|
1253
1253
|
* Returns the first child in a collection of children and verifies that there
|
|
@@ -10,4 +10,4 @@ var k=B.prototype=new C;k.constructor=B;H(k,r.prototype);k.isPureReactComponent=
|
|
|
10
10
|
b){return n(a.type,b,a.ref,a._self,a._source,a._owner,a.props)};n.cloneElement=function(a,b,c){var d=H({},a.props),e=a.key,f=a.ref,g=a._self,h=a._source,k=a._owner;if(null!=b){void 0!==b.ref&&(f=b.ref,k=I.current);void 0!==b.key&&(e=""+b.key);if(a.type&&a.type.defaultProps)var m=a.type.defaultProps;for(l in b)P.call(b,l)&&!Q.hasOwnProperty(l)&&(d[l]=void 0===b[l]&&void 0!==m?m[l]:b[l])}var l=arguments.length-2;if(1===l)d.children=c;else if(1<l){m=Array(l);for(var p=0;p<l;p++)m[p]=arguments[p+2];d.children=
|
|
11
11
|
m}return n(a.type,e,f,g,h,k,d)};n.isValidElement=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===J};var t=n;q.thatReturns=v;q.thatReturnsFalse=v(!1);q.thatReturnsTrue=v(!0);q.thatReturnsNull=v(null);q.thatReturnsThis=function(){return this};q.thatReturnsArgument=function(a){return a};var G=q,M="function"===typeof Symbol&&Symbol.iterator,S="function"===typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103,N=/\/+/g,w=[];return{Children:{map:function(a,b,c){if(null==a)return a;
|
|
12
12
|
var d=[];F(a,d,null,b,c);return d},forEach:function(a,b,c){if(null==a)return a;b=K(null,null,b,c);null==a||u(a,"",T,b);L(b)},count:function(a){return null==a?0:u(a,"",G.thatReturnsNull,null)},toArray:function(a){var b=[];F(a,b,null,G.thatReturnsArgument);return b},only:function(a){t.isValidElement(a)?void 0:y("143");return a}},Component:r,PureComponent:B,unstable_AsyncComponent:D,createElement:t.createElement,cloneElement:t.cloneElement,isValidElement:t.isValidElement,createFactory:t.createFactory,
|
|
13
|
-
version:"16.0.0-rc.
|
|
13
|
+
version:"16.0.0-rc.2",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:I}}}"object"===typeof exports&&"undefined"!==typeof module?module.exports=x():"function"===typeof define&&define.amd?define(x):this.React=x();
|