@sonarwatch/portfolio-core 0.16.66 → 0.16.67

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
@@ -2,6 +2,16 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [0.16.67](https://github.com/sonarwatch/portfolio/compare/core-0.16.66...core-0.16.67) (2025-09-11)
6
+
7
+
8
+ ### Features
9
+
10
+ * **plugins:** PortfolioAssetTokenData.yields as array ([8a76658](https://github.com/sonarwatch/portfolio/commit/8a76658eeb79b3fab84612abca89f79f133a0c19))
11
+ * **plugins:** tokenYields as array ([560da16](https://github.com/sonarwatch/portfolio/commit/560da168e722a2fa07d4e8adc4c80860af1a2612))
12
+
13
+
14
+
5
15
  ## [0.16.66](https://github.com/sonarwatch/portfolio/compare/core-0.16.65...core-0.16.66) (2025-09-05)
6
16
 
7
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonarwatch/portfolio-core",
3
- "version": "0.16.66",
3
+ "version": "0.16.67",
4
4
  "type": "commonjs",
5
5
  "types": "./src/index.d.ts",
6
6
  "repository": {
@@ -81,6 +81,12 @@ export type PortfolioAssetTokenData = {
81
81
  address: string;
82
82
  amount: number;
83
83
  price: UsdValue;
84
+ yields?: Yield[];
85
+ };
86
+ /**
87
+ * @deprecated will soon be replaced by PortfolioAssetTokenDataSupport (search YIELD_COMPAT)
88
+ */
89
+ export type PortfolioAssetTokenDataSupport = PortfolioAssetTokenData & {
84
90
  yield?: Yield;
85
91
  };
86
92
  /**
@@ -88,7 +94,7 @@ export type PortfolioAssetTokenData = {
88
94
  */
89
95
  export type PortfolioAssetToken = PortfolioAssetCommon & {
90
96
  type: 'token';
91
- data: PortfolioAssetTokenData;
97
+ data: PortfolioAssetTokenDataSupport;
92
98
  };
93
99
  /**
94
100
  * Represents the data of a collectible portfolio asset.
@@ -1 +1 @@
1
- {"version":3,"file":"Portfolio.js","sourceRoot":"","sources":["../../../../packages/core/src/Portfolio.ts"],"names":[],"mappings":";;;AAIA;;GAEG;AACU,QAAA,kBAAkB,GAAG;IAChC,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,aAAa;CAClB,CAAC;AA6CX;;GAEG;AACU,QAAA,oBAAoB,GAAG;IAClC,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE,YAAY;IACxB,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;CACN,CAAC;AAoPX,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,+BAAe,CAAA;AACjB,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB"}
1
+ {"version":3,"file":"Portfolio.js","sourceRoot":"","sources":["../../../../packages/core/src/Portfolio.ts"],"names":[],"mappings":";;;AAIA;;GAEG;AACU,QAAA,kBAAkB,GAAG;IAChC,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,aAAa;CAClB,CAAC;AA6CX;;GAEG;AACU,QAAA,oBAAoB,GAAG;IAClC,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE,YAAY;IACxB,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;CACN,CAAC;AA2PX,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,+BAAe,CAAA;AACjB,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB"}
@@ -4,6 +4,12 @@ export declare const tokenYieldTtl: number;
4
4
  export type TokenYield = {
5
5
  address: string;
6
6
  networkId: NetworkIdType;
7
- yield: Yield;
7
+ yields: Yield[];
8
8
  timestamp: number;
9
9
  };
10
+ /**
11
+ * @deprecated will soon be replaced by TokenYield (search YIELD_COMPAT)
12
+ */
13
+ export type TokenYieldSupport = TokenYield & {
14
+ yield: Yield;
15
+ };