@pioneer-platform/pioneer-cache 1.10.1 → 1.15.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
@@ -1,5 +1,35 @@
1
1
  # @pioneer-platform/pioneer-cache
2
2
 
3
+ ## 1.15.0
4
+
5
+ ### Minor Changes
6
+
7
+ - chore: feat(pioneer-server): Migrate from Bun to Node.js for Blockbook WebSocket compatibility
8
+
9
+ ## 1.14.0
10
+
11
+ ### Minor Changes
12
+
13
+ - feat(pioneer-server): Migrate from Bun to Node.js for Blockbook WebSocket compatibility
14
+
15
+ ## 1.13.0
16
+
17
+ ### Minor Changes
18
+
19
+ - feat(pioneer-server): Migrate from Bun to Node.js for Blockbook WebSocket compatibility
20
+
21
+ ## 1.12.0
22
+
23
+ ### Minor Changes
24
+
25
+ - feat(pioneer-server): Migrate from Bun to Node.js for Blockbook WebSocket compatibility
26
+
27
+ ## 1.11.0
28
+
29
+ ### Minor Changes
30
+
31
+ - feat(pioneer-server): Migrate from Bun to Node.js for Blockbook WebSocket compatibility
32
+
3
33
  ## 1.10.1
4
34
 
5
35
  ### Patch Changes
@@ -16,6 +16,7 @@ export interface ChartData {
16
16
  icon?: string;
17
17
  type?: string;
18
18
  decimal?: number;
19
+ decimals?: number;
19
20
  }
20
21
  /**
21
22
  * Full portfolio data for a pubkey set
@@ -279,7 +279,7 @@ class PortfolioCache extends base_cache_1.BaseCache {
279
279
  valueUsd,
280
280
  icon: assetInfo.icon || '',
281
281
  type: assetInfo.type || 'native',
282
- decimal: assetInfo.decimal
282
+ decimal: assetInfo.decimals ?? assetInfo.decimal // FIX: Try plural first, fallback to singular
283
283
  };
284
284
  return chartData;
285
285
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pioneer-platform/pioneer-cache",
3
- "version": "1.10.1",
3
+ "version": "1.15.0",
4
4
  "description": "Unified caching system for Pioneer platform with Redis backend",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -26,6 +26,7 @@ export interface ChartData {
26
26
  icon?: string;
27
27
  type?: string; // 'native', 'token', etc.
28
28
  decimal?: number;
29
+ decimals?: number; // For backward compatibility with both naming conventions
29
30
  }
30
31
 
31
32
  /**
@@ -362,7 +363,7 @@ export class PortfolioCache extends BaseCache<PortfolioData> {
362
363
  valueUsd,
363
364
  icon: assetInfo.icon || '',
364
365
  type: assetInfo.type || 'native',
365
- decimal: assetInfo.decimal
366
+ decimal: assetInfo.decimals ?? assetInfo.decimal // FIX: Try plural first, fallback to singular
366
367
  };
367
368
 
368
369
  return chartData;