Skip to content

Releases: 514sid/num

v2.1.0

25 Nov 10:59
Compare
Choose a tag to compare

v2.1.0 Release Notes

Bug Fixes

  • Resolved an issue where string trimming was not applied before sanitizing, causing incorrect handling of test cases like [' - 0.56 ', -0.56, 0]. The implementation now trims strings before sanitizing, ensuring accurate results.

Features

  • Scientific Notation Support:
    • Now the Num helper supports handling scientific notation, enabling more versatile use cases.
    • Test cases have been added to validate the scientific notation functionality:
      • ['1.23e3', 1230.0, 1230]
      • ['-5.67e-4', -0.000567, 0]

Miscellaneous

  • Minor optimizations and code improvements.

I appreciate your feedback and contributions. Please feel free to report any issues or suggest enhancements.

v2.0.0

03 Sep 07:27
Compare
Choose a tag to compare
php ^8.1 version

v1.5.3

03 Sep 07:27
Compare
Choose a tag to compare
remove enums for php 8.0 support

v1.5.2

03 Sep 06:20
Compare
Choose a tag to compare
add null values support

v1.5.1

25 Aug 10:44
Compare
Choose a tag to compare
encapsulate initial value sanitizing logic

v1.5.0

21 Aug 17:34
Compare
Choose a tag to compare
refactor tests

v1.4.0

15 Aug 15:33
Compare
Choose a tag to compare
add laravel casts support

v1.3.4

14 Aug 20:38
Compare
Choose a tag to compare
add support for negative values

v1.3.3

14 Aug 11:13
Compare
Choose a tag to compare
number validation improvements

v1.3.2

14 Aug 10:43
Compare
Choose a tag to compare
remove the redundant check