You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

121 lines
3.2 KiB

3 years ago
  1. # Changelog
  2. All notable changes to phar-io/version are documented in this file using the [Keep a CHANGELOG](http://keepachangelog.com/) principles.
  3. ## [3.1.0] - 2021-02-23
  4. >### Changed
  5. - Internal Refactoring
  6. - More scalar types
  7. ### Added
  8. - [#24](https://github.com/phar-io/version/issues/24): `Version::getOriginalString()` added (Thanks @addshore)
  9. - Version constraints using the caret operator (`^`) now honor pre-1.0 releases, e.g. `^0.3` translates to `0.3.*`)
  10. - Various integration tests for version constraint processing
  11. ### Fixed
  12. - [#23](https://github.com/phar-io/version/pull/23): Tilde operator without patch level
  13. ## [3.0.4] - 14.12.2020
  14. ### Fixed
  15. - [#22](https://github.com/phar-io/version/pull/22): make dev suffix rank works for uppercase too
  16. ## [3.0.3] - 30.11.2020
  17. ### Added
  18. - Comparator method `Version::equals()` added
  19. ## [3.0.2] - 27.06.2020
  20. This release now supports PHP 7.2+ and PHP ^8.0. No other changes included.
  21. ## [3.0.1] - 09.05.2020
  22. __Potential BC Break Notice:__
  23. `Version::getVersionString()` no longer returns `v` prefixes in case the "input"
  24. string contained one. These are not part of the semver specs
  25. (see https://semver.org/#is-v123-a-semantic-version) and get stripped out.
  26. As of Version 3.1.0 `Version::getOriginalString()` can be used to still
  27. retrieve it as given.
  28. ### Changed
  29. - Internal Refactoring
  30. - More scalar types
  31. ### Fixed
  32. - Fixed Constraint processing Regression for ^1.2 and ~1.2
  33. ## [3.0.0] - 05.05.2020
  34. ### Changed
  35. - Require PHP 7.2+
  36. - All code now uses strict mode
  37. - Scalar types have been added as needed
  38. ### Added
  39. - The technically invalid format using 'v' prefix ("v1.2.3") is now properly supported
  40. ## [2.0.1] - 08.07.2018
  41. ### Fixed
  42. - Versions without a pre-release suffix are now always considered greater
  43. than versions with a pre-release suffix. Example: `3.0.0 > 3.0.0-alpha.1`
  44. ## [2.0.0] - 23.06.2018
  45. Changes to public API:
  46. - `PreReleaseSuffix::construct()`: optional parameter `$number` removed
  47. - `PreReleaseSuffix::isGreaterThan()`: introduced
  48. - `Version::hasPreReleaseSuffix()`: introduced
  49. ### Added
  50. - [#11](https://github.com/phar-io/version/issues/11): Added support for pre-release version suffixes. Supported values are:
  51. - `dev`
  52. - `beta` (also abbreviated form `b`)
  53. - `rc`
  54. - `alpha` (also abbreviated form `a`)
  55. - `patch` (also abbreviated form `p`)
  56. All values can be followed by a number, e.g. `beta3`.
  57. When comparing versions, the pre-release suffix is taken into account. Example:
  58. `1.5.0 > 1.5.0-beta1 > 1.5.0-alpha3 > 1.5.0-alpha2 > 1.5.0-dev11`
  59. ### Changed
  60. - reorganized the source directories
  61. ### Fixed
  62. - [#10](https://github.com/phar-io/version/issues/10): Version numbers containing
  63. a numeric suffix as seen in Debian packages are now supported.
  64. [3.1.0]: https://github.com/phar-io/version/compare/3.0.4...3.1.0
  65. [3.0.4]: https://github.com/phar-io/version/compare/3.0.3...3.0.4
  66. [3.0.3]: https://github.com/phar-io/version/compare/3.0.2...3.0.3
  67. [3.0.2]: https://github.com/phar-io/version/compare/3.0.1...3.0.2
  68. [3.0.1]: https://github.com/phar-io/version/compare/3.0.0...3.0.1
  69. [3.0.0]: https://github.com/phar-io/version/compare/2.0.1...3.0.0
  70. [2.0.1]: https://github.com/phar-io/version/compare/2.0.0...2.0.1
  71. [2.0.0]: https://github.com/phar-io/version/compare/1.0.1...2.0.0