@exodus/fiat-balances 10.13.0 → 10.13.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.
Files changed (3) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/index.js +16 -11
  3. package/package.json +3 -3
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
+ ## [10.13.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/fiat-balances@10.13.0...@exodus/fiat-balances@10.13.1) (2024-08-06)
7
+
8
+ ### Bug Fixes
9
+
10
+ - jsdoc for fiat-balances ([#8210](https://github.com/ExodusMovement/exodus-hydra/issues/8210)) ([efa44d0](https://github.com/ExodusMovement/exodus-hydra/commit/efa44d07aa63abc3ec3fa728157bd5faed921f88))
11
+
6
12
  ## [10.13.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/fiat-balances@10.12.4...@exodus/fiat-balances@10.13.0) (2024-07-29)
7
13
 
8
14
  ### Features
package/index.js CHANGED
@@ -11,18 +11,20 @@ import fiatBalancesReportDefinition from './report'
11
11
  const DEFAULT_BALANCE_FIELDS = ['balance']
12
12
 
13
13
  /**
14
- * @param optimistic {boolean}
15
- * @param balanceFields {string[]}
16
- * @param nonDustAssets {object}
17
- * @param nonDustAssets.balanceThresholdsUsd {object}
18
- * @param nonDustAssets.balanceThresholdByChainUsd {object}
19
- * @param nonDustAssets.defaultBalanceThresholdUsd {import('@exodus/fiat-currencies').Unit}
14
+ * @param {object} opts
15
+ * @param {boolean} [opts.optimistic]
16
+ * @param {string[]} [opts.balanceFields]
17
+ * @param {object} [opts.nonDustAssets]
18
+ * @param {object} [opts.nonDustAssets.balanceThresholdsUsd]
19
+ * @param {object} [opts.nonDustAssets.balanceThresholdByChainUsd]
20
+ * @param {import('@exodus/fiat-currencies').Unit} [opts.nonDustAssets.defaultBalanceThresholdUsd]
20
21
  */
21
-
22
22
  const fiatBalances = (
23
- { optimistic = false, nonDustAssets, balanceFields = DEFAULT_BALANCE_FIELDS } = Object.create(
24
- null
25
- )
23
+ {
24
+ optimistic = false,
25
+ nonDustAssets: { balanceThresholdsUsd, balanceThresholdByChainUsd, defaultBalanceThresholdUsd },
26
+ balanceFields = DEFAULT_BALANCE_FIELDS,
27
+ } = Object.create(null)
26
28
  ) => ({
27
29
  id: 'fiatBalances',
28
30
  definitions: [
@@ -35,7 +37,10 @@ const fiatBalances = (
35
37
  { definition: fiatBalancesAtomDefinition },
36
38
  { definition: fiatBalancesPluginDefinition },
37
39
  { definition: fiatBalancesReportDefinition },
38
- { definition: trackNonDustAssetsNamesPluginDefinition, config: nonDustAssets },
40
+ {
41
+ definition: trackNonDustAssetsNamesPluginDefinition,
42
+ config: { balanceThresholdsUsd, balanceThresholdByChainUsd, defaultBalanceThresholdUsd },
43
+ },
39
44
  { definition: nonDustBalanceAssetNamesAtomDefinition },
40
45
  {
41
46
  if: optimistic,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/fiat-balances",
3
- "version": "10.13.0",
3
+ "version": "10.13.1",
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": "UNLICENSED",
@@ -46,7 +46,7 @@
46
46
  "devDependencies": {
47
47
  "@exodus/assets": "^9.1.0",
48
48
  "@exodus/assets-base": "^8.1.17",
49
- "@exodus/assets-feature": "^5.8.3",
49
+ "@exodus/assets-feature": "^5.9.0",
50
50
  "@exodus/available-assets": "^8.4.1",
51
51
  "@exodus/balances": "^13.2.3",
52
52
  "@exodus/blockchain-metadata": "^15.3.5",
@@ -64,5 +64,5 @@
64
64
  "events": "^3.3.0",
65
65
  "redux": "^4.2.1"
66
66
  },
67
- "gitHead": "d309b0209d3b7d679984c3f5315cab2104bd6ddb"
67
+ "gitHead": "0f17df0522993b8997cf609728697afd7e46ae00"
68
68
  }