From 0c03a4b7ffcc5cde40344b14cab8f5357c04ef13 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Mon, 13 Aug 2018 16:29:40 +0200 Subject: [PATCH] Added v1.11.0 to changelog --- CHANGELOG.md | 41 +++++++++++++++++++ .../Repository/ShortUrlRepositoryTest.php | 2 +- 2 files changed, 42 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3bff8681..e4839205 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,46 @@ # CHANGELOG +## 1.11.0 - 2018-08-13 + +#### Added + +* [#170](https://github.com/shlinkio/shlink/issues/170) and [#171](https://github.com/shlinkio/shlink/issues/171) Updated `[GET /short-codes]` and `[GET /short-codes/{shortCode}]` endpoints to return more meaningful information and make their response consistent. + + The short URLs are now represented by this object in both cases: + + ```json + { + "shortCode": "12Kb3", + "shortUrl": "https://doma.in/12Kb3", + "longUrl": "https://shlink.io", + "dateCreated": "2016-05-01T20:34:16+02:00", + "visitsCount": 1029, + "tags": [ + "shlink" + ], + "originalUrl": "https://shlink.io" + } + ``` + + The `originalUrl` property is considered deprecated and has been kept for backward compatibility purposes. It holds the same value as the `longUrl` property. + +#### Changed + +* *Nothing* + +#### Deprecated + +* The `originalUrl` property in `[GET /short-codes]` and `[GET /short-codes/{shortCode}]` endpoints is now deprecated and replaced by the `longUrl` property. + +#### Removed + +* *Nothing* + +#### Fixed + +* *Nothing* + + ## 1.10.2 - 2018-08-04 #### Added diff --git a/module/Core/test-func/Repository/ShortUrlRepositoryTest.php b/module/Core/test-func/Repository/ShortUrlRepositoryTest.php index a3e98ebb..aa544fa6 100644 --- a/module/Core/test-func/Repository/ShortUrlRepositoryTest.php +++ b/module/Core/test-func/Repository/ShortUrlRepositoryTest.php @@ -119,7 +119,7 @@ class ShortUrlRepositoryTest extends DatabaseTestCase public function findListProperlyMapsFieldNamesToColumnNamesWhenOrdering() { $urls = ['a', 'z', 'c', 'b']; - foreach($urls as $url) { + foreach ($urls as $url) { $this->getEntityManager()->persist( (new ShortUrl())->setShortCode($url) ->setLongUrl($url)