diff --git a/.changeset/round-cumulative-breakdown.md b/.changeset/round-cumulative-breakdown.md deleted file mode 100644 index 8f09dc0..0000000 --- a/.changeset/round-cumulative-breakdown.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@epilot/pricing": minor ---- - -`computeCumulativeValue` rounds its `breakdown` for display like its totals: each tier's `quantityUsed` to 2 decimals and its `totalAmountDecimal` to 2 decimals (`precision: 2`, as `total` is). A quantity normalised from a yearly consumption used to show as `83.333333 kWh` with an amount of `€28.333333333333`. `tierAmountDecimal` keeps the tier's real precision, and `totalWithPrecision` / `subtotalWithPrecision` are unchanged. diff --git a/CHANGELOG.md b/CHANGELOG.md index 41b5b2c..c77fac4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## 5.10.0 + +### Minor Changes + +- dd0736b: `computeCumulativeValue` rounds its `breakdown` for display like its totals: each tier's `quantityUsed` to 2 decimals and its `totalAmountDecimal` to 2 decimals (`precision: 2`, as `total` is). A quantity normalised from a yearly consumption used to show as `83.333333 kWh` with an amount of `€28.333333333333`. `tierAmountDecimal` keeps the tier's real precision, and `totalWithPrecision` / `subtotalWithPrecision` are unchanged. + ## 5.9.2 ### Patch Changes diff --git a/package.json b/package.json index f833748..e768924 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@epilot/pricing", - "version": "5.9.2", + "version": "5.10.0", "description": "Pricing Library", "main": "./dist/cjs/index.cjs", "module": "./dist/esm/index.mjs",