Socket
Socket
Sign inDemoInstall

react-dom

Package Overview
Dependencies
Maintainers
5
Versions
1886
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 19.0.0-rc-8971381549-20240625 to 19.0.0-rc-8b08e99e-20240713

21

cjs/react-dom-test-utils.development.js

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

(function () {
function error(format) {
for (
var _len2 = arguments.length,
args = Array(1 < _len2 ? _len2 - 1 : 0),
_key2 = 1;
_key2 < _len2;
_key2++
)
args[_key2 - 1] = arguments[_key2];
_len2 = format;
_key2 = Error("react-stack-top-frame");
ReactSharedInternals.getCurrentStack &&
((_key2 = ReactSharedInternals.getCurrentStack(_key2)),
"" !== _key2 && ((_len2 += "%s"), (args = args.concat([_key2]))));
args.unshift(_len2);
Function.prototype.apply.call(console.error, console, args);
}
var React = require("react"),
ReactSharedInternals =
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
didWarnAboutUsingAct = !1;

@@ -39,3 +20,3 @@ exports.act = function (callback) {

((didWarnAboutUsingAct = !0),
error(
console.error(
"`ReactDOMTestUtils.act` is deprecated in favor of `React.act`. Import `act` from `react` instead of `react-dom/test-utils`. See https://react.dev/warnings/react-dom-test-utils for more info."

@@ -42,0 +23,0 @@ ));

57

cjs/react-dom.development.js

@@ -15,19 +15,2 @@ /**

function noop() {}
function error(format) {
for (
var _len2 = arguments.length,
args = Array(1 < _len2 ? _len2 - 1 : 0),
_key2 = 1;
_key2 < _len2;
_key2++
)
args[_key2 - 1] = arguments[_key2];
_len2 = format;
_key2 = Error("react-stack-top-frame");
ReactSharedInternals.getCurrentStack &&
((_key2 = ReactSharedInternals.getCurrentStack(_key2)),
"" !== _key2 && ((_len2 += "%s"), (args = args.concat([_key2]))));
args.unshift(_len2);
Function.prototype.apply.call(console.error, console, args);
}
function testStringCoercion(value) {

@@ -46,3 +29,3 @@ return "" + value;

JSCompiler_inline_result &&
(error(
(console.error(
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",

@@ -94,3 +77,3 @@ ("function" === typeof Symbol &&

null === dispatcher &&
error(
console.error(
"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."

@@ -124,5 +107,5 @@ );

},
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
ReactSharedInternals =
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
REACT_PORTAL_TYPE = Symbol.for("react.portal");
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
("function" === typeof Map &&

@@ -135,3 +118,3 @@ null != Map.prototype &&

"function" === typeof Set.prototype.forEach) ||
error(
console.error(
"React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"

@@ -163,3 +146,3 @@ );

Internals.d.f() &&
error(
console.error(
"flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."

@@ -172,3 +155,3 @@ );

? null != options && "object" !== typeof options
? error(
? console.error(
"ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",

@@ -179,7 +162,7 @@ getValueDescriptorExpectingEnumForWarning(options)

"string" !== typeof options.crossOrigin &&
error(
console.error(
"ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",
getValueDescriptorExpectingObjectForWarning(options.crossOrigin)
)
: error(
: console.error(
"ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",

@@ -202,3 +185,3 @@ getValueDescriptorExpectingObjectForWarning(href)

if ("string" !== typeof href || !href)
error(
console.error(
"ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",

@@ -210,7 +193,7 @@ getValueDescriptorExpectingObjectForWarning(href)

"object" === typeof options && options.hasOwnProperty("crossOrigin")
? error(
? console.error(
"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
getValueDescriptorExpectingEnumForWarning(options)
)
: error(
: console.error(
"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",

@@ -225,3 +208,3 @@ getValueDescriptorExpectingEnumForWarning(options)

? null == options || "object" !== typeof options
? error(
? console.error(
"ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",

@@ -232,7 +215,7 @@ getValueDescriptorExpectingEnumForWarning(options)

"script" !== options.as &&
error(
console.error(
'ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',
getValueDescriptorExpectingEnumForWarning(options.as)
)
: error(
: console.error(
"ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",

@@ -295,3 +278,3 @@ getValueDescriptorExpectingObjectForWarning(href)

if (encountered)
error(
console.error(
"ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",

@@ -311,3 +294,3 @@ encountered

getValueDescriptorExpectingEnumForWarning(encountered)),
error(
console.error(
'ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',

@@ -354,3 +337,3 @@ encountered,

encountered &&
error(
console.error(
'ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',

@@ -416,3 +399,3 @@ encountered

encountered &&
error(
console.error(
'ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',

@@ -452,3 +435,3 @@ encountered

};
exports.version = "19.0.0-rc-8971381549-20240625";
exports.version = "19.0.0-rc-8b08e99e-20240713";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&

@@ -455,0 +438,0 @@ "function" ===

@@ -210,2 +210,2 @@ /**

};
exports.version = "19.0.0-rc-8971381549-20240625";
exports.version = "19.0.0-rc-8b08e99e-20240713";

@@ -15,19 +15,2 @@ /**

function noop() {}
function error(format) {
for (
var _len2 = arguments.length,
args = Array(1 < _len2 ? _len2 - 1 : 0),
_key2 = 1;
_key2 < _len2;
_key2++
)
args[_key2 - 1] = arguments[_key2];
_len2 = format;
_key2 = Error("react-stack-top-frame");
ReactSharedInternalsServer.getCurrentStack &&
((_key2 = ReactSharedInternalsServer.getCurrentStack(_key2)),
"" !== _key2 && ((_len2 += "%s"), (args = args.concat([_key2]))));
args.unshift(_len2);
Function.prototype.apply.call(console.error, console, args);
}
function getCrossOriginStringAs(as, input) {

@@ -79,6 +62,4 @@ if ("font" === as) return "";

findDOMNode: null
},
ReactSharedInternalsServer =
React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
if (!ReactSharedInternalsServer)
};
if (!React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)
throw Error(

@@ -94,3 +75,3 @@ 'The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.'

"function" === typeof Set.prototype.forEach) ||
error(
console.error(
"React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"

@@ -103,3 +84,3 @@ );

? null != options && "object" !== typeof options
? error(
? console.error(
"ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",

@@ -110,7 +91,7 @@ getValueDescriptorExpectingEnumForWarning(options)

"string" !== typeof options.crossOrigin &&
error(
console.error(
"ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",
getValueDescriptorExpectingObjectForWarning(options.crossOrigin)
)
: error(
: console.error(
"ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",

@@ -133,3 +114,3 @@ getValueDescriptorExpectingObjectForWarning(href)

if ("string" !== typeof href || !href)
error(
console.error(
"ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",

@@ -141,7 +122,7 @@ getValueDescriptorExpectingObjectForWarning(href)

"object" === typeof options && options.hasOwnProperty("crossOrigin")
? error(
? console.error(
"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
getValueDescriptorExpectingEnumForWarning(options)
)
: error(
: console.error(
"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",

@@ -156,3 +137,3 @@ getValueDescriptorExpectingEnumForWarning(options)

? null == options || "object" !== typeof options
? error(
? console.error(
"ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",

@@ -163,7 +144,7 @@ getValueDescriptorExpectingEnumForWarning(options)

"script" !== options.as &&
error(
console.error(
'ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',
getValueDescriptorExpectingEnumForWarning(options.as)
)
: error(
: console.error(
"ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",

@@ -226,3 +207,3 @@ getValueDescriptorExpectingObjectForWarning(href)

if (encountered)
error(
console.error(
"ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",

@@ -242,3 +223,3 @@ encountered

getValueDescriptorExpectingEnumForWarning(encountered)),
error(
console.error(
'ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',

@@ -285,3 +266,3 @@ encountered,

encountered &&
error(
console.error(
'ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',

@@ -347,3 +328,3 @@ encountered

encountered &&
error(
console.error(
'ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',

@@ -371,3 +352,3 @@ encountered

};
exports.version = "19.0.0-rc-8971381549-20240625";
exports.version = "19.0.0-rc-8b08e99e-20240713";
})();

@@ -152,2 +152,2 @@ /**

};
exports.version = "19.0.0-rc-8971381549-20240625";
exports.version = "19.0.0-rc-8b08e99e-20240713";
{
"name": "react-dom",
"version": "19.0.0-rc-8971381549-20240625",
"version": "19.0.0-rc-8b08e99e-20240713",
"description": "React package for working with the DOM.",

@@ -20,6 +20,6 @@ "main": "index.js",

"dependencies": {
"scheduler": "0.25.0-rc-8971381549-20240625"
"scheduler": "0.25.0-rc-8b08e99e-20240713"
},
"peerDependencies": {
"react": "19.0.0-rc-8971381549-20240625"
"react": "19.0.0-rc-8b08e99e-20240713"
},

@@ -26,0 +26,0 @@ "files": [

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

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

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

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc