Changes
- fix(format): humanStorageSize unit near a boundary -> the unit was picked from the raw value while the output shows the rounded one, so a size just below a boundary rounded up to 1024 of the smaller unit:
1048575gave1024.0KBand1023.5with 0 decimals gave1024B. These now read1.0MBand1KB(#18604) - fix(format): humanStorageSize with negative values -> a negative size never left the
Bunit (-2048gave-2048.0B). The unit is now picked from the magnitude, so it reads-2.0KB(#18604) - fix(format): humanStorageSize input handling -> a numeric string is now accepted whatever its size (
'500'used to throw while'2048'worked), and the types allownumber | string. Any other value throws aTypeErrorwith a clear message. Behavior change:NaNused to returnNaNBand now throws too (#18604)
Donations
Quasar Framework is an open-source MIT-licensed project made possible due to the generous contributions by sponsors and backers. If Quasar is useful in your workflow and you want to support ongoing maintenance, please consider the following: