Skip to content

Releases: julien-boudry/Condorcet

Version 3.1.3

07 Dec 15:24
Compare
Choose a tag to compare

Changed

Console: Improve column width, prevent most of table cuts depending on the width of the terminal.

Version 3.2.0

30 Nov 12:20
Compare
Choose a tag to compare

Description

An important technical upgrade without many notable users changes.

Added

  • Use PHP 8.1 new features (and minimal requirements). Resulting in more modern code & performances improvements.
  • Result class now offers some publics (PHP 8.1) readonly properties in addition to getter methods.

Changed

  • New Exceptions class and Exceptions hierarchies. Users must review all usage with exceptions captures. All new Exceptions extend the old CondorcetException class. But exceptions codes are no more used. (thanks @toddy15 for help and initiative)
  • Improved documentation.
  • Method::setOption() now only accept BackEnum or int parameter.
  • StvQuotas parameters is now an Enum instead of a string.

Internal changes

  • Improved and refactored documentation generator tool.
  • Add some dev & quality tools like Infection resulting in code quality improvements and news tests (thanks @toddy15 for help and initiative).
  • Reduce Docker image size

v3.1.2

23 Nov 17:08
Compare
Choose a tag to compare

Changed

Bug fix: Command-line fatal error on NULL natural Condorcet winner / loser #72

Version 2.2.4

23 Nov 16:47
Compare
Choose a tag to compare

Changed

  • Bug fix: Command-line fatal error on NULL natural Condorcet winner / loser #72

Version 3.1.1

29 Sep 00:00
Compare
Choose a tag to compare

Added

  • __CondorcetAutoloader check for the minimal PHP version #56

Changed

  • Bugfix: KemenyYoung wrong results when using Election::removeCandidates()
  • Various documentation fixes and improvements

Internal changes

  • Docker: Upgrade Debian base image to Bullseye

Version 3.1.0

03 Aug 10:29
Compare
Choose a tag to compare

Description

Introduces support for proportional methods. And adds some.

Added

  • Minimal support for proportional methods
  • New Single Transferable Vote (STV) method, a proportional one.
  • New Options system for methods with parameters. Easier to use that extend and register class. Include new API methods.
  • New methods Multiple Round system replace Two-round system and takes advantage of the method options. This change is backward compatible.
  • Add IRV as an alias for Instant Runoff #48

Changed

  • getResult() Fix arbitrary candidate ordering on a rank. Now have consistency with getRanking and others.
  • Some console improvements in style.
  • Console: Shorten show-method-stats to method-stats #49
  • Compatibility with PHP 8.1

Internal changes

  • Small optimizations for InstantRunoff
  • Static class for tie-breaking. Used by InstantRunoff but can be useful for further uses.

Dev changes

  • CondorcetDocumentator now using PHP8 attribtues.

Version 3.0.2

28 Apr 11:34
Compare
Choose a tag to compare

Changed

  • Fix typos in command line options
  • Add command line option: --show-method-stats

Version 3.0.1

08 Dec 19:53
Compare
Choose a tag to compare

Changed

  • Bugfix Issue #32

Version 3.0

01 Dec 13:53
Compare
Choose a tag to compare

Description

Use latest PHP 8.0 functionality and improvements.

Added

  • Documentation tools code is now included in this main repository instead of composer dependency. (and it's completely refactored)
  • Most of the documentation use PHP8 Attributes instead of a big Yaml base file.

Changed

  • Refactoring Kemeny–Young code and cache system.
  • PHP8 syntax and functionality.

Version 2.2.1

17 Oct 18:29
Compare
Choose a tag to compare

Changed

  • Timer functionality is now deactivated by default for performance reason. Can be reactivated manually: php Condorcet:$UseTimer = true;
  • Code cleanup and update for PHP 8.0