Comparing version 5.43.1 to 5.44.0
@@ -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 @@ |
{ | ||
"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 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
241115
7304