From 20050b361897e7843bd0dba94b49e06d70e0fbdb Mon Sep 17 00:00:00 2001 From: tal7aouy Date: Sat, 4 Jan 2025 23:02:35 +0100 Subject: [PATCH] change log and version --- CHANGELOG.md | 10 ++++++++-- package.json | 4 ++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4786e04..6767c5d 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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). @@ -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 diff --git a/package.json b/package.json index c53acd4..5a64aa7 100755 --- a/package.json +++ b/package.json @@ -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", @@ -57,4 +57,4 @@ "dependencies": { "yargs": "^17.3.1" } -} +} \ No newline at end of file