react-scrollbar-size
Advanced tools
Comparing version 3.0.0 to 3.0.1
## HEAD | ||
## 3.0.1 | ||
###### _2020-07-25_ | ||
- Internalized `debounce` function ([#30](https://github.com/STORIS/react-scrollbar-size/pull/30) by [@shawnmcknight](https://github.com/shawnmcknight)) | ||
- Repo now has zero production dependencies! | ||
## 3.0.0 | ||
###### _2020-07-18_ | ||
**BREAKING CHANGE** | ||
- Library has been completely rewritten in TypeScript, complies with React >=16.8, and all tooling has been updated (#11) @shawnmcknight | ||
- Library has been completely rewritten in TypeScript, complies with React >=16.8, and all tooling has been updated ([#11](https://github.com/STORIS/react-scrollbar-size/pull/11) by [@shawnmcknight](https://github.com/shawnmcknight)) | ||
- The API has been changed significantly; there are no longer separate `onLoad` and `onChange` props in favor of a single `onChange` prop. The callback for `onChange` returns `height` and `width` instead of `scrollbarHeight` and `scrollbarWidth`. | ||
@@ -12,3 +17,3 @@ | ||
**BREAKING CHANGE** | ||
- Library has been completely rewritten in TypeScript, complies with React >=16.8, and all tooling has been updated (#11) @shawnmcknight | ||
- Library has been completely rewritten in TypeScript, complies with React >=16.8, and all tooling has been updated ([#11](https://github.com/STORIS/react-scrollbar-size/pull/11) by [@shawnmcknight](https://github.com/shawnmcknight)) | ||
- The API has been changed significantly; there are no longer separate `onLoad` and `onChange` props in favor of a single `onChange` prop. The callback for `onChange` returns `height` and `width` instead of `scrollbarHeight` and `scrollbarWidth`. | ||
@@ -18,5 +23,5 @@ | ||
###### _2020-01-31_ | ||
- Lodash as a peerDependency was causing missing peerDependency errors. Lodash peerDep replaced with stifle dep (#7) @shawnmcknight | ||
- Bump several dependency versions @shawnmcknight | ||
- Configure npm to not generate package-lock file @shawnmcknight | ||
- Lodash as a peerDependency was causing missing peerDependency errors. Lodash peerDep replaced with stifle dep (#7 by [@shawnmcknight](https://github.com/shawnmcknight)) | ||
- Bump several dependency versions | ||
- Configure npm to not generate package-lock file | ||
@@ -27,4 +32,4 @@ ## 2.0.0 | ||
Major version bump to facilitate new dependency requirements: | ||
- Make react a peerDependency to avoid running module duplication (#3) @shawnmcknight | ||
- Make lodash a peerDependency due to its common use and avoid inflating build size unnecessarily @shawnmcknight | ||
- Make react a peerDependency to avoid running module duplication (#3 by [@shawnmcknight](https://github.com/shawnmcknight)) | ||
- Make lodash a peerDependency due to its common use and avoid inflating build size unnecessarily | ||
@@ -34,8 +39,8 @@ ## 1.0.2 | ||
###### _2017-05-28_ | ||
- Remove separate lodash modules in favor of direct import of functions @shawnmcknight | ||
- Add support for prettier and update libraries to conform to rules @shawnmcknight | ||
- Update all dependencies to latest version and make updates to conform to API changes @shawnmcknight | ||
- Update all devDependencies to latest version and make updates to conform to API changes @shawnmcknight | ||
- Eliminate usage of lodash isEqual in favor of separate instance variables @shawnmcknight | ||
- Updated test suite to check for returned values rather than simply calling @shawnmcknight | ||
- Remove separate lodash modules in favor of direct import of functions | ||
- Add support for prettier and update libraries to conform to rules | ||
- Update all dependencies to latest version and make updates to conform to API changes | ||
- Update all devDependencies to latest version and make updates to conform to API changes | ||
- Eliminate usage of lodash isEqual in favor of separate instance variables | ||
- Updated test suite to check for returned values rather than simply calling | ||
@@ -45,3 +50,3 @@ ## 1.0.1 | ||
###### _2017-04-26_ | ||
- Cancel throttled events when unmounting component @shawnmcknight | ||
- Cancel throttled events when unmounting component | ||
@@ -51,7 +56,7 @@ ## 1.0.0 | ||
###### _2017-04-17_ | ||
- Add unit tests through mocha/chai/enzyme to reach 100% code coverage @shawnmcknight | ||
- Add code coverage tooling through istanbul/nyc @shawnmcknight | ||
- Update to React separate prop-types package @shawnmcknight | ||
- Update all dependencies to latest versions @shawnmcknight | ||
- Correct instruction link in README @shawnmcknight | ||
- Add unit tests through mocha/chai/enzyme to reach 100% code coverage | ||
- Add code coverage tooling through istanbul/nyc | ||
- Update to React separate prop-types package | ||
- Update all dependencies to latest versions | ||
- Correct instruction link in README | ||
@@ -58,0 +63,0 @@ ## 0.1.0 |
{ | ||
"name": "react-scrollbar-size", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "React component to calculate the size of browser scrollbars", | ||
@@ -23,5 +23,3 @@ "main": "index.js", | ||
}, | ||
"dependencies": { | ||
"lodash.debounce": "^4.0.8" | ||
} | ||
"dependencies": {} | ||
} |
@@ -10,6 +10,6 @@ "use strict"; | ||
var _lodash = _interopRequireDefault(require("lodash.debounce")); | ||
var _react = _interopRequireWildcard(require("react")); | ||
var _utils = require("./utils"); | ||
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; } | ||
@@ -19,4 +19,2 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** Styles for the div that will be generated for measuring scrollbar size */ | ||
@@ -61,3 +59,3 @@ var styles = { | ||
(0, _react.useEffect)(function () { | ||
var handleResize = (0, _lodash.default)(function () { | ||
var handleResize = (0, _utils.debounce)(function () { | ||
var prevHeight = height.current; | ||
@@ -64,0 +62,0 @@ var prevWidth = width.current; |
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
16042
1
12
151
- Removedlodash.debounce@^4.0.8
- Removedlodash.debounce@4.0.8(transitive)