Skip to content

Releases: Dropelikeit/PriceCalculator

v5.0.1

20 May 18:13
e798199
Compare
Choose a tag to compare

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

17 Jan 18:26
41ca2d6
Compare
Choose a tag to compare

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

12 Sep 19:37
6da1f8d
Compare
Choose a tag to compare
Major Pre Release Pre-release
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

27 Feb 23:30
cf966b2
Compare
Choose a tag to compare

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

25 Feb 07:25
6914eac
Compare
Choose a tag to compare

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

03 Dec 22:28
562acc2
Compare
Choose a tag to compare

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

03 Nov 00:53
6c2d0fe
Compare
Choose a tag to compare

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

28 Apr 11:17
61fbf0a
Compare
Choose a tag to compare

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

16 Mar 23:01
1e00862
Compare
Choose a tag to compare

With this release we would like to offer the price calculator as a stable package.

Alpha2 Release

30 Jan 22:33
1e00862
Compare
Choose a tag to compare
Alpha2 Release Pre-release
Pre-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.