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

rc-util

Package Overview
Dependencies
Maintainers
9
Versions
216
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-util - npm Package Compare versions

Comparing version 5.43.1 to 5.44.0

4

es/ref.js

@@ -44,2 +44,6 @@ import _typeof from "@babel/runtime/helpers/esm/typeof";

var _type$prototype, _nodeOrComponent$prot;
// React 19 no need `forwardRef` anymore. So just pass if is a React element.
if (isReactElement(nodeOrComponent) && nodeOrComponent.props.propertyIsEnumerable('ref')) {
return true;
}
var type = isMemo(nodeOrComponent) ? nodeOrComponent.type.type : nodeOrComponent.type;

@@ -46,0 +50,0 @@

@@ -51,2 +51,6 @@ "use strict";

var _type$prototype, _nodeOrComponent$prot;
// React 19 no need `forwardRef` anymore. So just pass if is a React element.
if (isReactElement(nodeOrComponent) && nodeOrComponent.props.propertyIsEnumerable('ref')) {
return true;
}
var type = (0, _reactIs.isMemo)(nodeOrComponent) ? nodeOrComponent.type.type : nodeOrComponent.type;

@@ -53,0 +57,0 @@

14

package.json
{
"name": "rc-util",
"version": "5.43.1",
"version": "5.44.0",
"description": "Common Utils For React Component",

@@ -30,3 +30,3 @@ "keywords": [

"prepare": "husky install",
"prepublishOnly": "npm run compile ",
"prepublishOnly": "npm run compile && np --yolo --no-publish",
"start": "dumi dev",

@@ -49,3 +49,3 @@ "test": "rc-test"

"@types/jest": "^29.4.0",
"@types/node": "^20.14.2",
"@types/node": "^22.5.5",
"@types/react": "^18.0.0",

@@ -62,6 +62,6 @@ "@types/react-dom": "^18.0.0",

"eslint-plugin-jest": "^28.2.0",
"eslint-plugin-unicorn": "^54.0.0",
"eslint-plugin-unicorn": "^55.0.0",
"father": "^4.1.3",
"glob": "^9.2.1",
"husky": "^8.0.3",
"husky": "^9.1.6",
"lint-staged": "^15.1.0",

@@ -73,4 +73,4 @@ "np": "^10.0.2",

"react-dom": "^18.0.0",
"react-19": "npm:react@19.0.0-rc-de68d2f4-20241204",
"react-dom-19": "npm:react-dom@19.0.0-rc-de68d2f4-20241204",
"react-19": "npm:react@19.0.0",
"react-dom-19": "npm:react-dom@19.0.0",
"typescript": "^5.3.2"

@@ -77,0 +77,0 @@ },

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