@exodus/fiat-balances 13.7.1 → 13.7.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.7.2](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/fiat-balances@13.7.1...@exodus/fiat-balances@13.7.2) (2026-02-25)
7
+
8
+ ### Performance
9
+
10
+ - perf(fiat-balances): remove dead isEqual deep comparison from flush (#15352)
11
+
6
12
  ## [13.7.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/fiat-balances@13.7.0...@exodus/fiat-balances@13.7.1) (2026-02-03)
7
13
 
8
14
  ### Performance
@@ -1,14 +1,15 @@
1
1
  import { set } from '@exodus/basic-utils'
2
2
  import { isNumberUnit } from '@exodus/currency'
3
- // eslint-disable-next-line no-restricted-imports -- TODO: Fix this the next time the file is edited.
4
- import lodash from 'lodash'
5
3
  import fiatCurrencies from '@exodus/fiat-currencies'
6
4
  import { combine } from '@exodus/atoms'
7
5
 
8
- const { isEqual } = lodash
9
-
10
- // not super efficient, so we're assuming small objects, like { [walletAccount]: xyz }
11
- const areKeysSame = (a, b) => isEqual(Object.keys(a).sort(), Object.keys(b).sort())
6
+ const areKeysSame = (a, b) => {
7
+ const keysA = Object.keys(a)
8
+ const keysB = Object.keys(b)
9
+ if (keysA.length !== keysB.length) return false
10
+ const aKeySet = new Set(keysA)
11
+ return keysB.every((key) => aKeySet.has(key))
12
+ }
12
13
 
13
14
  export const cloneBalances = (balances) => {
14
15
  if (isNumberUnit(balances)) {
@@ -290,8 +291,7 @@ class FiatBalances {
290
291
 
291
292
  #flush = () => {
292
293
  this.#logger.log('fiat balances updated')
293
- const data = cloneBalances({ balances: this.#balances })
294
- this.#fiatBalancesAtom.set((current) => (isEqual(current, data) ? current : data))
294
+ this.#fiatBalancesAtom.set(cloneBalances({ balances: this.#balances }))
295
295
  }
296
296
 
297
297
  stop = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/fiat-balances",
3
- "version": "13.7.1",
3
+ "version": "13.7.2",
4
4
  "description": "Track asset and portfolio fiat balances based on changes in crypto balances and the user's preferred fiat currency",
5
5
  "author": "Exodus Movement, Inc.",
6
6
  "license": "MIT",
@@ -46,15 +46,15 @@
46
46
  "devDependencies": {
47
47
  "@exodus/assets": "^11.0.0",
48
48
  "@exodus/assets-base": "^10.0.0",
49
- "@exodus/assets-feature": "^8.8.0",
50
- "@exodus/available-assets": "^8.10.1",
49
+ "@exodus/assets-feature": "^9.0.1",
50
+ "@exodus/available-assets": "^8.11.0",
51
51
  "@exodus/balances": "^13.15.1",
52
52
  "@exodus/blockchain-metadata": "^17.1.0",
53
53
  "@exodus/combined-assets-meta": "^3.3.2",
54
54
  "@exodus/enabled-assets": "^10.11.0",
55
55
  "@exodus/favorite-assets": "^2.6.0",
56
- "@exodus/fee-data-monitors": "^5.0.4",
57
- "@exodus/models": "^12.19.0",
56
+ "@exodus/fee-data-monitors": "^5.0.5",
57
+ "@exodus/models": "^12.19.1",
58
58
  "@exodus/rates-monitor": "^4.14.7",
59
59
  "@exodus/redux-dependency-injection": "^4.1.2",
60
60
  "@exodus/solana-meta": "^2.0.0",
@@ -67,5 +67,5 @@
67
67
  "access": "public",
68
68
  "provenance": false
69
69
  },
70
- "gitHead": "08c1bde4a68356e37503376e64d8484115eab442"
70
+ "gitHead": "3ff15cc5f430736df2959cded07977ab3d45ca70"
71
71
  }