Comparing version 0.12.0-rc1 to 0.12.0
@@ -80,3 +80,3 @@ /** | ||
unmountComponentAtNode: ReactMount.unmountComponentAtNode, | ||
isValidClass: ReactLegacyElement.isValidFactory, | ||
isValidClass: ReactLegacyElement.isValidClass, | ||
isValidElement: ReactElement.isValidElement, | ||
@@ -183,4 +183,4 @@ withContext: ReactContext.withContext, | ||
// internal version. | ||
React.version = '0.12.0-rc1'; | ||
React.version = '0.12.0'; | ||
module.exports = React; |
@@ -88,3 +88,3 @@ /** | ||
* @param {*} key | ||
* @params {*} props | ||
* @param {*} props | ||
* @internal | ||
@@ -124,2 +124,8 @@ */ | ||
// We intentionally don't expose the function on the constructor property. | ||
// ReactElement should be indistinguishable from a plain object. | ||
ReactElement.prototype = { | ||
_isReactElement: true | ||
}; | ||
if ("production" !== process.env.NODE_ENV) { | ||
@@ -129,4 +135,2 @@ defineMutationMembrane(ReactElement.prototype); | ||
ReactElement.prototype._isReactElement = true; | ||
ReactElement.createElement = function(type, config, children) { | ||
@@ -143,3 +147,12 @@ var propName; | ||
ref = config.ref === undefined ? null : config.ref; | ||
key = config.key === undefined ? null : '' + config.key; | ||
if ("production" !== process.env.NODE_ENV) { | ||
("production" !== process.env.NODE_ENV ? warning( | ||
config.key !== null, | ||
'createElement(...): Encountered component with a `key` of null. In ' + | ||
'a future version, this will be treated as equivalent to the string ' + | ||
'\'null\'; instead, provide an explicit key or use undefined.' | ||
) : null); | ||
} | ||
// TODO: Change this back to `config.key === undefined` | ||
key = config.key == null ? null : '' + config.key; | ||
// Remaining properties are added to a new props object | ||
@@ -146,0 +159,0 @@ for (propName in config) { |
@@ -77,3 +77,3 @@ /** | ||
'Do not pass React.DOM.' + type.type + ' to JSX or createFactory. ' + | ||
'Use the string "' + type + '" instead.' | ||
'Use the string "' + type.type + '" instead.' | ||
) : null); | ||
@@ -231,4 +231,15 @@ } | ||
ReactLegacyElementFactory.isValidClass = function(factory) { | ||
if ("production" !== process.env.NODE_ENV) { | ||
("production" !== process.env.NODE_ENV ? warning( | ||
false, | ||
'isValidClass is deprecated and will be removed in a future release. ' + | ||
'Use a more specific validator instead.' | ||
) : null); | ||
} | ||
return ReactLegacyElementFactory.isValidFactory(factory); | ||
}; | ||
ReactLegacyElementFactory._isLegacyCallWarningEnabled = true; | ||
module.exports = ReactLegacyElementFactory; |
{ | ||
"name": "react", | ||
"description": "React is a JavaScript library for building user interfaces.", | ||
"version": "0.12.0-rc1", | ||
"version": "0.12.0", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "react" |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 3 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 2 instances in 1 package
2506230
64143
48
230