All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
v2.2.0 - 2022-03-01
- New method
Redmine\Client\AbstractApi::retrieveData()
to retrieve as many elements as you want as array (even if the total number of elements is greater than 100). - New exception
Redmine\Client\SerializerException
for JSON/XML serializer related exceptions
- Allow unassign user from an issue
Redmine\Api\AbstractApi::retrieveAll()
is deprecated, useRedmine\Api\AbstractApi::retrieveData()
instead
v2.1.1 - 2022-01-15
- Special characters in comments when updating time entries will be escaped
v2.1.0 - 2022-01-04
- New interface
Redmine\Exception
that is implemented by every library-related exception - New exception
Redmine\Exception\ClientException
for client related exceptions - New exception
Redmine\Exception\InvalidApiNameException
if an invalid API instance is requested - New exception
Redmine\Exception\InvalidParameterException
for invalid parameter provided to an API instance - New exception
Redmine\Exception\MissingParameterException
for missing parameter while using an API instance
- Switched from Travis-CI to Github Actions
- Avoid warning if path of uploaded file is longer than the maximum allowed path length
Redmine\Api\AbstractApi::lastCallFailed()
is deprecated, useRedmine\Client\Client::getLastResponseStatusCode()
instead- Uploading an attachment using
Redmine\Api\Attachment::upload()
with filepath is deprectead, usefile_get_contents()
to upload the file content instead
v2.0.1 - 2021-09-22
- Fixed the handling of a response if the content type header is missing
v2.0.0 - 2021-06-08
- BREAKING: Deprecated client
Redmine\Client
was removed, useRedmine\Client\NativeCurlClient
orRedmine\Client\Psr18Client
instead - BREAKING:
src/autoload.php
was removed, use thevendor/autoload.php
from Composer instead
v1.8.1 - 2021-06-01
AbstractApi::get()
returnsnull
on empty response body instead offalse
for BC reasons- Use uppercase in HTTP verbs
v1.8.0 - 2021-04-19
- New native cURL client
Redmine\Client\NativeCurlClient
as a replacement forRedmine\Client
- This
CHANGELOG.md
file
- Better type checking thanks to typed properties
- Move
example.php
into newdocs
folder
- Drop support for PHP 7.3
Redmine\Client::getCheckSslHost()
always returns as boolean
Redmine\Client
is deprecated, useRedmine\Client\NativeCurlClient
orRedmine\Client\Psr18Client
instead- Magic getter in
Redmine\Client
is deprecated, useRedmine\Client::getApi()
instead Redmine\Client::api()
is deprecated, useRedmine\Client::getApi()
insteadRedmine\Client::get()
is deprecated, useRedmine\Client::requestGet()
insteadRedmine\Client::post()
is deprecated, useRedmine\Client::requestPost()
insteadRedmine\Client::put()
is deprecated, useRedmine\Client::requestPut()
insteadRedmine\Client::delete()
is deprecated, useRedmine\Client::requestDelete()
insteadRedmine\Client::setCheckSslCertificate()
is deprecated, useRedmine\Client::setCurlOption()
insteadRedmine\Client::setCheckSslHost()
is deprecated, useRedmine\Client::setCurlOption()
insteadRedmine\Client::setSslVersion()
is deprecated, useRedmine\Client::setCurlOption()
insteadRedmine\Client::setUseHttpAuth()
is deprecated, useRedmine\Client::setCurlOption()
insteadRedmine\Client::setPort()
is deprecated, useRedmine\Client::setCurlOption()
insteadRedmine\Client::getResponseCode()
is deprecated, useRedmine\Client::getLastResponseStatusCode()
insteadRedmine\Client::setImpersonateUser()
is deprecated, useRedmine\Client::startImpersonateUser()
andRedmine\Client::stopImpersonateUser()
insteadRedmine\Client::setCustomHost()
is deprecated, useRedmine\Client::setCurlOption()
insteadRedmine\Client::getUrl()
is deprecated, you should stop using itRedmine\Client::decode()
is deprecated, you should stop using itRedmine\Client::getCheckSslCertificate()
is deprecated, you should stop using itRedmine\Client::getCheckSslHost()
is deprecated, you should stop using itRedmine\Client::getSslVersion()
is deprecated, you should stop using itRedmine\Client::getUseHttpAuth()
is deprecated, you should stop using itRedmine\Client::getPort()
is deprecated, you should stop using itRedmine\Client::getImpersonateUser()
is deprecated, you should stop using itRedmine\Client::getCustomHost()
is deprecated, you should stop using itRedmine\Client::getCurlOptions()
is deprecated, you should stop using itRedmine\Client::prepareRequest()
is deprecated, you should stop using itRedmine\Client::processCurlResponse()
is deprecated, you should stop using itRedmine\Client::runRequest()
is deprecated, you should stop using it
v1.7.0 - 2021-03-22
- New interface
Redmine\Client\Client
for all clients - New PSR-18 based client
Redmine\Client\Psr18Client
for usage with e.g.Guzzle
- New method
Redmine\Client::getApi()
for returning an API instance,Redmine\Client::api()
and magic getterRedmine\Client->issue
will be deprecated in future. - New method
Redmine\Client::startImpersonateUser()
to set an impersonated user,Redmine\Client::setImpersonateUser()
will be deprecated in future. - New method
Redmine\Client::stopImpersonateUser()
to stop impersonating an user. - New method
Redmine\Client::requestGet()
to create and send a GET request,Redmine\Client::get()
will be deprecated in future. - New method
Redmine\Client::requestPost()
to create and send a POST request,Redmine\Client::post()
will be deprecated in future. - New method
Redmine\Client::requestPut()
to create and send a PUT request,Redmine\Client::put()
will be deprecated in future. - New method
Redmine\Client::requestDelete()
to create and send a DELETE request,Redmine\Client::delete()
will be deprecated in future. - New method
Redmine\Client::getLastResponseStatusCode()
returns status code of the last response,Redmine\Client::getResponseCode()
will be deprecated in future. - New method
Redmine\Client::getLastResponseContentType()
returns the content type of the last response. - New method
Redmine\Client::getLastResponseBody()
returns the raw body of the last response.
- Move JSON and XML decoding directly into
Redmine\Api\AbstractApi
instead of the client.
- escape special chars in title, description, etc in wiki, issue, project and time_entry api.
v1.6.0 - 2021-01-02
- Added support for PHP 8.0
- New method
Redmine\Api\Attachment::remove()
to delete an attachment - New method
Redmine\Api\TimeEntryActivity::listing()
to list time entry activities - New method
Redmine\Api\TimeEntryActivity::getIdByName()
to get a time entry activity id by its name
- Removed support for PHP 5.6, 7.0, 7.1 and 7.2
v1.5.22 - 2020-08-07
- Added support for filename parameter to attachment upload
- Added file upload with wiki
- Fixed a warning on file upload
- Fixed a lot of warnings related to
custom_field
- Fixed custom field file type