Added
-
#829 Added support for QR codes in SVG format, by passing
?format=svg
to the QR code URL. -
#820 Added new option to force enabling or disabling URL validation on a per-URL basis.
Currently, there's a global config that tells if long URLs should be validated (by ensuring they are publicly accessible and return a 2xx status). However, this is either always applied or never applied.
Now, it is possible to enforce validation or enforce disabling validation when a new short URL is created or edited:
- On the
POST /short-url
andPATCH /short-url/{shortCode}
endpoints, you can now passvalidateUrl: true/false
in order to enforce enabling or disabling validation, ignoring the global config. If the value is not provided, the global config is still normally applied. - On the
short-url:generate
CLI command, you can pass--validate-url
or--no-validate-url
flags, in order to enforce enabling or disabling validation. If none of them is provided, the global config is still normally applied.
- On the
-
#838 Added new endpoint and CLI command to list existing domains.
It returns both default domain and specific domains that were used for some short URLs.
- REST endpoint:
GET /rest/v2/domains
- CLI Command:
domain:list
- REST endpoint:
-
#832 Added support to customize the port in which the docker image listens by using the
PORT
env var or theport
config option. -
#860 Added support to import links from bit.ly.
Run the command
short-urls:import bitly
and introduce requested information in order to import all your links.Other sources will be supported in future releases.
Changed
- #836 Added support for the
<field>-<dir>
notation while determining how to order the short URLs list, as in?orderBy=shortCode-DESC
. This effectively deprecates the array notation (?orderBy[shortCode]=DESC
), that will be removed in Shlink 3.0.0 - #782 Added code coverage to API tests.
- #858 Updated to latest infection version. Updated docker images to PHP 7.4.11 and swoole 4.5.5
- #887 Started tracking the API key used to create short URLs, in order to allow restrictions in future releases.
Deprecated
- #883 Deprecated
POST /tags
endpoint andtag:create
command, as tags are created automatically while creating short URLs.
Removed
- Nothing