@pancakeswap/token-lists 0.0.5 → 0.0.6

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.
@@ -7,17 +7,17 @@ $ tsup
7
7
  CLI Target: es6
8
8
  ESM Build start
9
9
  CJS Build start
10
- CJS dist/index.js 3.11 KB
11
- CJS dist/react.js 28.00 KB
12
- CJS ⚡️ Build success in 90ms
13
10
  ESM dist/index.mjs 239.00 B
14
- ESM dist/react.mjs 8.47 KB
11
+ ESM dist/react.mjs 8.44 KB
15
12
  ESM dist/chunk-YBVZDUCZ.mjs 1.92 KB
16
13
  ESM dist/getTokenList-2FAKUE6D.mjs 13.43 KB
17
14
  ESM dist/chunk-2L3ZO4UM.mjs 1.42 KB
18
- ESM ⚡️ Build success in 93ms
15
+ ESM ⚡️ Build success in 81ms
16
+ CJS dist/index.js 3.11 KB
17
+ CJS dist/react.js 27.98 KB
18
+ CJS ⚡️ Build success in 80ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 17357ms
20
+ DTS ⚡️ Build success in 16627ms
21
21
  DTS dist/index.d.ts 1.51 KB
22
22
  DTS dist/react.d.ts 2.50 KB
23
23
  DTS dist/types-d752b62d.d.ts 1.02 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @pancakeswap/token-lists
2
2
 
3
+ ## 0.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - d5bf9101d: chore: Bump up jotai
8
+
3
9
  ## 0.0.5
4
10
 
5
11
  ### Patch Changes
package/dist/react.d.ts CHANGED
@@ -47,7 +47,7 @@ declare const updateListVersion: _reduxjs_toolkit.ActionCreatorWithoutPayload<"l
47
47
  declare const createListsAtom: (storeName: string, reducer: any, initialState: any) => {
48
48
  listsAtom: jotai.WritableAtom<ListsState, any, void>;
49
49
  useListStateReady: () => boolean;
50
- useListState: () => [ListsState, (update?: any) => void];
50
+ useListState: () => [ListsState, (...args: any) => void];
51
51
  };
52
52
 
53
53
  declare function useFetchListCallback(dispatch: (action?: unknown) => void): (listUrl: string, sendDispatch?: boolean) => Promise<TokenList>;
package/dist/react.js CHANGED
@@ -764,8 +764,7 @@ var createListsAtom = (storeName, reducer, initialState) => {
764
764
  return;
765
765
  return db.setItem(k, v);
766
766
  },
767
- removeItem: db.removeItem,
768
- delayInit: true
767
+ removeItem: db.removeItem
769
768
  };
770
769
  }
771
770
  return noopStorage;
package/dist/react.mjs CHANGED
@@ -185,8 +185,7 @@ var createListsAtom = (storeName, reducer, initialState) => {
185
185
  return;
186
186
  return db.setItem(k, v);
187
187
  },
188
- removeItem: db.removeItem,
189
- delayInit: true
188
+ removeItem: db.removeItem
190
189
  };
191
190
  }
192
191
  return noopStorage;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pancakeswap/token-lists",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -18,7 +18,7 @@
18
18
  "peerDependencies": {
19
19
  "@reduxjs/toolkit": "^1.9.1",
20
20
  "localforage": "^1.10.0",
21
- "jotai": "^1.13.1",
21
+ "jotai": "^2.0.3",
22
22
  "react": "^18.2.0"
23
23
  },
24
24
  "devDependencies": {
package/react/lists.ts CHANGED
@@ -42,7 +42,6 @@ export const createListsAtom = (storeName: string, reducer: any, initialState: a
42
42
  return db.setItem(k, v)
43
43
  },
44
44
  removeItem: db.removeItem,
45
- delayInit: true,
46
45
  }
47
46
  }
48
47
  return noopStorage
@@ -55,7 +54,7 @@ export const createListsAtom = (storeName: string, reducer: any, initialState: a
55
54
  IndexedDBStorage('lists'),
56
55
  )
57
56
 
58
- const defaultStateAtom = atom<ListsState, any>(
57
+ const defaultStateAtom = atom<ListsState, any, void>(
59
58
  (get) => {
60
59
  const got = get(listsStorageAtom)
61
60
  if (got === EMPTY) {