@exodus/assets-feature 8.1.0 → 8.1.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/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [8.1.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/assets-feature@8.1.0...@exodus/assets-feature@8.1.1) (2025-05-20)
7
+
8
+ ### Bug Fixes
9
+
10
+ - fix: do not remove demoted token with unchanged name (#12588)
11
+
6
12
  ## [8.1.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/assets-feature@8.0.0...@exodus/assets-feature@8.1.0) (2025-05-19)
7
13
 
8
14
  ### Features
@@ -18,7 +18,6 @@ import { getAssetFromAssetId, getFetchErrorMessage, isDisabledCustomToken } from
18
18
  import createFetchival from '@exodus/fetch/create-fetchival'
19
19
  import { validateCustomToken, isValidCustomToken } from '@exodus/asset-schema-validation'
20
20
  import makeConcurrent from 'make-concurrent'
21
- import oldToNewStyleTokenNames from '@exodus/asset-legacy-token-name-mapping'
22
21
 
23
22
  const { get, isEmpty, once, uniq } = lodash
24
23
 
@@ -90,7 +89,6 @@ export class AssetsModule {
90
89
  #assetsAtom
91
90
  #fetchival
92
91
  #logger
93
- #invalidTokenNames
94
92
 
95
93
  constructor({
96
94
  storage,
@@ -124,7 +122,6 @@ export class AssetsModule {
124
122
  this.#fetchCacheExpiry = config.fetchCacheExpiry ?? CT_FETCH_CACHE_EXPIRY
125
123
  this.#fetchival = createFetchival({ fetch })
126
124
  this.#logger = logger
127
- this.#invalidTokenNames = new Set(Object.keys(oldToNewStyleTokenNames))
128
125
  }
129
126
 
130
127
  #setRegistry = (registry) => {
@@ -602,8 +599,7 @@ export class AssetsModule {
602
599
  if (!this.#storage) return []
603
600
 
604
601
  const tokens = await this.#storage.get(this.#storageDataKey)
605
- const normalizedTokens = mapValues(tokens, normalizeToken)
606
- return pickBy(normalizedTokens, ({ name }) => !this.#invalidTokenNames.has(name))
602
+ return mapValues(tokens, normalizeToken)
607
603
  }
608
604
 
609
605
  #updateStoredCustomTokens = async (tokens) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/assets-feature",
3
- "version": "8.1.0",
3
+ "version": "8.1.1",
4
4
  "license": "MIT",
5
5
  "description": "This Exodus SDK feature provides access to instances of all blockchain asset adapters supported by the wallet, and enables you to search for and add custom tokens at runtime.",
6
6
  "type": "module",
@@ -35,7 +35,6 @@
35
35
  "url": "git+https://github.com/ExodusMovement/exodus-hydra.git"
36
36
  },
37
37
  "dependencies": {
38
- "@exodus/asset-legacy-token-name-mapping": "^1.4.0",
39
38
  "@exodus/asset-lib": "^5.3.0",
40
39
  "@exodus/asset-schema-validation": "^1.0.1",
41
40
  "@exodus/assets": "^11.3.0",
@@ -82,5 +81,5 @@
82
81
  "publishConfig": {
83
82
  "access": "public"
84
83
  },
85
- "gitHead": "c0269d54d37bcceefb29cd77f806146438b71e68"
84
+ "gitHead": "d0cc19c45e1ddaaeb9dec288cf94595d89fdf62c"
86
85
  }