All notable changes to cybercog/youtrack-rest-php
will be documented in this file.
8.0.0 - 2024-02-22
- (#59) Added Docker dev environment
- (#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
- (#57) Changed default endpoint prefix from
rest
toapi
6.3.0 - 2021-01-01
- (#51) Added PHP 8.x support
6.2.2 - 2020-07-19
- (#49) Fixes from PHPStan static analysis
6.2.1 - 2020-07-19
- (#48) Fix $endpointPathPrefix class parameter
6.2.0 - 2019-10-18
- (#43) Configurable API endpoint prefix
6.1.0 - 2018-06-30
- (#40) Multipart requests support for attachments uploads
- (#41) Add missing
array
type to$options
argument ofbuildOptions
method ofCog\YouTrack\Rest\Client\YouTrackClient
6.0.2 - 2017-01-10
Cog\YouTrack\Rest\Client\YouTrackClient
endpoint prefix is relative now (#39)
6.0.0 - 2017-11-20
Cog\YouTrack\Rest\Authorizer\CookieAuthorizer
stopped to delegate client header manipulation toAuthenticator
(#32)token
method added toCog\Contracts\YouTrack\Rest\Authenticator\Authenticator
contractCog\Contracts\YouTrack\Rest\Client\Exceptions\ClientException
extendsRuntimeException
instead ofException
Cog\Contracts\YouTrack\Rest\Client\Exceptions\HttpClientException
extendsRuntimeException
instead ofException
Cog\Contracts\YouTrack\Rest\Authorizer\Exceptions\InvalidTokenException
renamed toInvalidAuthorizationToken
- Dropped
putHeader
method fromCog\Contracts\YouTrack\Rest\Client\Client
contract
5.0.0 - 2017-09-13
- Exceptions moved to
Cog\Contracts\YouTrack
namespace (#34).
4.0.0 - 2017-08-27
- Contracts extracted to
Cog\Contracts\YouTrack
package (#32).Cog\YouTrack\Rest\Authenticator\Contracts
moved toCog\Contracts\YouTrack\Rest\Authenticator
Cog\YouTrack\Rest\Authorizer\Contracts
moved toCog\Contracts\YouTrack\Rest\Authorizer
Cog\YouTrack\Rest\Client\Contracts
moved toCog\Contracts\YouTrack\Rest\Client
Cog\YouTrack\Rest\Client\HttpContracts
moved toCog\Contracts\YouTrack\Rest\HttpClient
Cog\YouTrack\Rest\Client\Response
moved toCog\Contracts\YouTrack\Rest\Response
3.2.0 - 2017-07-29
withHeader
,withHeaders
methods toClient
contract.isClientError
&isServerError
asserts inResponse
contract.
putHeader
method marked as deprecated to keep naming consistency and aliased towithHeader
.
3.1.0 - 2017-05-25
isSuccess
&isReponse
asserts toResponse
contract.header
&body
methods toResponse
contract.
3.0.0 - 2017-05-22
Authenticator
contract andCookieAuthenticator
implementation.HttpClient
contract andGuzzleHttpClient
implementation.isStatusCode
assert toResponse
contract.
CookieAuthorizer
constructor acceptsAuthenticator
instead of credentials.TokenAuthorizer
constructor accepts string token instead of array.Authorizer
delegates authentication toAuthenticator
.Client
delegates HTTP requests toHttpClient
.- Changed namespace of
AuthenticationException
. getHeaders
method was dropped fromAuthorizer
contract.Response
interface methodsgetResponse
,getStatusCode
,getCookie
,getLocation
were renamed tohttpResponse
,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 toClient
methods:request
,get
,post
,put
,delete
.
2.0.1 - 2017-05-21
- Dropped Client
getAuthorizer
&setAuthorizer
rudiment methods.
- Initial release.