@orderly.network/hooks 2.4.0 → 2.4.1

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.
package/dist/index.d.mts CHANGED
@@ -31,7 +31,7 @@ declare global {
31
31
  };
32
32
  }
33
33
  }
34
- declare const _default: "2.4.0";
34
+ declare const _default: "2.4.1";
35
35
 
36
36
  declare const fetcher: (url: string, init: RequestInit | undefined, queryOptions: useQueryOptions<any>) => Promise<any>;
37
37
  type useQueryOptions<T> = SWRConfiguration & {
package/dist/index.d.ts CHANGED
@@ -31,7 +31,7 @@ declare global {
31
31
  };
32
32
  }
33
33
  }
34
- declare const _default: "2.4.0";
34
+ declare const _default: "2.4.1";
35
35
 
36
36
  declare const fetcher: (url: string, init: RequestInit | undefined, queryOptions: useQueryOptions<any>) => Promise<any>;
37
37
  type useQueryOptions<T> = SWRConfiguration & {
package/dist/index.js CHANGED
@@ -61,9 +61,9 @@ var __export = (target, all) => {
61
61
  // src/version.ts
62
62
  if (typeof window !== "undefined") {
63
63
  window.__ORDERLY_VERSION__ = window.__ORDERLY_VERSION__ || {};
64
- window.__ORDERLY_VERSION__["@orderly.network/hooks"] = "2.4.0";
64
+ window.__ORDERLY_VERSION__["@orderly.network/hooks"] = "2.4.1";
65
65
  }
66
- var version_default = "2.4.0";
66
+ var version_default = "2.4.1";
67
67
  var fetcher = (url, init2 = {}, queryOptions) => net.get(url, init2, queryOptions?.formatter);
68
68
  var OrderlyContext = React.createContext({
69
69
  // configStore: new MemoryConfigStore(),
@@ -15936,10 +15936,11 @@ var useRestrictedInfo = (options) => {
15936
15936
  }, [
15937
15937
  ipInfo,
15938
15938
  restrictedAreas,
15939
- enableDefault,
15940
- customRestrictedIps,
15941
- customRestrictedRegions,
15942
- accessRestricted
15939
+ accessRestricted,
15940
+ enableDefault
15941
+ // it will lead to infinite re-render when these values change, so we don't need to watch these
15942
+ // customRestrictedIps,
15943
+ // customRestrictedRegions,
15943
15944
  ]);
15944
15945
  return {
15945
15946
  ip,