react-scrollbar-size
Advanced tools
Comparing version 4.0.0-rc.0 to 4.0.0
## HEAD | ||
## 4.0.0 | ||
###### _2021_05_15_ | ||
**BREAKING CHANGE** | ||
- Deprecated the legacy component syntax in favor of the custom hook syntax introduced in [#263](https://github.com/shawnmcknight/react-scrollbar-size/pull/263). The custom hook is now the default export from the library. See the [README](https://github.com/shawnmcknight/react-scrollbar-size/blob/main/README.md) for information on how to use the custom hook syntax. ([#309](https://github.com/shawnmcknight/react-scrollbar-size/pull/309) by [@shawnmcknight](https://github.com/shawnmcknight)) | ||
## 4.0.0-rc.0 | ||
@@ -4,0 +9,0 @@ ###### _2021_04_04_ |
{ | ||
"name": "react-scrollbar-size", | ||
"version": "4.0.0-rc.0", | ||
"version": "4.0.0", | ||
"description": "React hook to calculate the size of browser scrollbars", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -27,6 +27,4 @@ # React-Scrollbar-Size | ||
:information_source: The examples referenced here relate to the 4.0.0 release candidate, which can be installed using the `next` tag. Earlier versions of the custom hook syntax can be viewed [here](https://github.com/shawnmcknight/react-scrollbar-size/blob/3.2.0/README.md). Earlier versions of the legacy component syntax can be viewed [here](https://github.com/shawnmcknight/react-scrollbar-size/blob/3.1.1/README.md). | ||
```sh | ||
$ npm install react-scrollbar-size@next | ||
$ npm install react-scrollbar-size | ||
``` | ||
@@ -33,0 +31,0 @@ |
@@ -20,3 +20,3 @@ "use strict"; | ||
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } | ||
function _iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } | ||
@@ -23,0 +23,0 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
17037
0
99