All notable changes to this project will be documented in this file.
This projects adheres to Semantic Versioning and Keep a CHANGELOG.
2.4.4 - 2024-10-02
- Escape
$alphabetic_code
in exception message. (9266be4) - Fixed PHPStan issue. (3e3e948)
- Fixed code quality issues. (175ad84)
- Happy 2024. (5709d5d)
Full set of changes: 2.4.3...2.4.4
2.4.3 - 2023-11-06
- Removed unnecessary space after "Comorian Franc". (e5b195b)
Full set of changes: 2.4.2...2.4.3
2.4.2 - 2023-10-30
Full set of changes: 2.4.1...2.4.2
2.4.1 - 2023-09-11
- Ignore /docs folder. (7867afd)
Full set of changes: 2.4.0...2.4.1
2.4.0 - 2023-03-21
- Added
is_zero()
function. (0ebce4a)
Full set of changes: 2.3.0...2.4.0
2.3.0 - 2023-03-21
- Set Composer type to "wordpress-plugin". (1951851)
- Added
negative
function. (69f7343) - Use
Yoast/PHPUnit-Polyfills
. (f100606) - Created .gitattributes (dc50445)
- Changed
pronamic/wp-number
from^1.2
tov1.3.0
. Release notes: https://github.com/pronamic/wp-number/releases/tag/v1.3.0
Full set of changes: 2.2.1...2.3.0
2.2.1 - 2023-01-31
- Changed
php
from>=8.0
to>=7.4
. Full set of changes:2.2.0...2.2.1
2.2.0 - 2022-12-19
- Update
pronamic/wp-number
to version^1.2
. Full set of changes:2.1.0...2.2.0
2.1.0 - 2022-12-19
- Increased minimum PHP version to version
8
or higher. - Improved support for PHP
8.1
and8.2
. - Removed usage of deprecated constant
FILTER_SANITIZE_STRING
.
Full set of changes: 2.0.3...2.1.0
2.0.3 - 2022-09-27
- Update plugin version number.
2.0.2 - 2022-09-23
- Coding standards.
2.0.1 - 2022-01-10
- Updated
pronamic/wp-number
library to version1.1.0
.
2.0.0 - 2021-08-05
- Use
pronamic/wp-number
library. - Simplified JSON, always include currency, without it's just a number value.
- Function
get_minor_units
will now return aNumber
object. - No longer use i18n in the 'normal'
format()
funciton. - Validate alphabetic code.
- Added money amount number format helper functions.
- Added taxed money test.
- Added test for unknown currency.
- Removed deprecated
get_cents
function.
1.2.6 - 2021-04-26
- Happy 2021.
- composer bin all update
- Added GitHub action Super-Linter.
- Fix Psalm issues.
- Remove Travis hhvm test.
1.2.5 - 2020-07-08
- Added support for parsing negative amounts and
5,-
notation for amounts without minor units. - Updated currency symbols.
1.2.4 - 2020-02-03
- Return cloned object in calculator methods.
1.2.3 - 2019-12-18
- Fix calling method on string in subtraction.
- Use non-locale aware float values.
1.2.2 - 2019-07-22
- Fix floating point precision issue when converting to cents.
- Add method
Money::format()
which uses the number of decimals from currency. - Add method
Money::format_i18n_non_trailing_zeros()
and%2$NTZ
formatting directive. - Add calculator classes and functions.
- Add ISO 4217 currencies.
- Deprecate
Money::get_cents()
in favor ofMoney::get_minor_units()
. - Require PHP >= 5.6.20.
1.2.1 - 2019-03-27
- Added
get_minor_units
method based on decimals of currency. - Updated copyright to 2005-2019 Pronamic.
1.2.0 - 2018-12-10
- Added a
get_cents
method. - Introduced a TaxedMoney class.
- Renamed
amount
tovalue
.
1.1.0 - 2018-08-16
- Added a money parser class.
- First release.