reakit-utils
Advanced tools
Comparing version 0.6.1 to 0.6.2
@@ -6,2 +6,13 @@ # Change Log | ||
## [0.6.2](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/compare/reakit-utils@0.6.1...reakit-utils@0.6.2) (2019-06-27) | ||
### Bug Fixes | ||
* Fix missing React Hooks deps ([b08b62c](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/commit/b08b62c)) | ||
## 0.6.1 (2019-06-23) | ||
@@ -8,0 +19,0 @@ |
@@ -1,1 +0,1 @@ | ||
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],r):r((e=e||self).ReakitUtils={},e.React)}(this,function(e,r){"use strict";function n(e){return"object"==typeof e&&null!=e}function t(e,r){return-1===r?e:[].concat(e.slice(0,r),e.slice(r+1))}var o="id-",u=r.createContext(function(e){return void 0===e&&(e=o),""+e+Math.random().toString(32).substr(2,6)});e.IdProvider=function(e){var n=e.children,t=e.unstable_prefix,i=void 0===t?"":t,f=r.useRef(0),a=r.useMemo(function(){return function(e){return void 0===e&&(e=o),""+i+e+ ++f.current}},[]);return r.createElement(u.Provider,{value:a},n)},e.createOnKeyDown=function(e){var r=void 0===e?{}:e,n=r.keyMap,t=r.onKey,o=r.stopPropagation,u=r.onKeyDown,i=r.shouldKeyDown,f=void 0===i?function(){return!0}:i,a=r.preventDefault,c=void 0===a||a;return function(e){if(n){var r="function"==typeof n?n(e):n,i="function"==typeof c?c(e):c,a="function"==typeof o?o(e):o;if(e.key in r){var l=r[e.key];if("function"==typeof l&&f(e))return i&&e.preventDefault(),a&&e.stopPropagation(),t&&t(e),void l(e)}u&&u(e)}}},e.cx=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return r.filter(Boolean).join(" ")||void 0},e.isEmpty=function(e){return Array.isArray(e)?!e.length:n(e)?!Object.keys(e).length:null==e||""===e},e.isInteger=function(e){return"number"==typeof e?Math.floor(e)===e:String(Math.floor(Number(e)))===e},e.isObject=n,e.isPromise=function(e){return Boolean(e&&e.then)},e.mergeRefs=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var t=r.filter(Boolean);return t.length?0===t.length?t[0]:function(e){var r=t,n=Array.isArray(r),o=0;for(r=n?r:r[Symbol.iterator]();;){var u;if(n){if(o>=r.length)break;u=r[o++]}else{if((o=r.next()).done)break;u=o.value}var i=u;"function"==typeof i?i(e):i&&(i.current=e)}}:null},e.omit=function(e,r){for(var n=Object.keys(e),t={},o=0;o<n.length;o+=1){var u=n[o];-1===r.indexOf(u)&&(t[u]=e[u])}return t},e.pick=function(e,r){for(var n=Object.keys(e),t={},o=0;o<n.length;o+=1){var u=n[o];r.indexOf(u)>=0&&(t[u]=e[u])}return t},e.removeIndexFromArray=t,e.removeItemFromArray=function(e,r){var n=e.indexOf(r);return t(e,n)},e.splitProps=function(e,r){for(var n={},t={},o=0,u=Object.keys(e);o<u.length;o++){var i=u[o];r.indexOf(i)>=0?n[i]=e[i]:t[i]=e[i]}return[n,t]},e.toArray=function(e){return Array.isArray(e)?e:void 0!==e?[e]:[]},e.useAllCallbacks=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return r.useCallback(function(){var e=n.filter(Boolean),r=Array.isArray(e),t=0;for(e=r?e:e[Symbol.iterator]();;){var o;if(r){if(t>=e.length)break;o=e[t++]}else{if((t=e.next()).done)break;o=t.value}o.apply(void 0,arguments)}},n)},e.useId=function(e){void 0===e&&(e=o);var n=r.useContext(u);return r.useState(function(){return n(e)})[0]},e.useLiveRef=function(e){var n=r.useRef(e);return r.useEffect(function(){n.current=e}),n},e.usePipe=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return r.useCallback(function(e){return n.filter(Boolean).reduce(function(e,r){return r(e)},e)},n)},e.useSealedState=function(e){return r.useState(e)[0]},e.useUpdateEffect=function(e,n){var t=r.useRef(!1);r.useEffect(function(){if(t.current)return e();t.current=!0},n)},e.warning=function(e,r){},Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],r):r((e=e||self).ReakitUtils={},e.React)}(this,function(e,r){"use strict";function n(e){return"object"==typeof e&&null!=e}function t(e,r){return-1===r?e:[].concat(e.slice(0,r),e.slice(r+1))}var o="id-",u=r.createContext(function(e){return void 0===e&&(e=o),""+e+Math.random().toString(32).substr(2,6)});e.IdProvider=function(e){var n=e.children,t=e.unstable_prefix,i=void 0===t?"":t,f=r.useRef(0),a=r.useMemo(function(){return function(e){return void 0===e&&(e=o),""+i+e+ ++f.current}},[i]);return r.createElement(u.Provider,{value:a},n)},e.createOnKeyDown=function(e){var r=void 0===e?{}:e,n=r.keyMap,t=r.onKey,o=r.stopPropagation,u=r.onKeyDown,i=r.shouldKeyDown,f=void 0===i?function(){return!0}:i,a=r.preventDefault,c=void 0===a||a;return function(e){if(n){var r="function"==typeof n?n(e):n,i="function"==typeof c?c(e):c,a="function"==typeof o?o(e):o;if(e.key in r){var l=r[e.key];if("function"==typeof l&&f(e))return i&&e.preventDefault(),a&&e.stopPropagation(),t&&t(e),void l(e)}u&&u(e)}}},e.cx=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return r.filter(Boolean).join(" ")||void 0},e.isEmpty=function(e){return Array.isArray(e)?!e.length:n(e)?!Object.keys(e).length:null==e||""===e},e.isInteger=function(e){return"number"==typeof e?Math.floor(e)===e:String(Math.floor(Number(e)))===e},e.isObject=n,e.isPromise=function(e){return Boolean(e&&e.then)},e.mergeRefs=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var t=r.filter(Boolean);return t.length?0===t.length?t[0]:function(e){var r=t,n=Array.isArray(r),o=0;for(r=n?r:r[Symbol.iterator]();;){var u;if(n){if(o>=r.length)break;u=r[o++]}else{if((o=r.next()).done)break;u=o.value}var i=u;"function"==typeof i?i(e):i&&(i.current=e)}}:null},e.omit=function(e,r){for(var n=Object.keys(e),t={},o=0;o<n.length;o+=1){var u=n[o];-1===r.indexOf(u)&&(t[u]=e[u])}return t},e.pick=function(e,r){for(var n=Object.keys(e),t={},o=0;o<n.length;o+=1){var u=n[o];r.indexOf(u)>=0&&(t[u]=e[u])}return t},e.removeIndexFromArray=t,e.removeItemFromArray=function(e,r){var n=e.indexOf(r);return t(e,n)},e.splitProps=function(e,r){for(var n={},t={},o=0,u=Object.keys(e);o<u.length;o++){var i=u[o];r.indexOf(i)>=0?n[i]=e[i]:t[i]=e[i]}return[n,t]},e.toArray=function(e){return Array.isArray(e)?e:void 0!==e?[e]:[]},e.useAllCallbacks=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return r.useCallback(function(){var e=n.filter(Boolean),r=Array.isArray(e),t=0;for(e=r?e:e[Symbol.iterator]();;){var o;if(r){if(t>=e.length)break;o=e[t++]}else{if((t=e.next()).done)break;o=t.value}o.apply(void 0,arguments)}},n)},e.useId=function(e){void 0===e&&(e=o);var n=r.useContext(u);return r.useState(function(){return n(e)})[0]},e.useLiveRef=function(e){var n=r.useRef(e);return r.useEffect(function(){n.current=e}),n},e.usePipe=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return r.useCallback(function(e){return n.filter(Boolean).reduce(function(e,r){return r(e)},e)},n)},e.useSealedState=function(e){return r.useState(e)[0]},e.useUpdateEffect=function(e,n){var t=r.useRef(!1);r.useEffect(function(){if(t.current)return e();t.current=!0},n)},e.warning=function(e,r){},Object.defineProperty(e,"__esModule",{value:!0})}); |
@@ -28,3 +28,3 @@ import { createContext, useRef, useMemo, createElement, useContext, useState } from 'react'; | ||
}; | ||
}, []); | ||
}, [prefix]); | ||
return createElement(Context.Provider, { | ||
@@ -31,0 +31,0 @@ value: genId |
@@ -32,3 +32,3 @@ 'use strict'; | ||
}; | ||
}, []); | ||
}, [prefix]); | ||
return React.createElement(Context.Provider, { | ||
@@ -35,0 +35,0 @@ value: genId |
{ | ||
"name": "reakit-utils", | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"description": "Reakit utils", | ||
@@ -37,3 +37,3 @@ "sideEffects": false, | ||
}, | ||
"gitHead": "2a3d5f88985e4fb5127201e2bfcd737abc6ee249" | ||
"gitHead": "f0edc09db25e86b822cb7072410145c7d990efbe" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
291434
0