react-scrollbars-custom
Advanced tools
Comparing version 4.0.9 to 4.0.10
# CHANGELOG | ||
## v4.0.10 | ||
- Refusing `is-fun` due to too big performance impact - no sense to use it with hte prop-types =\ | ||
- Refusing `is-number` for almost the same reasons; | ||
## v4.0.9 | ||
- ESM version now has ESNext lang level; | ||
- CJS version now has ES3 lang level; | ||
- Now using [is-fun](https://github.com/xobotyi/is-fun) to detect callable props; | ||
### v4.0.0-alpha.23 | ||
@@ -4,0 +15,0 @@ |
import { createElement, Component, createContext } from 'react'; | ||
import { oneOf, func, bool, number, string, object } from 'prop-types'; | ||
import cnb from 'cnbuilder'; | ||
import isFun from 'is-fun'; | ||
import isNum from 'is-number'; | ||
import { DraggableCore } from 'react-draggable'; | ||
@@ -121,2 +119,8 @@ import { zoomLevel } from 'zoom-level'; | ||
} | ||
function isFun(v) { | ||
return typeof v === "function"; | ||
} | ||
function isNum(v) { | ||
return typeof v === "number"; | ||
} | ||
/** | ||
@@ -123,0 +127,0 @@ * @description Return element's height without padding |
export declare function isUndef(v: any): boolean; | ||
export declare function isFun(v: any): boolean; | ||
export declare function isNum(v: any): boolean; | ||
/** | ||
@@ -3,0 +5,0 @@ * @description Return element's height without padding |
{ | ||
"name": "react-scrollbars-custom", | ||
"description": "The best React custom scrollbars component", | ||
"version": "4.0.9", | ||
"version": "4.0.10", | ||
"repository": { | ||
@@ -40,4 +40,2 @@ "type": "git", | ||
"cnbuilder": "^1.1.1", | ||
"is-fun": "^1.0.4", | ||
"is-number": "^7.0.0", | ||
"react-draggable": "^3.3.0", | ||
@@ -44,0 +42,0 @@ "zoom-level": "^1.2.1" |
Sorry, the diff of this file is too big to display
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
176743
5
3648
0
- Removedis-fun@^1.0.4
- Removedis-number@^7.0.0
- Removedis-fun@1.0.4(transitive)
- Removedis-number@7.0.0(transitive)