Added
-
#118 API errors now implement the problem details standard.
In order to make it backwards compatible, two things have been done:
- Both the old
error
andmessage
properties have been kept on error response, containing the same values as thetype
anddetail
properties respectively. - The API
v2
has been enabled. If an error occurs when calling the API with this version, theerror
andmessage
properties will not be returned.
After Shlink v2 is released, both API versions will behave like API v2.
- Both the old
-
#575 Added support to filter short URL lists by date ranges.
- The
GET /short-urls
endpoint now accepts thestartDate
andendDate
query params. - The
short-urls:list
command now allows--startDate
and--endDate
flags to be optionally provided.
- The
-
#338 Added support to asynchronously notify external services via webhook, only when shlink is served with swoole.
Configured webhooks will receive a POST request every time a URL receives a visit, including information about the short URL and the visit.
The payload will look like this:
{ "shortUrl": {}, "visit": {} }
The
shortUrl
andvisit
props have the same shape as it is defined in the API spec.
Changed
- #492 Updated to monolog 2, together with other dependencies, like Symfony 5 and infection-php.
- #527 Increased minimum required mutation score for unit tests to 80%.
- #557 Added a few php.ini configs for development and production docker images.
Deprecated
- Nothing
Removed
- Nothing
Fixed
- #570 Fixed shlink version generated for docker images when building from
develop
branch.