Skip to content

v1.7.3

Compare
Choose a tag to compare
@dvdoug dvdoug released this 28 Sep 18:52
· 1 commit to 1.x since this release

Added

  • Support for PHP 8.0

Changed

  • Optimisation when packing a large number of items
  • Improved efficiency in packing and weight distribution
  • The ItemList passed to VolumePacker's constructor is now cloned before usage, leaving the passed-in object unaffected. Previously this was used as a working dataset. The new behaviour aligns with the existing behaviour of Packer

Fixed

  • Fixed issue where internal sort consistency wasn't always correct
  • Fixed situation where internal WorkingVolume could be passed into a constraint callback, rather than the calling application's own Box
  • Fixed issue where the list of previously packed items passed into a constraint callback was not correct

Removed

  • Making the test suite compatible with PHP 8.0 has necessitated the removal of support for PHP 5.4 - 7.0 (see note below)

v1 of BoxPacker is in maintenance mode only, all users are encouraged to update to v3. This release has been made primarily to certify PHP 8 compatibility, unless an egregious bug is discovered (e.g. a physically impossible packing) this will be the last v1 release that includes any changes to core packing logic. (Any) further releases will be limited to compatibility with future PHP versions.