Skip to content

Releases: marcfrederick/php-version-compare

v1.1.2

24 Oct 12:36
v1.1.2
b91c24e

Choose a tag to compare

What's Changed

  • Add support for Python 3.14

Full Changelog: v1.1.1...v1.1.2

v1.1.1

15 Sep 20:53
v1.1.1
c2c91d1

Choose a tag to compare

What's Changed

Full Changelog: v1.1.0...v1.1.1

v1.1.0

06 Sep 12:45
v1.1.0
5282e5a

Choose a tag to compare

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:
    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

04 Sep 14:58
v1.0.1
db3884c

Choose a tag to compare

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: v1.0.0...v1.0.1

v1.0.0

04 Sep 11:01
v1.0.0
3accfcd

Choose a tag to compare

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: v0.2.2...v1.0.0

v0.2.2

04 Sep 10:40
v0.2.2
35a554c

Choose a tag to compare

What's Changed

  • Introduced a _split_version helper function to avoid unnecessary string concatenations

Full Changelog: v0.2.1...v0.2.2

v0.2.1

03 Sep 21:06
v0.2.1
2b0ce4b

Choose a tag to compare

What's Changed

  • Added some additional examples to theREADME.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

03 Sep 20:50
v0.2.0
c4ff55e

Choose a tag to compare

What's Changed

  • Added an optional operator argument to version_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

03 Sep 15:06
v0.1.0
ee9cf43

Choose a tag to compare

What's Changed

  • Initial release

Full Changelog: https://github.com/marcfrederick/php-version-compare/commits/v0.1.0