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 0.0.0-experimental-941e1b4a-20240729 to 0.0.0-experimental-9463d51e-20241219

21

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

@@ -116,9 +116,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) {

@@ -159,3 +152,2 @@ if (hasOwnProperty.call(config, "key")) {

key,
_ref,
self,

@@ -168,3 +160,3 @@ source,

) {
_ref = props.ref;
self = props.ref;
type = {

@@ -177,3 +169,3 @@ $$typeof: REACT_ELEMENT_TYPE,

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

@@ -264,3 +256,2 @@ enumerable: !1,

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

@@ -272,11 +263,11 @@ maybeKey = {};

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

@@ -283,0 +274,0 @@ source,

@@ -116,9 +116,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) {

@@ -159,3 +152,2 @@ if (hasOwnProperty.call(config, "key")) {

key,
_ref,
self,

@@ -168,3 +160,3 @@ source,

) {
_ref = props.ref;
self = props.ref;
type = {

@@ -177,3 +169,3 @@ $$typeof: REACT_ELEMENT_TYPE,

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

@@ -264,3 +256,2 @@ enumerable: !1,

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

@@ -272,11 +263,11 @@ maybeKey = {};

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

@@ -283,0 +274,0 @@ source,

@@ -116,9 +116,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) {

@@ -159,3 +152,2 @@ if (hasOwnProperty.call(config, "key")) {

key,
_ref,
self,

@@ -168,3 +160,3 @@ source,

) {
_ref = props.ref;
self = props.ref;
type = {

@@ -177,3 +169,3 @@ $$typeof: REACT_ELEMENT_TYPE,

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

@@ -264,3 +256,2 @@ enumerable: !1,

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

@@ -272,11 +263,11 @@ maybeKey = {};

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

@@ -283,0 +274,0 @@ source,

@@ -116,9 +116,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) {

@@ -159,3 +152,2 @@ if (hasOwnProperty.call(config, "key")) {

key,
_ref,
self,

@@ -168,3 +160,3 @@ source,

) {
_ref = props.ref;
self = props.ref;
type = {

@@ -177,3 +169,3 @@ $$typeof: REACT_ELEMENT_TYPE,

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

@@ -264,3 +256,2 @@ enumerable: !1,

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

@@ -272,11 +263,11 @@ maybeKey = {};

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

@@ -283,0 +274,0 @@ source,

@@ -162,9 +162,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) {

@@ -205,3 +198,2 @@ if (hasOwnProperty.call(config, "key")) {

key,
_ref,
self,

@@ -214,3 +206,3 @@ source,

) {
_ref = props.ref;
self = props.ref;
type = {

@@ -223,3 +215,3 @@ $$typeof: REACT_ELEMENT_TYPE,

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

@@ -262,3 +254,2 @@ enumerable: !1,

newKey,
null,
void 0,

@@ -613,3 +604,2 @@ void 0,

REACT_LAZY_TYPE = Symbol.for("react.lazy"),
REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for("react.debug_trace_mode"),
REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),

@@ -780,2 +770,7 @@ REACT_POSTPONE_TYPE = Symbol.for("react.postpone"),

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

@@ -911,7 +906,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) ||

@@ -923,8 +933,10 @@ "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;
}

@@ -934,3 +946,2 @@ props = ReactElement(

key,
null,
void 0,

@@ -971,2 +982,3 @@ void 0,

}
var propName;
i = {};

@@ -982,3 +994,2 @@ node = null;

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

@@ -1007,13 +1018,12 @@ (checkKeyStringCoercion(config.key), (node = "" + config.key)),

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

@@ -1041,2 +1051,3 @@ void 0,

};
exports.experimental_useResourceEffect = void 0;
exports.forwardRef = function (render) {

@@ -1137,6 +1148,5 @@ null != render && render.$$typeof === REACT_MEMO_TYPE

var prevTransition = ReactSharedInternals.T,
transition = {};
ReactSharedInternals.T = transition;
var currentTransition = ReactSharedInternals.T;
ReactSharedInternals.T._updatedFibers = new Set();
currentTransition = {};
ReactSharedInternals.T = currentTransition;
currentTransition._updatedFibers = new Set();
try {

@@ -1146,3 +1156,3 @@ var returnValue = scope(),

null !== onStartTransitionFinish &&
onStartTransitionFinish(transition, returnValue);
onStartTransitionFinish(currentTransition, returnValue);
"object" === typeof returnValue &&

@@ -1167,3 +1177,2 @@ null !== returnValue &&

exports.unstable_Activity = REACT_OFFSCREEN_TYPE;
exports.unstable_DebugTracingMode = REACT_DEBUG_TRACING_MODE_TYPE;
exports.unstable_SuspenseList = REACT_SUSPENSE_LIST_TYPE;

@@ -1253,3 +1262,3 @@ exports.unstable_getCacheForType = function (resourceType) {

};
exports.version = "19.0.0-experimental-941e1b4a-20240729";
exports.version = "19.1.0-experimental-9463d51e-20241219";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&

@@ -1256,0 +1265,0 @@ "function" ===

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

REACT_LAZY_TYPE = Symbol.for("react.lazy"),
REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for("react.debug_trace_mode"),
REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),

@@ -82,4 +81,4 @@ REACT_POSTPONE_TYPE = Symbol.for("react.postpone"),

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 {

@@ -89,3 +88,3 @@ $$typeof: REACT_ELEMENT_TYPE,

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

@@ -98,3 +97,2 @@ };

newKey,
null,
void 0,

@@ -372,2 +370,7 @@ void 0,

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

@@ -409,3 +412,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);
};

@@ -450,3 +453,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);
};

@@ -462,2 +465,3 @@ exports.createRef = function () {

};
exports.experimental_useResourceEffect = void 0;
exports.forwardRef = function (render) {

@@ -483,4 +487,4 @@ return { $$typeof: REACT_FORWARD_REF_TYPE, render: render };

var prevTransition = ReactSharedInternals.T,
transition = {};
ReactSharedInternals.T = transition;
currentTransition = {};
ReactSharedInternals.T = currentTransition;
try {

@@ -490,3 +494,3 @@ var returnValue = scope(),

null !== onStartTransitionFinish &&
onStartTransitionFinish(transition, returnValue);
onStartTransitionFinish(currentTransition, returnValue);
"object" === typeof returnValue &&

@@ -503,3 +507,2 @@ null !== returnValue &&

exports.unstable_Activity = REACT_OFFSCREEN_TYPE;
exports.unstable_DebugTracingMode = REACT_DEBUG_TRACING_MODE_TYPE;
exports.unstable_SuspenseList = REACT_SUSPENSE_LIST_TYPE;

@@ -576,2 +579,2 @@ exports.unstable_getCacheForType = function (resourceType) {

};
exports.version = "19.0.0-experimental-941e1b4a-20240729";
exports.version = "19.1.0-experimental-9463d51e-20241219";

@@ -124,9 +124,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) {

@@ -167,3 +160,2 @@ if (hasOwnProperty.call(config, "key")) {

key,
_ref,
self,

@@ -176,3 +168,3 @@ source,

) {
_ref = props.ref;
self = props.ref;
type = {

@@ -185,3 +177,3 @@ $$typeof: REACT_ELEMENT_TYPE,

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

@@ -224,3 +216,2 @@ enumerable: !1,

newKey,
null,
void 0,

@@ -513,5 +504,4 @@ void 0,

REACT_MEMO_TYPE = Symbol.for("react.memo"),
REACT_LAZY_TYPE = Symbol.for("react.lazy");
TaintRegistryObjects$1 = Symbol.for("react.debug_trace_mode");
var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),
REACT_POSTPONE_TYPE = Symbol.for("react.postpone"),

@@ -563,3 +553,3 @@ MAYBE_ITERATOR_SYMBOL = Symbol.iterator,

};
TaintRegistryValues$1 = Object.getPrototypeOf;
TaintRegistryObjects$1 = Object.getPrototypeOf;
var TaintRegistryObjects = ReactSharedInternals.TaintRegistryObjects,

@@ -570,3 +560,3 @@ TaintRegistryValues = ReactSharedInternals.TaintRegistryValues,

ReactSharedInternals.TaintRegistryPendingRequests,
TypedArrayConstructor = TaintRegistryValues$1(
TypedArrayConstructor = TaintRegistryObjects$1(
Uint32Array.prototype

@@ -675,7 +665,22 @@ ).constructor,

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

@@ -687,8 +692,10 @@ "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;
}

@@ -698,3 +705,2 @@ props = ReactElement(

key,
null,
void 0,

@@ -717,2 +723,3 @@ void 0,

}
var propName;
i = {};

@@ -728,3 +735,2 @@ node = null;

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

@@ -753,13 +759,12 @@ (checkKeyStringCoercion(config.key), (node = "" + config.key)),

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

@@ -934,6 +939,5 @@ void 0,

var prevTransition = ReactSharedInternals.T,
transition = {};
ReactSharedInternals.T = transition;
var currentTransition = ReactSharedInternals.T;
ReactSharedInternals.T._updatedFibers = new Set();
currentTransition = {};
ReactSharedInternals.T = currentTransition;
currentTransition._updatedFibers = new Set();
try {

@@ -943,3 +947,3 @@ var returnValue = scope(),

null !== onStartTransitionFinish &&
onStartTransitionFinish(transition, returnValue);
onStartTransitionFinish(currentTransition, returnValue);
"object" === typeof returnValue &&

@@ -963,3 +967,2 @@ null !== returnValue &&

};
exports.unstable_DebugTracingMode = TaintRegistryObjects$1;
exports.unstable_SuspenseList = REACT_SUSPENSE_TYPE;

@@ -999,3 +1002,3 @@ exports.unstable_getCacheForType = function (resourceType) {

};
exports.version = "19.0.0-experimental-941e1b4a-20240729";
exports.version = "19.1.0-experimental-9463d51e-20241219";
})();

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

REACT_LAZY_TYPE = Symbol.for("react.lazy"),
REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for("react.debug_trace_mode"),
REACT_POSTPONE_TYPE = Symbol.for("react.postpone"),

@@ -62,4 +61,4 @@ MAYBE_ITERATOR_SYMBOL = Symbol.iterator;

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 {

@@ -69,3 +68,3 @@ $$typeof: REACT_ELEMENT_TYPE,

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

@@ -78,3 +77,2 @@ };

newKey,
null,
void 0,

@@ -437,3 +435,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);
};

@@ -462,3 +460,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);
};

@@ -532,4 +530,4 @@ exports.createRef = function () {

var prevTransition = ReactSharedInternals.T,
transition = {};
ReactSharedInternals.T = transition;
currentTransition = {};
ReactSharedInternals.T = currentTransition;
try {

@@ -539,3 +537,3 @@ var returnValue = scope(),

null !== onStartTransitionFinish &&
onStartTransitionFinish(transition, returnValue);
onStartTransitionFinish(currentTransition, returnValue);
"object" === typeof returnValue &&

@@ -551,3 +549,2 @@ null !== returnValue &&

};
exports.unstable_DebugTracingMode = REACT_DEBUG_TRACING_MODE_TYPE;
exports.unstable_SuspenseList = REACT_SUSPENSE_TYPE;

@@ -579,2 +576,2 @@ exports.unstable_getCacheForType = function (resourceType) {

};
exports.version = "19.0.0-experimental-941e1b4a-20240729";
exports.version = "19.1.0-experimental-9463d51e-20241219";

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

],
"version": "0.0.0-experimental-941e1b4a-20240729",
"version": "0.0.0-experimental-9463d51e-20241219",
"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