Releases: marcfrederick/php-version-compare
Releases · marcfrederick/php-version-compare
v1.1.2
v1.1.1
v1.1.0
What's Changed
- Narrowed the return-type of
version_comparefrominttoUnion[-1, 0, 1]. This ensures better type safety and compatibility with type checkers. For example, the following code will now pass the type checker:from php_version_compare import version_compare match version_compare("1.0.0", "1.0.1"): case -1: print("LESS") case 0: print("EQUAL") case 1: print("GREATER")
v1.0.1
What's Changed
- Updated "Development Status" to "5 - Production/Stable"
- Added PyPI keywords to the
pyproject.toml - Refactored
_split_versionto avoid some unnecessarystr.joincalls
Full Changelog: v1.0.0...v1.0.1
v1.0.0
What's Changed
- Add project status to the
README.md - Add the PHP-license and a
NOTICEto thetests/directory - Improve testing instructions
Full Changelog: v0.2.2...v1.0.0
v0.2.2
What's Changed
- Introduced a
_split_versionhelper function to avoid unnecessary string concatenations
Full Changelog: v0.2.1...v0.2.2
v0.2.1
What's Changed
- Added some additional examples to the
README.md - Updated the project description in the
pyproject.toml - Added bump-my-version to simplify the release process
Full Changelog: v0.2.0...v0.2.1
v0.2.0
What's Changed
- Added an optional
operatorargument toversion_compare, which behaves like the equivalent argument in PHP - Added some badges to the
README.md
Full Changelog: v0.1.0...v0.2.0
v0.1.0
What's Changed
- Initial release
Full Changelog: https://github.com/marcfrederick/php-version-compare/commits/v0.1.0