@gala-chain/launchpad-sdk 3.15.0 → 3.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 +35 -0
- package/dist/constants/version.generated.d.ts +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,40 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.15.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fix: Correct query result destructuring in fetchPrices and fetchAllPrices methods
|
|
8
|
+
|
|
9
|
+
The fetchPrices method was incorrectly destructuring the query results, causing a "map is not a
|
|
10
|
+
function" error. Changed from destructuring the first element to properly handling the array
|
|
11
|
+
returned by executeQuery.
|
|
12
|
+
|
|
13
|
+
## 3.15.1
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Add comprehensive test coverage and example scripts for fetchPrices and fetchAllPrices methods
|
|
18
|
+
|
|
19
|
+
**SDK Changes:**
|
|
20
|
+
- Added 11 unit tests for fetchPrices and fetchAllPrices validation in
|
|
21
|
+
price-history-service.test.ts
|
|
22
|
+
- Added 19 integration tests for fetchPrices and fetchAllPrices functionality in
|
|
23
|
+
price-history-service.integration.ts
|
|
24
|
+
- Improved PriceHistoryService test coverage from 31.44% to 51.57% (+20.13 percentage points)
|
|
25
|
+
- All 1096 tests passing
|
|
26
|
+
|
|
27
|
+
**Example Scripts:**
|
|
28
|
+
- Added examples/validate-fetch-prices.ts: Validates methods without MySQL setup, shows signatures
|
|
29
|
+
and usage
|
|
30
|
+
- Added examples/fetch-prices-demo.ts: Full demonstration with 5 use cases (pagination, sorting,
|
|
31
|
+
auto-pagination, statistics)
|
|
32
|
+
|
|
33
|
+
**Test Coverage Details:**
|
|
34
|
+
- Unit Tests: Parameter validation, error handling, edge cases
|
|
35
|
+
- Integration Tests: Empty results, latest price selection, multiple tokens, pagination, sorting,
|
|
36
|
+
large datasets, auto-pagination combining
|
|
37
|
+
|
|
3
38
|
## 3.15.0
|
|
4
39
|
|
|
5
40
|
### Minor Changes
|