Skip to content

Latest commit

 

History

History
174 lines (114 loc) · 6.1 KB

CHANGELOG.md

File metadata and controls

174 lines (114 loc) · 6.1 KB

Changelog

All notable changes to cybercog/youtrack-rest-php will be documented in this file.

8.0.0 - 2024-02-22

Added

  • (#59) Added Docker dev environment

Changed

  • (#58) Bumped minimum Guzzle version to v7
  • (#59) Raised minimum PHP version to v8.1
  • (#60) Enforced class properties strict types
  • (#61) Enforced readonly modifier on class properties

7.0.0 - 2022-10-02

Changed

  • (#57) Changed default endpoint prefix from rest to api

6.3.0 - 2021-01-01

Added

  • (#51) Added PHP 8.x support

6.2.2 - 2020-07-19

Fixed

  • (#49) Fixes from PHPStan static analysis

6.2.1 - 2020-07-19

Fixed

  • (#48) Fix $endpointPathPrefix class parameter

6.2.0 - 2019-10-18

Added

  • (#43) Configurable API endpoint prefix

6.1.0 - 2018-06-30

Added

  • (#40) Multipart requests support for attachments uploads

Changed

  • (#41) Add missing array type to $options argument of buildOptions method of Cog\YouTrack\Rest\Client\YouTrackClient

6.0.2 - 2017-01-10

Changed

  • Cog\YouTrack\Rest\Client\YouTrackClient endpoint prefix is relative now (#39)

6.0.0 - 2017-11-20

Changed

  • Cog\YouTrack\Rest\Authorizer\CookieAuthorizer stopped to delegate client header manipulation to Authenticator (#32)
  • token method added to Cog\Contracts\YouTrack\Rest\Authenticator\Authenticator contract
  • Cog\Contracts\YouTrack\Rest\Client\Exceptions\ClientException extends RuntimeException instead of Exception
  • Cog\Contracts\YouTrack\Rest\Client\Exceptions\HttpClientException extends RuntimeException instead of Exception
  • Cog\Contracts\YouTrack\Rest\Authorizer\Exceptions\InvalidTokenException renamed to InvalidAuthorizationToken

Removed

  • Dropped putHeader method from Cog\Contracts\YouTrack\Rest\Client\Client contract

5.0.0 - 2017-09-13

Changed

  • Exceptions moved to Cog\Contracts\YouTrack namespace (#34).

4.0.0 - 2017-08-27

Changed

  • Contracts extracted to Cog\Contracts\YouTrack package (#32).
    • Cog\YouTrack\Rest\Authenticator\Contracts moved to Cog\Contracts\YouTrack\Rest\Authenticator
    • Cog\YouTrack\Rest\Authorizer\Contracts moved to Cog\Contracts\YouTrack\Rest\Authorizer
    • Cog\YouTrack\Rest\Client\Contracts moved to Cog\Contracts\YouTrack\Rest\Client
    • Cog\YouTrack\Rest\Client\HttpContracts moved to Cog\Contracts\YouTrack\Rest\HttpClient
    • Cog\YouTrack\Rest\Client\Response moved to Cog\Contracts\YouTrack\Rest\Response

3.2.0 - 2017-07-29

Changed

  • withHeader, withHeaders methods to Client contract.
  • isClientError & isServerError asserts in Response contract.

Updated

  • putHeader method marked as deprecated to keep naming consistency and aliased to withHeader.

3.1.0 - 2017-05-25

Added

  • isSuccess & isReponse asserts to Response contract.
  • header & body methods to Response contract.

3.0.0 - 2017-05-22

Added

  • Authenticator contract and CookieAuthenticator implementation.
  • HttpClient contract and GuzzleHttpClient implementation.
  • isStatusCode assert to Response contract.

Updated

  • CookieAuthorizer constructor accepts Authenticator instead of credentials.
  • TokenAuthorizer constructor accepts string token instead of array.
  • Authorizer delegates authentication to Authenticator.
  • Client delegates HTTP requests to HttpClient.
  • Changed namespace of AuthenticationException.
  • getHeaders method was dropped from Authorizer contract.
  • Response interface methods getResponse, getStatusCode, getCookie, getLocation were renamed to httpResponse, statusCode, cookie, location respectively.
  • User-Agent header is more verbose.
  • REST Client version is defined in Client contract instead of each concrete implementation.
  • Additional param $options was added to Client methods: request, get, post, put, delete.

2.0.1 - 2017-05-21

  • Dropped Client getAuthorizer & setAuthorizer rudiment methods.

1.0.0 - 2017-05-12

  • Initial release.