🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

react

Package Overview
Dependencies
Maintainers
2
Versions
2304
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

to
19.2.0-canary-0038c501-20250429

30

cjs/react.development.js

@@ -501,2 +501,5 @@ /**

}
function releaseAsyncTransition() {
ReactSharedInternals.asyncTransitions--;
}
function noop() {}

@@ -664,4 +667,4 @@ function enqueueTask(task) {

S: null,
V: null,
actQueue: null,
asyncTransitions: 0,
isBatchingLegacy: !1,

@@ -1123,4 +1126,4 @@ didScheduleLegacyUpdate: !1,

currentTransition = {};
currentTransition._updatedFibers = new Set();
ReactSharedInternals.T = currentTransition;
currentTransition._updatedFibers = new Set();
try {

@@ -1134,3 +1137,5 @@ var returnValue = scope(),

"function" === typeof returnValue.then &&
returnValue.then(noop, reportGlobalError);
(ReactSharedInternals.asyncTransitions++,
returnValue.then(releaseAsyncTransition, releaseAsyncTransition),
returnValue.then(noop, reportGlobalError));
} catch (error) {

@@ -1147,2 +1152,10 @@ reportGlobalError(error);

)),
null !== prevTransition &&
null !== currentTransition.types &&
(null !== prevTransition.types &&
prevTransition.types !== currentTransition.types &&
console.error(
"We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."
),
(prevTransition.types = currentTransition.types)),
(ReactSharedInternals.T = prevTransition);

@@ -1181,3 +1194,3 @@ }

};
exports.useEffect = function (create, createDeps, update) {
exports.useEffect = function (create, deps) {
null == create &&

@@ -1187,8 +1200,3 @@ console.warn(

);
var dispatcher = resolveDispatcher();
if ("function" === typeof update)
throw Error(
"useEffect CRUD overload is not enabled in this build of React."
);
return dispatcher.useEffect(create, createDeps);
return resolveDispatcher().useEffect(create, deps);
};

@@ -1244,3 +1252,3 @@ exports.useId = function () {

};
exports.version = "19.1.0";
exports.version = "19.2.0-canary-0038c501-20250429";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&

@@ -1247,0 +1255,0 @@ "function" ===

@@ -75,3 +75,3 @@ /**

var isArrayImpl = Array.isArray,
ReactSharedInternals = { H: null, A: null, T: null, S: null, V: null },
ReactSharedInternals = { H: null, A: null, T: null, S: null },
hasOwnProperty = Object.prototype.hasOwnProperty;

@@ -476,3 +476,6 @@ function ReactElement(type, key, self, source, owner, props) {

} finally {
ReactSharedInternals.T = prevTransition;
null !== prevTransition &&
null !== currentTransition.types &&
(prevTransition.types = currentTransition.types),
(ReactSharedInternals.T = prevTransition);
}

@@ -499,9 +502,4 @@ };

};
exports.useEffect = function (create, createDeps, update) {
var dispatcher = ReactSharedInternals.H;
if ("function" === typeof update)
throw Error(
"useEffect CRUD overload is not enabled in this build of React."
);
return dispatcher.useEffect(create, createDeps);
exports.useEffect = function (create, deps) {
return ReactSharedInternals.H.useEffect(create, deps);
};

@@ -549,2 +547,2 @@ exports.useId = function () {

};
exports.version = "19.1.0";
exports.version = "19.2.0-canary-0038c501-20250429";

@@ -814,3 +814,3 @@ /**

};
exports.version = "19.1.0";
exports.version = "19.2.0-canary-0038c501-20250429";
})();

@@ -429,2 +429,2 @@ /**

};
exports.version = "19.1.0";
exports.version = "19.2.0-canary-0038c501-20250429";

@@ -7,3 +7,3 @@ {

],
"version": "19.1.0",
"version": "19.2.0-canary-0038c501-20250429",
"homepage": "https://react.dev/",

@@ -10,0 +10,0 @@ "bugs": "https://github.com/facebook/react/issues",