Comparing version 0.12.1 to 0.12.2
@@ -19,3 +19,2 @@ /** | ||
columnCount: true, | ||
fillOpacity: true, | ||
flex: true, | ||
@@ -32,3 +31,7 @@ flexGrow: true, | ||
zIndex: true, | ||
zoom: true | ||
zoom: true, | ||
// SVG-related properties | ||
fillOpacity: true, | ||
strokeOpacity: true | ||
}; | ||
@@ -35,0 +38,0 @@ |
@@ -91,3 +91,7 @@ /** | ||
form: MUST_USE_ATTRIBUTE, | ||
formAction: MUST_USE_ATTRIBUTE, | ||
formEncType: MUST_USE_ATTRIBUTE, | ||
formMethod: MUST_USE_ATTRIBUTE, | ||
formNoValidate: HAS_BOOLEAN_VALUE, | ||
formTarget: MUST_USE_ATTRIBUTE, | ||
frameBorder: MUST_USE_ATTRIBUTE, | ||
@@ -107,2 +111,4 @@ height: MUST_USE_ATTRIBUTE, | ||
manifest: MUST_USE_ATTRIBUTE, | ||
marginHeight: null, | ||
marginWidth: null, | ||
max: null, | ||
@@ -109,0 +115,0 @@ maxLength: MUST_USE_ATTRIBUTE, |
@@ -182,4 +182,4 @@ /** | ||
// internal version. | ||
React.version = '0.12.1'; | ||
React.version = '0.12.2'; | ||
module.exports = React; |
@@ -177,3 +177,3 @@ /** | ||
// Resolve default props | ||
if (type.defaultProps) { | ||
if (type && type.defaultProps) { | ||
var defaultProps = type.defaultProps; | ||
@@ -180,0 +180,0 @@ for (propName in defaultProps) { |
@@ -26,2 +26,3 @@ /** | ||
var monitorCodeUse = require("./monitorCodeUse"); | ||
var warning = require("./warning"); | ||
@@ -224,2 +225,11 @@ /** | ||
createElement: function(type, props, children) { | ||
// We warn in this case but don't throw. We expect the element creation to | ||
// succeed and there will likely be errors in render. | ||
("production" !== process.env.NODE_ENV ? warning( | ||
type != null, | ||
'React.createElement: type should not be null or undefined. It should ' + | ||
'be a string (for DOM elements) or a ReactClass (for composite ' + | ||
'components).' | ||
) : null); | ||
var element = ReactElement.createElement.apply(this, arguments); | ||
@@ -237,19 +247,21 @@ | ||
var name = type.displayName; | ||
if (type.propTypes) { | ||
checkPropTypes( | ||
name, | ||
type.propTypes, | ||
element.props, | ||
ReactPropTypeLocations.prop | ||
); | ||
if (type) { | ||
var name = type.displayName; | ||
if (type.propTypes) { | ||
checkPropTypes( | ||
name, | ||
type.propTypes, | ||
element.props, | ||
ReactPropTypeLocations.prop | ||
); | ||
} | ||
if (type.contextTypes) { | ||
checkPropTypes( | ||
name, | ||
type.contextTypes, | ||
element._context, | ||
ReactPropTypeLocations.context | ||
); | ||
} | ||
} | ||
if (type.contextTypes) { | ||
checkPropTypes( | ||
name, | ||
type.contextTypes, | ||
element._context, | ||
ReactPropTypeLocations.context | ||
); | ||
} | ||
return element; | ||
@@ -256,0 +268,0 @@ }, |
@@ -66,5 +66,5 @@ /** | ||
createInstanceForTag: createInstanceForTag, | ||
injection: ReactNativeComponentInjection, | ||
injection: ReactNativeComponentInjection | ||
}; | ||
module.exports = ReactNativeComponent; |
@@ -234,3 +234,3 @@ /** | ||
var ConvenienceConstructor = React.createClass({displayName: 'ConvenienceConstructor', | ||
var ConvenienceConstructor = React.createClass({displayName: "ConvenienceConstructor", | ||
render: function() { | ||
@@ -237,0 +237,0 @@ return React.createElement( |
{ | ||
"name": "react", | ||
"description": "React is a JavaScript library for building user interfaces.", | ||
"version": "0.12.1", | ||
"version": "0.12.2", | ||
"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
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
2551841
65390
1
48
230