Releases: Dropelikeit/PriceCalculator
v5.0.1
What's Changed
- Update various files to prefer PHP 8.1 and PHPUnit 10.5 or 11.0, remo… by @Dropelikeit in #25
Full Changelog: v5.0.0...v5.0.1
Stable Release
In this version we removed support for PHP 7.4. This library only supports PHP >=8.0. We have updated all dependencies and added better documentation of all classes.
BC's like price entity are documented in the UPGRADE-5.x.md.
Major Pre Release
In this release we updated all dev dependencies and added new interfaces for the Vat and Discount calculator.
Breaking Change:
We have changed the VAT module as well as the VatCalculator facade, they no longer accept integers but floats and return floats. We felt this step was necessary and will use union types for this code location (int|float $vat) starting with the PHP 7.4 deprecation.
Minor Release
In this release we have updated all dependencies,
all the errors in the baseline have been corrected and it has been deleted as a result.
This package can now also be used with PHP version 8.0.
This release does not contain BC.
Stable Release V4
Note: This update contains Break Changes [BC]!
In this release we have added type safety for class properties. Version >= 4.0 can therefore only be used with PHP 7.4 and higher.
What's new?
- The Declare-Strict Mode has been added to every file. We want to use type security properly.
- Added feature tests to ensure that the workflow works and not just the individual class.
- All Composer packages have been updated. PHPUnit 9 is now in use. PHPStan is now used with the "baseline" feature.
- Missing ReturnTypes have been added.
Stable Release V3
Note: This update contains Break Changes [BC]!
In this release, we have filled the existing interfaces with methods. Furthermore, we replaced the "isZeroAmount" method of the converter with an "isEmpty" method, the exception thrown in the "isZeroAmount" method when the amount was 0 was completely removed. If the amount is 0, 0 is returned.
What's new?
We have greatly improved our PHPUnit tests and added additional feature tests. We also added PHPStan and helpful Composer commands. We have also made some improvements to the production code.
BugFix Release V2.1.2
Since version 2.0 we have added some improvements to the price calculator. Unfortunately, with this improvement we have also implemented a miscalculation of the sales tax of one cent. With this bugfix release we now fix this bug.
Stable Release V2
Note: This update contains Break Changes [BC]!
Namespaces of the interface have changed, these are no longer contained in the folder Entity but under the folder Types, also the namespace of the CurrencyConverter has been changed, these are now under Converter\Currencies.
In this update, facades were added for the price calculator and the unit converter. They should help to call the respective classes more simply.
Among other things, a calculation error was fixed that resulted from incorrect rounding.
Furthermore, we have created a discount class and thus make it possible to determine discounts by the total amount.
All changes were tested by several test cases.
Stable release
With this release we would like to offer the price calculator as a stable package.
Alpha2 Release
In this release we have adapted the type hints and return types to the price calculator class. All methods that were integer type parameters have been changed as well as the return types.