@exodus/assets-feature 1.7.2 → 2.0.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,22 @@
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
+ ## [2.0.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/assets-feature@2.0.0...@exodus/assets-feature@2.0.1) (2023-09-14)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **assets-feature:** remove storage namespace ([#4041](https://github.com/ExodusMovement/exodus-hydra/issues/4041)) ([b949ea2](https://github.com/ExodusMovement/exodus-hydra/commit/b949ea2f43625dd603985ee6e01219b2a1f599c3))
11
+
12
+ ## [2.0.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/assets-feature@1.7.2...@exodus/assets-feature@2.0.0) (2023-09-13)
13
+
14
+ ### ⚠ BREAKING CHANGES
15
+
16
+ - **assets-feature:** storage and validate adapters (#4032)
17
+
18
+ ### Features
19
+
20
+ - **assets-feature:** storage and validate adapters ([#4032](https://github.com/ExodusMovement/exodus-hydra/issues/4032)) ([390ef9b](https://github.com/ExodusMovement/exodus-hydra/commit/390ef9bcf9ca17b735544220be2a286b124db184))
21
+
6
22
  ## [1.7.2](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/assets-feature@1.7.1...@exodus/assets-feature@1.7.2) (2023-09-11)
7
23
 
8
24
  **Note:** Version bump only for package @exodus/assets-feature
package/index.js CHANGED
@@ -23,10 +23,12 @@ const assets = ({ config = {} } = {}) => {
23
23
  config: config.disabledPurposes || {},
24
24
  },
25
25
  { definition: assetsApiDefinition },
26
+ // TODO: add storage namespace once we remove customTokensStorage
27
+ // eslint-disable-next-line hydra/missing-storage-namespace
26
28
  {
27
29
  definition: assetModuleDefinition,
28
- storage: { namespace: 'customTokens' },
29
- aliases: [{ implementationId: 'unsafeStorage', interfaceId: 'storage' }],
30
+ // storage: { namespace: 'customTokens' },
31
+ aliases: [{ implementationId: 'customTokensStorage', interfaceId: 'storage' }],
30
32
  },
31
33
  {
32
34
  definition: assetPreferencesDefinition,
package/module/index.js CHANGED
@@ -7,6 +7,7 @@ const createAssetsModule = ({
7
7
  iconsStorage,
8
8
  assetPlugins,
9
9
  combinedAssetsList = [],
10
+ validateCustomToken,
10
11
  config,
11
12
  }) =>
12
13
  new AssetsModule({
@@ -15,6 +16,7 @@ const createAssetsModule = ({
15
16
  globalAssetRegistry,
16
17
  assetPlugins,
17
18
  combinedAssetsList,
19
+ validateCustomToken,
18
20
  config,
19
21
  })
20
22
 
@@ -22,7 +24,14 @@ const assetsModuleDefinition = {
22
24
  id: 'assetsModule',
23
25
  type: 'module',
24
26
  factory: createAssetsModule,
25
- dependencies: ['storage', 'iconsStorage', 'assetPlugins', 'combinedAssetsList?', 'config'],
27
+ dependencies: [
28
+ 'storage',
29
+ 'iconsStorage',
30
+ 'assetPlugins',
31
+ 'combinedAssetsList?',
32
+ 'validateCustomToken?',
33
+ 'config',
34
+ ],
26
35
  }
27
36
 
28
37
  export default assetsModuleDefinition
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/assets-feature",
3
- "version": "1.7.2",
3
+ "version": "2.0.1",
4
4
  "license": "UNLICENSED",
5
5
  "description": "Assets module, clients and apis",
6
6
  "main": "index.js",
@@ -60,5 +60,5 @@
60
60
  "jest": "^29.1.2",
61
61
  "redux": "^4.0.0"
62
62
  },
63
- "gitHead": "94a9d8f605733784c63ad3e70245d14e58abb91d"
63
+ "gitHead": "cd47c8354f9e0faad72964e76b42e7128d50c1e3"
64
64
  }