Skip to content

Commit

Permalink
update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
d8vjork committed Dec 25, 2023
1 parent 702cdd7 commit dde79a8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [2.1.0] - 2023-12-25

### Added

- `ByteUnitConverter::nearestUnit()` method to convert to nearest byte unit (and metric system):

```php
(string) ByteUnitConverter::new("1024")->nearestUnit(MetricSystem::Binary); // 1 KiB
(string) ByteUnitConverter::new("500")->nearestUnit(stoppingAt: ByteUnit::KB); // 0.50 KB
```

## [2.0.1] - 2023-12-25

### Fixed
Expand Down

0 comments on commit dde79a8

Please sign in to comment.