Skip to content

Commit c4cf0fc

Browse files
algoflowsclaude
andcommitted
docs(econify): update changelog for v1.3.1
- Document period-total time normalization fix for discrete types - Add technical details about the implementation - Version 1.3.1 release notes 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 657dfe5 commit c4cf0fc

1 file changed

Lines changed: 18 additions & 9 deletions

File tree

packages/econify/CHANGELOG.md

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,28 @@ All notable changes to the econify package will be documented in this file.
66

77
### Fixed
88

9-
- **Period-Total Time Normalization for Discrete Types**: Fixed incorrect time normalization of count indicators with `period-total` temporal aggregation
10-
- Tourist Arrivals and other count indicators no longer incorrectly time-normalized
11-
- Example: 520,394 tourists in Q2 now correctly stays as 520,394, not divided by 3 to get 173,465 tourists/month
12-
- Discrete types (count, volume, stock, index) with `period-total` now block time conversion
13-
- Flow-like types (flow, balance, rate) with `period-total` still allow time conversion (GDP, exports, etc.)
14-
- Added smart logic in `allowsTimeConversion()` to check indicator type when temporal_aggregation is `period-total`
9+
- **Period-Total Time Normalization for Discrete Types**: Fixed incorrect time
10+
normalization of count indicators with `period-total` temporal aggregation
11+
- Tourist Arrivals and other count indicators no longer incorrectly
12+
time-normalized
13+
- Example: 520,394 tourists in Q2 now correctly stays as 520,394, not divided
14+
by 3 to get 173,465 tourists/month
15+
- Discrete types (count, volume, stock, index) with `period-total` now block
16+
time conversion
17+
- Flow-like types (flow, balance, rate) with `period-total` still allow time
18+
conversion (GDP, exports, etc.)
19+
- Added smart logic in `allowsTimeConversion()` to check indicator type when
20+
temporal_aggregation is `period-total`
1521

1622
### Technical Details
1723

1824
- Modified `packages/econify/src/normalization/indicator_type_rules.ts`
19-
- Updated `allowsTimeConversion()` function's `period-total` case to check if indicator type is discrete
20-
- Discrete types: ["count", "volume", "stock", "index"] → block time conversion for period-totals
21-
- Flow-like indicators still allow conversion as their totals represent rates over time
25+
- Updated `allowsTimeConversion()` function's `period-total` case to check if
26+
indicator type is discrete
27+
- Discrete types: ["count", "volume", "stock", "index"] → block time conversion
28+
for period-totals
29+
- Flow-like indicators still allow conversion as their totals represent rates
30+
over time
2231

2332
## [1.3.0] - 2025-01-10
2433

0 commit comments

Comments
 (0)