Php-version-compare

Latest version: v1.1.2

Safety actively analyzes 682387 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

1.1.2

What's Changed

* Add support for Python 3.14

**Full Changelog**: https://github.com/marcfrederick/php-version-compare/compare/v1.1.1...v1.1.2

1.1.1

What's Changed

* Added documentation hosted on [Read The Docs](https://php-version-compare.readthedocs.io/en/latest/)

**Full Changelog**: https://github.com/marcfrederick/php-version-compare/compare/v1.1.0...v1.1.1

1.1.0

What's Changed

* Narrowed the return-type of `version_compare` from `int` to `Union[-1, 0, 1]`. This ensures better type safety and compatibility with type checkers. For example, the following code will now pass the type checker:
python
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")

1.0.1

What's Changed

* Updated "Development Status" to "5 - Production/Stable"
* Added PyPI keywords to the `pyproject.toml`
* Refactored `_split_version` to avoid some unnecessary `str.join` calls

**Full Changelog**: https://github.com/marcfrederick/php-version-compare/compare/v1.0.0...v1.0.1

1.0.0

What's Changed

* Add project status to the `README.md`
* Add the PHP-license and a `NOTICE` to the `tests/` directory
* Improve testing instructions

**Full Changelog**: https://github.com/marcfrederick/php-version-compare/compare/v0.2.2...v1.0.0

0.2.2

What's Changed

* Introduced a `_split_version` helper function to avoid unnecessary string concatenations

**Full Changelog**: https://github.com/marcfrederick/php-version-compare/compare/v0.2.1...v0.2.2

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.