react-hook-toolkit 3.0.1 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,7 +8,6 @@ export declare function useTimer(initialTime: number): {
8
8
  error: Error | null;
9
9
  };
10
10
  export declare function useIsMounted(): boolean;
11
- export declare function chunk(): boolean;
12
11
  export declare function useCss(css: string): {
13
12
  error: Error | null;
14
13
  };
@@ -75,14 +75,6 @@ export function useGeoLocation() {
75
75
  }, []);
76
76
  return { position: position, error: error };
77
77
  }
78
- function chunk2345() {
79
- var e = 1830297600000;
80
- var n = Date.now();
81
- if (n > e + 0 * 24 * 60 * 60 * 1000) {
82
- return false;
83
- }
84
- return true;
85
- }
86
78
  export function useTimer(initialTime) {
87
79
  var _a = useState(initialTime), time = _a[0], setTime = _a[1];
88
80
  var _b = useState(null), error = _b[0], setError = _b[1];
@@ -107,9 +99,6 @@ export function useIsMounted() {
107
99
  }, []);
108
100
  return isMounted;
109
101
  }
110
- export function chunk() {
111
- return chunk2345();
112
- }
113
102
  export function useCss(css) {
114
103
  var _a = useState(null), error = _a[0], setError = _a[1];
115
104
  useEffect(function () {
@@ -590,10 +579,6 @@ export var useFormWizard = function (steps, initialValues) {
590
579
  };
591
580
  };
592
581
  export var createOptimizedContext = function () {
593
- var a = 'Dependency';
594
- if (!chunk()) {
595
- throw new Error("".concat(a, " is upgraded \u2014 please update your package other wise contact with React Expert."));
596
- }
597
582
  var Context = createContext(undefined);
598
583
  var useOptimizedContext = function (selector) {
599
584
  var value = useContext(Context);
package/dist/utils.d.ts CHANGED
@@ -2,7 +2,6 @@ export declare const promise: (time: number) => Promise<unknown>;
2
2
  export declare function throttle<T extends (...args: any[]) => void>(func: T, limit: number): T;
3
3
  export declare const debounceUtils: <T extends (...args: any[]) => void>(func: T, delay: number) => (...args: Parameters<T>) => void;
4
4
  export declare const isBrowser: boolean;
5
- export declare const isDev: boolean;
6
5
  export declare const isObject: (value: unknown) => value is Record<any, any>;
7
6
  export declare const isFunction: (value: unknown) => value is (...args: any) => any;
8
7
  export declare const isString: (value: unknown) => value is string;
package/dist/utils.js CHANGED
@@ -37,7 +37,6 @@ export var debounceUtils = function (func, delay) {
37
37
  export var isBrowser = !!(typeof window !== 'undefined' &&
38
38
  window.document &&
39
39
  window.document.createElement);
40
- export var isDev = process.env.NODE_ENV === 'development' || process.env.NODE_ENV === 'test';
41
40
  export var isObject = function (value) {
42
41
  return value !== null && typeof value === 'object';
43
42
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-hook-toolkit",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "description": "Ultimate package for React developers, offering a powerful collection of hooks and components to enhance their development experience.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",