@exodus/assets-feature 5.10.0 → 5.11.0

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,16 @@
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
+ ## [5.11.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/assets-feature@5.10.1...@exodus/assets-feature@5.11.0) (2024-08-20)
7
+
8
+ ### Features
9
+
10
+ - convert assets-feature to valid esm (but not tests yet) ([#8561](https://github.com/ExodusMovement/exodus-hydra/issues/8561)) ([baed660](https://github.com/ExodusMovement/exodus-hydra/commit/baed660ce12e499d762f405cb386c5811da30a4e))
11
+
12
+ ## [5.10.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/assets-feature@5.10.0...@exodus/assets-feature@5.10.1) (2024-08-16)
13
+
14
+ **Note:** Version bump only for package @exodus/assets-feature
15
+
6
16
  ## [5.10.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/assets-feature@5.9.0...@exodus/assets-feature@5.10.0) (2024-08-07)
7
17
 
8
18
  ### Features
@@ -1,7 +1,9 @@
1
1
  import { pickBy } from '@exodus/basic-utils'
2
- import { isEmpty } from 'lodash'
2
+ import lodash from 'lodash'
3
3
  import assert from 'minimalistic-assert'
4
- import { filterAsync } from '@exodus/basic-utils/lib/async'
4
+ import { filterAsync } from '@exodus/basic-utils/src/async.js'
5
+
6
+ const { isEmpty } = lodash
5
7
 
6
8
  class AssetClientInterface {
7
9
  #availableAssetNamesAtom
package/client/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import createAssetClientInterface from './asset-client-interface'
1
+ import createAssetClientInterface from './asset-client-interface.js'
2
2
 
3
3
  const assetsClientInterfaceDefinition = {
4
4
  id: 'assetClientInterface',
package/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import assetsApiDefinition from './api'
1
+ import assetsApiDefinition from './api/index.js'
2
2
 
3
3
  declare const assets: () => {
4
4
  id: 'assets'
package/index.js CHANGED
@@ -1,12 +1,12 @@
1
- import assetsClientInterfaceDefinition from './client'
2
- import assetsPluginDefinition from './plugin'
3
- import multiAddressModeAtomDefinition from './atoms/multi-address-mode'
4
- import disabledPurposesAtomDefinition from './atoms/disabled-purposes'
5
- import assetsApiDefinition from './api'
6
- import assetModuleDefinition from './module'
7
- import customTokensMonitorDefinition from './monitor'
8
- import assetPreferencesDefinition from './module/asset-preferences'
9
- import assetsAtomDefinition from './atoms/assets'
1
+ import assetsClientInterfaceDefinition from './client/index.js'
2
+ import assetsPluginDefinition from './plugin/index.js'
3
+ import multiAddressModeAtomDefinition from './atoms/multi-address-mode.js'
4
+ import disabledPurposesAtomDefinition from './atoms/disabled-purposes.js'
5
+ import assetsApiDefinition from './api/index.js'
6
+ import assetModuleDefinition from './module/index.js'
7
+ import customTokensMonitorDefinition from './monitor/index.js'
8
+ import assetPreferencesDefinition from './module/asset-preferences.js'
9
+ import assetsAtomDefinition from './atoms/assets.js'
10
10
 
11
11
  const assets = ({ config = {} } = {}) => {
12
12
  return {
@@ -7,7 +7,7 @@ import {
7
7
  } from '@exodus/assets'
8
8
  import { mapValues, pick, pickBy } from '@exodus/basic-utils'
9
9
  // eslint-disable-next-line @exodus/restricted-imports/prefer-basic-utils
10
- import { get, isEmpty, keyBy, once } from 'lodash'
10
+ import lodash from 'lodash'
11
11
  import assert from 'minimalistic-assert'
12
12
 
13
13
  import {
@@ -15,10 +15,12 @@ import {
15
15
  CT_FETCH_CACHE_EXPIRY,
16
16
  CT_TIMESTAMP_KEY,
17
17
  CT_UPDATE_INTERVAL,
18
- } from './constants'
19
- import { getAssetFromAssetId, getFetchErrorMessage, isDisabledCustomToken } from './utils'
18
+ } from './constants.js'
19
+ import { getAssetFromAssetId, getFetchErrorMessage, isDisabledCustomToken } from './utils.js'
20
20
  import createFetchival from '@exodus/fetch/create-fetchival'
21
21
 
22
+ const { get, isEmpty, keyBy, once } = lodash
23
+
22
24
  const FILTERED_FIELDS = [
23
25
  'assetId',
24
26
  'baseAssetName',
package/module/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import AssetsModule from './assets-module'
1
+ import AssetsModule from './assets-module.js'
2
2
 
3
3
  const createAssetsModule = (props) => new AssetsModule(props)
4
4
 
package/module/utils.js CHANGED
@@ -1,5 +1,7 @@
1
1
  import { CT_STATUS as STATUS } from '@exodus/assets'
2
- import { get } from 'lodash'
2
+ import lodash from 'lodash'
3
+
4
+ const { get } = lodash
3
5
 
4
6
  const BLACKLISTED_ERRORS = [/Cannot destructure property 'owner'/]
5
7
 
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@exodus/assets-feature",
3
- "version": "5.10.0",
3
+ "version": "5.11.0",
4
4
  "license": "UNLICENSED",
5
5
  "description": "Assets module, clients and apis",
6
+ "type": "module",
6
7
  "main": "index.js",
7
8
  "author": "Exodus Movement, Inc.",
8
9
  "scripts": {
9
- "test": "run -T jest",
10
+ "test": "run -T exodus-test --jest --esbuild",
10
11
  "lint": "run -T eslint . --ignore-path ../../.gitignore",
11
12
  "lint:fix": "yarn lint --fix"
12
13
  },
@@ -32,12 +33,12 @@
32
33
  "url": "git+https://github.com/ExodusMovement/exodus-hydra.git"
33
34
  },
34
35
  "dependencies": {
35
- "@exodus/assets": "^10.0.1",
36
+ "@exodus/assets": "^11.0.0",
36
37
  "@exodus/atoms": "^8.0.0",
37
- "@exodus/basic-utils": "^2.1.0",
38
+ "@exodus/basic-utils": "^3.0.1",
38
39
  "@exodus/fetch": "^1.3.0",
39
40
  "@exodus/module": "^1.2.2",
40
- "@exodus/timer": "^1.0.0",
41
+ "@exodus/timer": "^1.1.2",
41
42
  "lodash": "^4.17.21",
42
43
  "minimalistic-assert": "^1.0.1",
43
44
  "ms": "^2.1.3",
@@ -46,29 +47,29 @@
46
47
  "devDependencies": {
47
48
  "@exodus/available-assets": "^8.4.1",
48
49
  "@exodus/bip44-constants": "^195.0.0",
49
- "@exodus/bitcoin-meta": "^1.0.1",
50
+ "@exodus/bitcoin-meta": "^2.0.0",
50
51
  "@exodus/bitcoin-plugin": "^1.0.3",
51
52
  "@exodus/bitcoinregtest-plugin": "^1.0.3",
52
53
  "@exodus/bitcointestnet-plugin": "^1.0.3",
53
54
  "@exodus/blockchain-metadata": "^15.3.5",
54
55
  "@exodus/cardano-lib": "^2.2.0",
55
- "@exodus/combined-assets-meta": "^1.2.5",
56
+ "@exodus/combined-assets-meta": "^3.0.0",
56
57
  "@exodus/cosmos-plugin": "^1.0.0",
57
58
  "@exodus/ethereum-lib": "^5.0.0",
58
- "@exodus/ethereum-meta": "^1.1.0",
59
- "@exodus/keychain": "^6.8.0",
60
- "@exodus/models": "^9.1.1",
59
+ "@exodus/ethereum-meta": "^2.0.0",
60
+ "@exodus/keychain": "^6.9.1",
61
+ "@exodus/models": "^12.0.1",
61
62
  "@exodus/osmosis-plugin": "^1.0.0",
62
63
  "@exodus/public-key-provider": "^2.4.1",
63
64
  "@exodus/public-key-store": "^1.2.2",
64
65
  "@exodus/redux-dependency-injection": "^4.0.0",
65
66
  "@exodus/storage-memory": "^2.1.1",
66
- "@exodus/wallet-accounts": "^16.8.3",
67
+ "@exodus/wallet-accounts": "^16.9.0",
67
68
  "@exodus/wild-emitter": "^1.0.0",
68
69
  "bip39": "^3.1.0",
69
70
  "events": "^3.3.0",
70
71
  "msw": "^2.0.0",
71
72
  "redux": "^4.0.0"
72
73
  },
73
- "gitHead": "e2f868c4a8177092caa51255fc1a564b16f0a907"
74
+ "gitHead": "6a72d364b98c73b79483e114ebaf8d3e757246c9"
74
75
  }
package/redux/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import initialState from './initial-state'
2
- import selectorDefinitions from './selectors'
1
+ import initialState from './initial-state.js'
2
+ import selectorDefinitions from './selectors/index.js'
3
3
 
4
4
  declare const assetsReduxDefinition: {
5
5
  id: 'assets'
package/redux/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import id from './id'
2
- import initialState from './initial-state'
3
- import selectorDefinitions from './selectors'
1
+ import id from './id.js'
2
+ import initialState from './initial-state.js'
3
+ import selectorDefinitions from './selectors/index.js'
4
4
  import { keyBy } from '@exodus/basic-utils'
5
5
 
6
6
  const mergeAssets = (state, payload) => ({
@@ -1,7 +1,9 @@
1
1
  import { keyBy } from '@exodus/basic-utils'
2
2
  import { createSelector } from 'reselect'
3
3
 
4
- import { memoize } from 'lodash' // eslint-disable-line @exodus/restricted-imports/prefer-basic-utils -- TODO: fix next time we touch this file
4
+ import lodash from 'lodash'
5
+
6
+ const { memoize } = lodash // eslint-disable-line @exodus/restricted-imports/prefer-basic-utils -- TODO: fix next time we touch this file
5
7
 
6
8
  // just a semantic alias for `data`
7
9
  const allAssetsSelectorDefinition = {