Skip to content

Commit

Permalink
Merge pull request #5 from tal7aouy/rounding-mode
Browse files Browse the repository at this point in the history
change log and version
  • Loading branch information
tal7aouy authored Jan 4, 2025
2 parents 41daa8d + 20050b3 commit f0be970
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,16 @@ All notable changes to this project will be documented in this file.

- update readme
- specify a maximum number of significant digits for a number
## [1.3.0] (Mar-24-2023)

## [1.3.0] (Mar-24-2023)

- update readme
- specify a maximum number of significant digits for a number


## [1.4.0] (Upcoming)

### Added

- **Custom base scaling**: Introduced the `base` option, allowing users to specify a custom base for scaling numbers (e.g., 1000 or 1024 for file sizes).
- **Rounding mode**: Added `roundingMode` option with values `'up'`, `'down'`, or `'nearest'` to control how numbers are rounded.
- **Threshold for formatting**: Added `threshold` option to set a minimum value for applying unit conversion (below the threshold, the number will be returned as-is).
Expand All @@ -38,4 +39,9 @@ All notable changes to this project will be documented in this file.
- **Custom number format**: Added the `numberFormat` option, which allows the use of a custom function to format numbers before unit conversion.

### Updated

- **Documentation**: Updated the README to reflect the new options added in this release.

## [1.5.0] (Jan-04-2025)

- Add rounding mode
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aveta",
"version": "1.4.1",
"version": "1.5.2",
"description": "Convert long numbers into abbreviated and human-readable strings.",
"main": "build/aveta.js",
"types": "build/aveta.d.ts",
Expand Down Expand Up @@ -57,4 +57,4 @@
"dependencies": {
"yargs": "^17.3.1"
}
}
}

0 comments on commit f0be970

Please sign in to comment.