Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react

Package Overview
Dependencies
Maintainers
4
Versions
2121
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 19.0.0-rc-65a56d0e-20241020 to 19.0.0-rc-65e06cb7-20241218

31

cjs/react-jsx-dev-runtime.development.js

@@ -351,9 +351,2 @@ /**

}
function hasValidRef(config) {
if (hasOwnProperty.call(config, "ref")) {
var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
if (getter && getter.isReactWarning) return !1;
}
return void 0 !== config.ref;
}
function hasValidKey(config) {

@@ -391,4 +384,4 @@ if (hasOwnProperty.call(config, "key")) {

}
function ReactElement(type, key, _ref, self, source, owner, props) {
_ref = props.ref;
function ReactElement(type, key, self, source, owner, props) {
self = props.ref;
type = {

@@ -401,3 +394,3 @@ $$typeof: REACT_ELEMENT_TYPE,

};
null !== (void 0 !== _ref ? _ref : null)
null !== (void 0 !== self ? self : null)
? Object.defineProperty(type, "ref", {

@@ -521,3 +514,2 @@ enumerable: !1,

(checkKeyStringCoercion(config.key), (children = "" + config.key));
hasValidRef(config);
if ("key" in config) {

@@ -529,16 +521,9 @@ maybeKey = {};

children &&
((config =
defineKeyPropWarningGetter(
maybeKey,
"function" === typeof type
? type.displayName || type.name || "Unknown"
: type),
children && defineKeyPropWarningGetter(maybeKey, config));
return ReactElement(
type,
children,
null,
self,
source,
getOwner(),
maybeKey
);
: type
);
return ReactElement(type, children, self, source, getOwner(), maybeKey);
}

@@ -545,0 +530,0 @@ function validateChildKeys(node, parentType) {

@@ -351,9 +351,2 @@ /**

}
function hasValidRef(config) {
if (hasOwnProperty.call(config, "ref")) {
var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
if (getter && getter.isReactWarning) return !1;
}
return void 0 !== config.ref;
}
function hasValidKey(config) {

@@ -391,4 +384,4 @@ if (hasOwnProperty.call(config, "key")) {

}
function ReactElement(type, key, _ref, self, source, owner, props) {
_ref = props.ref;
function ReactElement(type, key, self, source, owner, props) {
self = props.ref;
type = {

@@ -401,3 +394,3 @@ $$typeof: REACT_ELEMENT_TYPE,

};
null !== (void 0 !== _ref ? _ref : null)
null !== (void 0 !== self ? self : null)
? Object.defineProperty(type, "ref", {

@@ -521,3 +514,2 @@ enumerable: !1,

(checkKeyStringCoercion(config.key), (children = "" + config.key));
hasValidRef(config);
if ("key" in config) {

@@ -529,16 +521,9 @@ maybeKey = {};

children &&
((config =
defineKeyPropWarningGetter(
maybeKey,
"function" === typeof type
? type.displayName || type.name || "Unknown"
: type),
children && defineKeyPropWarningGetter(maybeKey, config));
return ReactElement(
type,
children,
null,
self,
source,
getOwner(),
maybeKey
);
: type
);
return ReactElement(type, children, self, source, getOwner(), maybeKey);
}

@@ -545,0 +530,0 @@ function validateChildKeys(node, parentType) {

@@ -351,9 +351,2 @@ /**

}
function hasValidRef(config) {
if (hasOwnProperty.call(config, "ref")) {
var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
if (getter && getter.isReactWarning) return !1;
}
return void 0 !== config.ref;
}
function hasValidKey(config) {

@@ -391,4 +384,4 @@ if (hasOwnProperty.call(config, "key")) {

}
function ReactElement(type, key, _ref, self, source, owner, props) {
_ref = props.ref;
function ReactElement(type, key, self, source, owner, props) {
self = props.ref;
type = {

@@ -401,3 +394,3 @@ $$typeof: REACT_ELEMENT_TYPE,

};
null !== (void 0 !== _ref ? _ref : null)
null !== (void 0 !== self ? self : null)
? Object.defineProperty(type, "ref", {

@@ -521,3 +514,2 @@ enumerable: !1,

(checkKeyStringCoercion(config.key), (children = "" + config.key));
hasValidRef(config);
if ("key" in config) {

@@ -529,16 +521,9 @@ maybeKey = {};

children &&
((config =
defineKeyPropWarningGetter(
maybeKey,
"function" === typeof type
? type.displayName || type.name || "Unknown"
: type),
children && defineKeyPropWarningGetter(maybeKey, config));
return ReactElement(
type,
children,
null,
self,
source,
getOwner(),
maybeKey
);
: type
);
return ReactElement(type, children, self, source, getOwner(), maybeKey);
}

@@ -545,0 +530,0 @@ function validateChildKeys(node, parentType) {

@@ -351,9 +351,2 @@ /**

}
function hasValidRef(config) {
if (hasOwnProperty.call(config, "ref")) {
var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
if (getter && getter.isReactWarning) return !1;
}
return void 0 !== config.ref;
}
function hasValidKey(config) {

@@ -391,4 +384,4 @@ if (hasOwnProperty.call(config, "key")) {

}
function ReactElement(type, key, _ref, self, source, owner, props) {
_ref = props.ref;
function ReactElement(type, key, self, source, owner, props) {
self = props.ref;
type = {

@@ -401,3 +394,3 @@ $$typeof: REACT_ELEMENT_TYPE,

};
null !== (void 0 !== _ref ? _ref : null)
null !== (void 0 !== self ? self : null)
? Object.defineProperty(type, "ref", {

@@ -521,3 +514,2 @@ enumerable: !1,

(checkKeyStringCoercion(config.key), (children = "" + config.key));
hasValidRef(config);
if ("key" in config) {

@@ -529,16 +521,9 @@ maybeKey = {};

children &&
((config =
defineKeyPropWarningGetter(
maybeKey,
"function" === typeof type
? type.displayName || type.name || "Unknown"
: type),
children && defineKeyPropWarningGetter(maybeKey, config));
return ReactElement(
type,
children,
null,
self,
source,
getOwner(),
maybeKey
);
: type
);
return ReactElement(type, children, self, source, getOwner(), maybeKey);
}

@@ -545,0 +530,0 @@ function validateChildKeys(node, parentType) {

@@ -418,9 +418,2 @@ /**

}
function hasValidRef(config) {
if (hasOwnProperty.call(config, "ref")) {
var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
if (getter && getter.isReactWarning) return !1;
}
return void 0 !== config.ref;
}
function hasValidKey(config) {

@@ -458,4 +451,4 @@ if (hasOwnProperty.call(config, "key")) {

}
function ReactElement(type, key, _ref, self, source, owner, props) {
_ref = props.ref;
function ReactElement(type, key, self, source, owner, props) {
self = props.ref;
type = {

@@ -468,3 +461,3 @@ $$typeof: REACT_ELEMENT_TYPE,

};
null !== (void 0 !== _ref ? _ref : null)
null !== (void 0 !== self ? self : null)
? Object.defineProperty(type, "ref", {

@@ -495,3 +488,2 @@ enumerable: !1,

newKey,
null,
void 0,

@@ -1085,2 +1077,7 @@ void 0,

ReactSharedInternals;
exports.__COMPILER_RUNTIME = {
c: function (size) {
return resolveDispatcher().useMemoCache(size);
}
};
exports.act = function (callback) {

@@ -1212,7 +1209,22 @@ var prevActQueue = ReactSharedInternals.actQueue,

owner = element._owner;
if (null != config)
for (propName in (hasValidRef(config) && (owner = getOwner()),
if (null != config) {
var JSCompiler_inline_result;
a: {
if (
hasOwnProperty.call(config, "ref") &&
(JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
config,
"ref"
).get) &&
JSCompiler_inline_result.isReactWarning
) {
JSCompiler_inline_result = !1;
break a;
}
JSCompiler_inline_result = void 0 !== config.ref;
}
JSCompiler_inline_result && (owner = getOwner());
hasValidKey(config) &&
(checkKeyStringCoercion(config.key), (key = "" + config.key)),
config))
(checkKeyStringCoercion(config.key), (key = "" + config.key));
for (propName in config)
!hasOwnProperty.call(config, propName) ||

@@ -1224,18 +1236,12 @@ "key" === propName ||

(props[propName] = config[propName]);
}
var propName = arguments.length - 2;
if (1 === propName) props.children = children;
else if (1 < propName) {
for (var childArray = Array(propName), i = 0; i < propName; i++)
childArray[i] = arguments[i + 2];
props.children = childArray;
JSCompiler_inline_result = Array(propName);
for (var i = 0; i < propName; i++)
JSCompiler_inline_result[i] = arguments[i + 2];
props.children = JSCompiler_inline_result;
}
props = ReactElement(
element.type,
key,
null,
void 0,
void 0,
owner,
props
);
props = ReactElement(element.type, key, void 0, void 0, owner, props);
for (key = 2; key < arguments.length; key++)

@@ -1295,2 +1301,3 @@ validateChildKeys(arguments[key], props.type);

}
var propName;
i = {};

@@ -1306,3 +1313,2 @@ typeString = null;

)),
hasValidRef(config),
hasValidKey(config) &&

@@ -1331,18 +1337,10 @@ (checkKeyStringCoercion(config.key), (typeString = "" + config.key)),

void 0 === i[propName] && (i[propName] = childrenLength[propName]);
if (typeString) {
var propName =
typeString &&
defineKeyPropWarningGetter(
i,
"function" === typeof type
? type.displayName || type.name || "Unknown"
: type;
typeString && defineKeyPropWarningGetter(i, propName);
}
return ReactElement(
type,
typeString,
null,
void 0,
void 0,
getOwner(),
i
);
: type
);
return ReactElement(type, typeString, void 0, void 0, getOwner(), i);
};

@@ -1533,3 +1531,3 @@ exports.createRef = function () {

};
exports.version = "19.0.0-rc-65a56d0e-20241020";
exports.version = "19.0.0-rc-65e06cb7-20241218";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&

@@ -1536,0 +1534,0 @@ "function" ===

@@ -77,4 +77,4 @@ /**

hasOwnProperty = Object.prototype.hasOwnProperty;
function ReactElement(type, key, _ref, self, source, owner, props) {
_ref = props.ref;
function ReactElement(type, key, self, source, owner, props) {
self = props.ref;
return {

@@ -84,3 +84,3 @@ $$typeof: REACT_ELEMENT_TYPE,

key: key,
ref: void 0 !== _ref ? _ref : null,
ref: void 0 !== self ? self : null,
props: props

@@ -93,3 +93,2 @@ };

newKey,
null,
void 0,

@@ -364,2 +363,7 @@ void 0,

ReactSharedInternals;
exports.__COMPILER_RUNTIME = {
c: function (size) {
return ReactSharedInternals.H.useMemoCache(size);
}
};
exports.act = function () {

@@ -398,3 +402,3 @@ throw Error("act(...) is not supported in production builds of React.");

}
return ReactElement(element.type, key, null, void 0, void 0, owner, props);
return ReactElement(element.type, key, void 0, void 0, owner, props);
};

@@ -439,3 +443,3 @@ exports.createContext = function (defaultValue) {

(props[propName] = childrenLength[propName]);
return ReactElement(type, key, null, void 0, void 0, null, props);
return ReactElement(type, key, void 0, void 0, null, props);
};

@@ -545,2 +549,2 @@ exports.createRef = function () {

};
exports.version = "19.0.0-rc-65a56d0e-20241020";
exports.version = "19.0.0-rc-65e06cb7-20241218";

@@ -380,9 +380,2 @@ /**

}
function hasValidRef(config) {
if (hasOwnProperty.call(config, "ref")) {
var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
if (getter && getter.isReactWarning) return !1;
}
return void 0 !== config.ref;
}
function hasValidKey(config) {

@@ -420,4 +413,4 @@ if (hasOwnProperty.call(config, "key")) {

}
function ReactElement(type, key, _ref, self, source, owner, props) {
_ref = props.ref;
function ReactElement(type, key, self, source, owner, props) {
self = props.ref;
type = {

@@ -430,3 +423,3 @@ $$typeof: REACT_ELEMENT_TYPE,

};
null !== (void 0 !== _ref ? _ref : null)
null !== (void 0 !== self ? self : null)
? Object.defineProperty(type, "ref", {

@@ -457,3 +450,2 @@ enumerable: !1,

newKey,
null,
void 0,

@@ -913,7 +905,22 @@ void 0,

owner = element._owner;
if (null != config)
for (propName in (hasValidRef(config) && (owner = getOwner()),
if (null != config) {
var JSCompiler_inline_result;
a: {
if (
hasOwnProperty.call(config, "ref") &&
(JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
config,
"ref"
).get) &&
JSCompiler_inline_result.isReactWarning
) {
JSCompiler_inline_result = !1;
break a;
}
JSCompiler_inline_result = void 0 !== config.ref;
}
JSCompiler_inline_result && (owner = getOwner());
hasValidKey(config) &&
(checkKeyStringCoercion(config.key), (key = "" + config.key)),
config))
(checkKeyStringCoercion(config.key), (key = "" + config.key));
for (propName in config)
!hasOwnProperty.call(config, propName) ||

@@ -925,18 +932,12 @@ "key" === propName ||

(props[propName] = config[propName]);
}
var propName = arguments.length - 2;
if (1 === propName) props.children = children;
else if (1 < propName) {
for (var childArray = Array(propName), i = 0; i < propName; i++)
childArray[i] = arguments[i + 2];
props.children = childArray;
JSCompiler_inline_result = Array(propName);
for (var i = 0; i < propName; i++)
JSCompiler_inline_result[i] = arguments[i + 2];
props.children = JSCompiler_inline_result;
}
props = ReactElement(
element.type,
key,
null,
void 0,
void 0,
owner,
props
);
props = ReactElement(element.type, key, void 0, void 0, owner, props);
for (key = 2; key < arguments.length; key++)

@@ -978,2 +979,3 @@ validateChildKeys(arguments[key], props.type);

}
var propName;
i = {};

@@ -989,3 +991,2 @@ typeString = null;

)),
hasValidRef(config),
hasValidKey(config) &&

@@ -1014,18 +1015,10 @@ (checkKeyStringCoercion(config.key), (typeString = "" + config.key)),

void 0 === i[propName] && (i[propName] = childrenLength[propName]);
if (typeString) {
var propName =
typeString &&
defineKeyPropWarningGetter(
i,
"function" === typeof type
? type.displayName || type.name || "Unknown"
: type;
typeString && defineKeyPropWarningGetter(i, propName);
}
return ReactElement(
type,
typeString,
null,
void 0,
void 0,
getOwner(),
i
);
: type
);
return ReactElement(type, typeString, void 0, void 0, getOwner(), i);
};

@@ -1129,3 +1122,3 @@ exports.createRef = function () {

};
exports.version = "19.0.0-rc-65a56d0e-20241020";
exports.version = "19.0.0-rc-65e06cb7-20241218";
})();

@@ -48,4 +48,4 @@ /**

assign = Object.assign;
function ReactElement(type, key, _ref, self, source, owner, props) {
_ref = props.ref;
function ReactElement(type, key, self, source, owner, props) {
self = props.ref;
return {

@@ -55,3 +55,3 @@ $$typeof: REACT_ELEMENT_TYPE,

key: key,
ref: void 0 !== _ref ? _ref : null,
ref: void 0 !== self ? self : null,
props: props

@@ -64,3 +64,2 @@ };

newKey,
null,
void 0,

@@ -370,3 +369,3 @@ void 0,

}
return ReactElement(element.type, key, null, void 0, void 0, owner, props);
return ReactElement(element.type, key, void 0, void 0, owner, props);
};

@@ -395,3 +394,3 @@ exports.createElement = function (type, config, children) {

(props[propName] = childrenLength[propName]);
return ReactElement(type, key, null, void 0, void 0, null, props);
return ReactElement(type, key, void 0, void 0, null, props);
};

@@ -432,2 +431,2 @@ exports.createRef = function () {

};
exports.version = "19.0.0-rc-65a56d0e-20241020";
exports.version = "19.0.0-rc-65e06cb7-20241218";

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

],
"version": "19.0.0-rc-65a56d0e-20241020",
"version": "19.0.0-rc-65e06cb7-20241218",
"homepage": "https://react.dev/",

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

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