Socket
Socket
Sign inDemoInstall

react

Package Overview
Dependencies
Maintainers
2
Versions
1977
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react - npm Package Compare versions

Comparing version 0.12.0-rc1 to 0.12.0

4

lib/React.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc