Skip to content

Releases: TruckersMP/API-Client

v2.2.2

26 Apr 16:16
f37af2d
Compare
Choose a tag to compare

v2.2.2 (2024-04-26)

Added

  • Support PHP 8.3 (#56)
  • Support Illuminate Collections 11.x (f37af2d)

v2.2.1

26 Nov 17:33
55a4c83
Compare
Choose a tag to compare

v2.2.1 (2023-11-26)

Added

  • Added event meetup date (#55)

Changed

  • Harmonization of shield styles (#53)

New Contributors

v2.2.0

06 Mar 21:44
672b6be
Compare
Choose a tag to compare

v2.2.0 (2023-03-06)

Added

  • Added is_owner field to CompanyMember (#49)
  • Added user events (#50)
  • Added the player's company history (#51)
  • Added attending companies to events (#52)

v2.1.1

18 Feb 10:13
bb4b1bd
Compare
Choose a tag to compare

v2.1.1 (2023-02-18)

Added

  • Support Illuminate Collections 10.x (bb4b1bd)

v2.1.0

18 Feb 10:03
a98758d
Compare
Choose a tag to compare

v2.1.0 (2023-02-18)

Deprecated

  • Deprecated the CompanyBan model as a duplicate in favor of CompanyMember (#46)
  • Deprecated getConfirmed() and getUnsure() methods of EventAttendance in favor of collections (a98758d)
  • Deprecated Player::getCompanyRole() due to invoking another unexpected internal request (a98758d)
  • Deprecated Player::patreon() which has been replaced by the new Player::getPatreon() getter (a98758d)

Added

  • Support PHP 8.2 (#45)
  • Created a base class for entity models (#48)
  • Added types to model attributes (supporting PHP 7.4) (#48)

Fixed

  • Fixed the start_at type in Event (a98758d)
  • Fixed parameter types for the company key in requests, allowing both string and numbers (a98758d)
  • Fixed the ProMods name in Server (M is supposed to be upper case) (a98758d)

Changed

  • API and model tests are now being mocked instead of sending real API requests (#48)
  • Moved the HTTP client to the API client. This helps to mock or override the client/config (#48)
  • Moved the API configuration to the API client (#48)

v2.0.1

21 Nov 16:06
911e1c1
Compare
Choose a tag to compare

v2.0.1 (2022-11-21)

Fixed

  • Fixed failing tests due to the test company no longer being available (1fa0496)

Changed

  • Updated all hyperlinks to the new documentation (#44)

v2.0.0

05 Mar 20:07
Compare
Choose a tag to compare

v2.0.0 (2022-03-05)

Breaking Changes

  • Removed support for PHP 7.3 and prior (#29)
  • Replaced custom collections with Illuminate Collections (#33)
  • Replaced Guzzle Adapter with Guzzle HTTP (#26)

Added

  • Implemented (VTC) event endpoints (#31)
  • Implemented banned company members endpoint (#36)
  • Allow searching with company slug (#37)
  • Added updatedAt & publishedAt timestamps to the CompanyPost model (#35)
  • Added active ban count to the Player model (#39)
  • Added map ID to the Server model (#40)
  • Added examples (#26)
  • Support PHP 8 (#27)

Fixed

  • Fixed failing tests due to company post no longer existing (#25)
  • Fixed PHPUnit formatting and ignore examples folder during export (#26)
  • Fixed typos and grammatical errors (#34)
  • Fixed a minor typo in README (#38)

Changes

  • Made the Company website property nullable (#32)
  • Minor code changes to game time calculation (#41)

Repository Changes

  • Updated Github actions workflow (#25)
  • Removed composer.lock file (#29)

v1.2.0

18 Jul 11:55
33eb977
Compare
Choose a tag to compare

v1.2.0 (2020-07-18)

Added

  • Added if the player is a staff member and/or is part of the upper staff (#20)
  • Added the ability to get the users Patreon information (#20)

Changed

  • Updated composer dependencies (#20)
  • Changed the test names to include underscores - this makes the names slightly easier to read (#20)

v1.1.1

20 Jun 11:32
12bc0e7
Compare
Choose a tag to compare

v1.1.1 (2020-06-20)

Added

  • Added the ability to get player's Discord Snowflake (#19)
  • Added the ability to get the color of player's group (#19)

Changed

  • Updated all dependencies (#19)

v1.1.0

12 May 10:06
Compare
Choose a tag to compare

v1.1.0 (2020-05-12)

Added

  • Added the ability to get the companies validation status (i.e. if they are validated or not) (#17)

Changed

  • Cleaned up the project by adding missing documentation, return types and spacing within PHPDocs (#17)
  • Changed StyleCI and tests to test against PSR12 (#17)
  • Updated composer dependencies (#17)