@exodus/balances 13.15.1 → 13.15.2
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
|
+
## [13.15.2](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/balances@13.15.1...@exodus/balances@13.15.2) (2026-03-03)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- fix(balances): return empty object instead of undefined from createBalances selector (#15366)
|
|
11
|
+
|
|
6
12
|
## [13.15.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/balances@13.15.0...@exodus/balances@13.15.1) (2026-02-02)
|
|
7
13
|
|
|
8
14
|
**Note:** Version bump only for package @exodus/balances
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/balances",
|
|
3
|
-
"version": "13.15.
|
|
3
|
+
"version": "13.15.2",
|
|
4
4
|
"description": "Tracks crypto balances across enabled wallet accounts.",
|
|
5
5
|
"author": "Exodus Movement, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@exodus/atoms": "^10.0.0",
|
|
37
|
-
"@exodus/basic-utils": "^3.
|
|
37
|
+
"@exodus/basic-utils": "^3.7.3",
|
|
38
38
|
"@exodus/core-selectors": "^4.0.0",
|
|
39
39
|
"@exodus/currency": "^5.0.2",
|
|
40
40
|
"@exodus/errors": "^3.0.0",
|
|
@@ -54,12 +54,12 @@
|
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@exodus/assets": "^11.0.0",
|
|
56
56
|
"@exodus/assets-base": "^10.0.0",
|
|
57
|
-
"@exodus/assets-feature": "^
|
|
58
|
-
"@exodus/available-assets": "^8.
|
|
57
|
+
"@exodus/assets-feature": "^9.0.1",
|
|
58
|
+
"@exodus/available-assets": "^8.11.0",
|
|
59
59
|
"@exodus/bitcoin-meta": "^2.0.0",
|
|
60
60
|
"@exodus/blockchain-metadata": "^17.1.0",
|
|
61
61
|
"@exodus/ethereum-meta": "^2.0.0",
|
|
62
|
-
"@exodus/fee-data-monitors": "^5.0.
|
|
62
|
+
"@exodus/fee-data-monitors": "^5.0.5",
|
|
63
63
|
"@exodus/storage-memory": "^2.3.0",
|
|
64
64
|
"@exodus/wallet-accounts": "^20.2.1",
|
|
65
65
|
"events": "^3.3.0",
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"access": "public",
|
|
70
70
|
"provenance": false
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "7e7f0fcec611b48c995e5e878f64795d6cf23a0b"
|
|
73
73
|
}
|
|
@@ -5,10 +5,15 @@ import { MY_STATE } from '@exodus/redux-dependency-injection'
|
|
|
5
5
|
|
|
6
6
|
const { memoize } = lodash // eslint-disable-line @exodus/basic-utils/prefer-basic-utils
|
|
7
7
|
|
|
8
|
+
const EMPTY_BALANCES = Object.create(null)
|
|
9
|
+
|
|
8
10
|
const selectorFactory = (selfSelector) =>
|
|
9
11
|
memoize(
|
|
10
12
|
({ assetName, walletAccount }) =>
|
|
11
|
-
createSelector(
|
|
13
|
+
createSelector(
|
|
14
|
+
selfSelector,
|
|
15
|
+
(balances) => balances[walletAccount]?.data[assetName] ?? EMPTY_BALANCES
|
|
16
|
+
),
|
|
12
17
|
({ assetName, walletAccount }) => [assetName, walletAccount].join('-')
|
|
13
18
|
)
|
|
14
19
|
|