Skip to content

v2.0.0-rc1

Pre-release
Pre-release
Compare
Choose a tag to compare
@robbieaverill robbieaverill released this 01 Mar 19:59
· 21 commits to master since this release
v2.0.0-rc1
6fbf8a3

Overview

Release candidate for v2.0.0 introduces a minimum of PHP 7.4, and a number of other changes, including:

  • Strict types, adjusted method parameter and return types
  • Exception thrown when a package was not found
  • New methods Client::getComposer(), Client::getComposerReleases(), Client::getComposerBranches() for more granular and cacheable Packagist metadata
  • Support for handling Packagist 2.0 API response structure

Change history

  • Requesting a package that results in a 404 now throws a PackageNotFoundException (Robbie Averill) - 7e8b332
  • Refactor logic in multiRespond(), update getComposer() doc block, fix tests (Robbie Averill) - 5791523
  • fix: getComposer method (Andrea Giannantonio) - 9bc68b0
  • Mark shasum and reference property of Dist as nullable (jdrieghe) - ca44317
  • Decouple Dist from Source object. (jdrieghe) - c0d32f1
  • Add tests to prove that nullable reference or shasum in Dist will cause the object hydration to fail (jdrieghe) - 82a7266
  • Run CI on pull requests as well as push (Robbie Averill) - b8eeec1
  • Fix the handling of minified metadata responses (Christophe Coevoet) - bc3a194
  • Update badge in readme (Robbie Averill) - 6e09b6f
  • Use PHP 8.0 in CI (Robbie Averill) - 00cec8e
  • Replace Travis CI with GitHub Actions (Robbie Averill) - 9f64ad7
  • Fix the specs to pass (Christophe Coevoet) - 89cfb7f
  • feat: add method to fetch package info from new composer 2 api and override getComposer to use new api (Andrea Giannantonio) - 179847d
  • Fix broken unit test (Robbie Averill) - ca668d4
  • fix limit check in search (Massimiliano Arione) - 3bd3a7b
  • Avoid strict typing errors (Ingo Schommer) - e45df2b
  • Update src/Packagist/Api/Result/Factory.php (Ingo Schommer) - 0837c9a
  • Update README.md (Ingo Schommer) - c2d2264
  • NEW getComposer() for more efficient Packagist API usage (Ingo Schommer) - 37a9b1e
  • Update return types, make licenses an array, update phpspec tests (Robbie Averill) - 2086ee8
  • Run automated PSR-12 linting (Robbie Averill) - 75091f0
  • Update specs to use short array syntax and public function visibility (Robbie Averill) - 9610cc3
  • Add scalar return types and property types (Robbie Averill) - dc5089e
  • Add PSR-4 autoloader for spec folder, remove custom bin directory (Robbie Averill) - ced5f92
  • Increase minimum required PHP version to 7.4, swap PSR-0 for PSR-4 autoloader (Robbie Averill) - c1758b5