@pancakeswap/token-lists 0.0.7 → 0.0.8

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.
@@ -0,0 +1,29 @@
1
+
2
+ > @pancakeswap/token-lists@0.0.8 build /home/runner/work/pancake-frontend/pancake-frontend/packages/token-lists
3
+ > tsup
4
+
5
+ CLI Building entry: {"index":"./src/index.ts","react":"./react/index.ts"}
6
+ CLI Using tsconfig: tsconfig.json
7
+ CLI tsup v6.7.0
8
+ CLI Using tsup config: /home/runner/work/pancake-frontend/pancake-frontend/packages/token-lists/tsup.config.ts
9
+ CLI Target: es6
10
+ ESM Build start
11
+ CJS Build start
12
+ Entry module "dist/getTokenList-YNKBKHZ3.js" is using named and default exports together. Consumers of your bundle will have to use `chunk.default` to access the default export, which may not be what you want. Use `output.exports: "named"` to disable this warning.
13
+ ESM dist/chunk-2L3ZO4UM.mjs 1.42 KB
14
+ ESM dist/index.mjs 160.00 B
15
+ ESM dist/chunk-COROHIJN.mjs 2.67 KB
16
+ ESM dist/getTokenList-2FAKUE6D.mjs 13.40 KB
17
+ ESM dist/react.mjs 8.29 KB
18
+ ESM ⚡️ Build success in 996ms
19
+ CJS dist/chunk-4TPCCB4K.js 1.49 KB
20
+ CJS dist/index.js 815.00 B
21
+ CJS dist/chunk-OGWZ2K32.js 2.83 KB
22
+ CJS dist/getTokenList-YNKBKHZ3.js 13.76 KB
23
+ CJS dist/react.js 8.97 KB
24
+ CJS ⚡️ Build success in 1012ms
25
+ DTS Build start
26
+ DTS ⚡️ Build success in 5666ms
27
+ DTS dist/index.d.ts 1.68 KB
28
+ DTS dist/react.d.ts 2.50 KB
29
+ DTS dist/types-d6730d17.d.ts 1.03 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @pancakeswap/token-lists
2
2
 
3
+ ## 0.0.8
4
+
5
+ ### Patch Changes
6
+
7
+ - e31475e6b: chore: Bump up jotai
8
+
3
9
  ## 0.0.7
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { SerializedToken, Token } from '@pancakeswap/swap-sdk-core';
2
- import { T as TokenInfo, a as TokenList, V as Version } from './types-d752b62d.js';
3
- export { b as Tags } from './types-d752b62d.js';
2
+ import { T as TokenInfo, a as TokenList, V as Version } from './types-d6730d17.js';
3
+ export { b as Tags } from './types-d6730d17.js';
4
4
 
5
5
  interface SerializedWrappedToken extends SerializedToken {
6
6
  chainId: number;
7
- address: string;
7
+ address: `0x${string}`;
8
8
  decimals: number;
9
9
  symbol: string;
10
10
  name?: string;
package/dist/react.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _reduxjs_toolkit_dist_createReducer from '@reduxjs/toolkit/dist/createReducer';
2
- import { a as TokenList, V as Version } from './types-d752b62d.js';
2
+ import { a as TokenList, V as Version } from './types-d6730d17.js';
3
3
  import * as _reduxjs_toolkit from '@reduxjs/toolkit';
4
4
  import { ActionCreatorWithPayload } from '@reduxjs/toolkit';
5
5
  import * as jotai from 'jotai';
package/dist/react.js CHANGED
@@ -199,9 +199,9 @@ var createListsAtom = (storeName, reducer, initialState) => {
199
199
  }
200
200
  return got;
201
201
  },
202
- (get, set, action) => {
203
- set(listsStorageAtom, reducer(get(defaultStateAtom), action));
204
- }
202
+ (get, set, action) => chunk4TPCCB4K_js.__async(void 0, null, function* () {
203
+ set(listsStorageAtom, reducer(yield get(defaultStateAtom), action));
204
+ })
205
205
  );
206
206
  const isReadyAtom = jotai.atom((get) => get(listsStorageAtom) !== EMPTY);
207
207
  function useListState() {
package/dist/react.mjs CHANGED
@@ -193,9 +193,9 @@ var createListsAtom = (storeName, reducer, initialState) => {
193
193
  }
194
194
  return got;
195
195
  },
196
- (get, set, action) => {
197
- set(listsStorageAtom, reducer(get(defaultStateAtom), action));
198
- }
196
+ (get, set, action) => __async(void 0, null, function* () {
197
+ set(listsStorageAtom, reducer(yield get(defaultStateAtom), action));
198
+ })
199
199
  );
200
200
  const isReadyAtom = atom((get) => get(listsStorageAtom) !== EMPTY);
201
201
  function useListState() {
@@ -1,7 +1,7 @@
1
1
  type ExtensionValue = string | number | boolean | null | undefined;
2
2
  interface TokenInfo {
3
3
  readonly chainId: number;
4
- readonly address: string;
4
+ readonly address: `0x${string}`;
5
5
  readonly name: string;
6
6
  readonly decimals: number;
7
7
  readonly symbol: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pancakeswap/token-lists",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -12,17 +12,17 @@
12
12
  "peerDependencies": {
13
13
  "@reduxjs/toolkit": "^1.9.1",
14
14
  "localforage": "^1.10.0",
15
- "jotai": "^2.0.3",
15
+ "jotai": "^2.2.1",
16
16
  "react": "^18.2.0"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@types/react": "^18.0.17",
20
20
  "localforage": "^1.10.0",
21
- "jotai": "^2.0.3",
21
+ "jotai": "^2.2.1",
22
22
  "@reduxjs/toolkit": "^1.9.1",
23
23
  "react": "^18.2.0",
24
24
  "tsup": "^6.7.0",
25
- "@pancakeswap/utils": "1.0.0"
25
+ "@pancakeswap/utils": "2.0.1"
26
26
  },
27
27
  "exports": {
28
28
  ".": {
package/react/lists.ts CHANGED
@@ -62,8 +62,8 @@ export const createListsAtom = (storeName: string, reducer: any, initialState: a
62
62
  }
63
63
  return got
64
64
  },
65
- (get, set, action) => {
66
- set(listsStorageAtom, reducer(get(defaultStateAtom), action))
65
+ async (get, set, action) => {
66
+ set(listsStorageAtom, reducer(await get(defaultStateAtom), action))
67
67
  },
68
68
  )
69
69
 
package/src/types.ts CHANGED
@@ -2,7 +2,7 @@ type ExtensionValue = string | number | boolean | null | undefined
2
2
 
3
3
  export interface TokenInfo {
4
4
  readonly chainId: number
5
- readonly address: string
5
+ readonly address: `0x${string}`
6
6
  readonly name: string
7
7
  readonly decimals: number
8
8
  readonly symbol: string
@@ -3,7 +3,7 @@ import { TokenInfo, TokenList } from './types'
3
3
 
4
4
  export interface SerializedWrappedToken extends SerializedToken {
5
5
  chainId: number
6
- address: string
6
+ address: `0x${string}`
7
7
  decimals: number
8
8
  symbol: string
9
9
  name?: string