Socket
Socket
Sign inDemoInstall

react-dom

Package Overview
Dependencies
Maintainers
9
Versions
1914
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-dom - npm Package Compare versions

Comparing version 15.5.0-rc.1 to 15.5.0-rc.2

test-utils.js

7

lib/LinkedValueUtils.js

@@ -15,5 +15,8 @@ /**

var React = require('react/lib/React');
var ReactPropTypesSecret = require('./ReactPropTypesSecret');
var propTypesFactory = require('prop-types/factory');
var React = require('react/lib/React');
var PropTypes = propTypesFactory(React.isValidElement);
var invariant = require('fbjs/lib/invariant');

@@ -58,3 +61,3 @@ var warning = require('fbjs/lib/warning');

},
onChange: React.PropTypes.func
onChange: PropTypes.func
};

@@ -61,0 +64,0 @@

@@ -22,3 +22,3 @@ /**

var ReactReconciler = require('./ReactReconciler');
var ReactTestReconcileTransaction = require('./ReactTestReconcileTransaction');
var ReactReconcileTransaction = require('./ReactReconcileTransaction');
var ReactUpdates = require('./ReactUpdates');

@@ -30,6 +30,6 @@

// Ensure we've done the default injections.
// This might not be true in the case of a simple test that only requires React + ReactShallowRenderer.
ReactUpdates.injection.injectReconcileTransaction(ReactTestReconcileTransaction);
ReactUpdates.injection.injectBatchingStrategy(ReactDefaultBatchingStrategy);
function injectDefaults() {
ReactUpdates.injection.injectReconcileTransaction(ReactReconcileTransaction);
ReactUpdates.injection.injectBatchingStrategy(ReactDefaultBatchingStrategy);
}

@@ -103,2 +103,7 @@ var NoopInternalComponent = function () {

ReactShallowRenderer.prototype.render = function render(element, context) {
// Ensure we've done the default injections. This might not be true in the
// case of a simple test that only requires React and the TestUtils in
// conjunction with an inline-requires transform.
injectDefaults();
!React.isValidElement(element) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactShallowRenderer render(): Invalid component element.%s', typeof element === 'function' ? ' Instead of passing a component class, make sure to instantiate ' + 'it by passing it to React.createElement.' : '') : _prodInvariant('12', typeof element === 'function' ? ' Instead of passing a component class, make sure to instantiate ' + 'it by passing it to React.createElement.' : '') : void 0;

@@ -105,0 +110,0 @@ !(typeof element.type !== 'string') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactShallowRenderer render(): Shallow rendering works only with custom components, not primitives (%s). Instead of calling `.render(el)` and inspecting the rendered output, look at `el.props` directly instead.', element.type) : _prodInvariant('13', element.type) : void 0;

@@ -31,2 +31,3 @@ /**

var invariant = require('fbjs/lib/invariant');
var warning = require('fbjs/lib/warning');

@@ -42,6 +43,5 @@ var topLevelTypes = EventConstants.topLevelTypes;

function createRendererWithWarning() {
if (!hasWarnedAboutCreateRenderer) {
hasWarnedAboutCreateRenderer = true;
console.error('Shallow renderer has been moved to react-test-renderer/shallow. ' + 'Update references to remove this warning.');
}
process.env.NODE_ENV !== 'production' ? warning(hasWarnedAboutCreateRenderer, 'Shallow renderer has been moved to react-test-renderer/shallow. ' + 'Update references to remove this warning.') : void 0;
hasWarnedAboutCreateRenderer = true;
return new ReactShallowRenderer();

@@ -48,0 +48,0 @@ }

@@ -13,2 +13,2 @@ /**

module.exports = '15.5.0-rc.1';
module.exports = '15.5.0-rc.2';
{
"name": "react-dom",
"version": "15.5.0-rc.1",
"version": "15.5.0-rc.2",
"description": "React package for working with the DOM.",

@@ -18,6 +18,7 @@ "main": "index.js",

"loose-envify": "^1.1.0",
"object-assign": "^4.1.0"
"object-assign": "^4.1.0",
"prop-types": "~15.5.0"
},
"peerDependencies": {
"react": "^15.5.0-rc.1"
"react": "^15.5.0-rc.2"
},

@@ -31,3 +32,4 @@ "files": [

"index.js",
"server.js"
"server.js",
"test-utils.js"
],

@@ -34,0 +36,0 @@ "browserify": {

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