From 958ed9e83de00f847baef9e91d29f5ca112f307a Mon Sep 17 00:00:00 2001 From: Daniel Seifert Date: Thu, 19 Jan 2023 09:49:24 +0100 Subject: [PATCH] adjust changelog --- CHANGELOG.md | 37 ++++++++++++++++++++++++++----------- README.en.md | 4 ++-- README.md | 4 ++-- 3 files changed, 30 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7ebed9e..49454f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,18 +4,33 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [Unreleased](https://git.d3data.de/D3Private/linkmobility-php-client/compare/2.0.3...rel_2.x) +## [Unreleased](https://git.d3data.de/D3Public/linkmobility-php-client/compare/2.1.0...rel_2.x) -## [2.0.3](https://git.d3data.de/D3Private/linkmobility-php-client/compare/2.0.2...2.0.3) - 2022-12-26 +## [2.1.0](https://git.d3data.de/D3Public/linkmobility-php-client/compare/2.0.3...2.1.0) - 2022-12-26 +### Added +- installable in PHP > 8.0 +- debug logger to log all comunications in debug mode (default Guzzle client only) +- retry middleware to request again in defined error cases (default Guzzle client only) + +### Fixed +- missing getRecipientsList() in RecipientsListInterface + +### Deprecated +- unused client argument in recipient list class + +### Removed +- unused ApiException class + +## [2.0.3](https://git.d3data.de/D3Public/linkmobility-php-client/compare/2.0.2...2.0.3) - 2022-12-26 ### Changed - allow Guzzle v7.3 for more backward compatibility -## [2.0.2](https://git.d3data.de/D3Private/linkmobility-php-client/compare/2.0.1...2.0.2) - 2022-07-28 +## [2.0.2](https://git.d3data.de/D3Public/linkmobility-php-client/compare/2.0.1...2.0.2) - 2022-07-28 ### Changed - add support note - adjust readme -## [2.0.1](https://git.d3data.de/D3Private/linkmobility-php-client/compare/2.0.0...2.0.1) - 2022-07-28 +## [2.0.1](https://git.d3data.de/D3Public/linkmobility-php-client/compare/2.0.0...2.0.1) - 2022-07-28 ### Added - phpstan code checks @@ -26,18 +41,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - wrong return type of LoggerHandler::getInstance -## [2.0.0](https://git.d3data.de/D3Private/linkmobility-php-client/compare/1.3.0...2.0.0) - 2022-07-19 +## [2.0.0](https://git.d3data.de/D3Public/linkmobility-php-client/compare/1.3.0...2.0.0) - 2022-07-19 ### Changed - adjust to PHP >= 7.3 and current dependency packages -## [1.3.1](https://git.d3data.de/D3Private/linkmobility-php-client/compare/1.3.0...1.3.1) - 2022-07-28 +## [1.3.1](https://git.d3data.de/D3Public/linkmobility-php-client/compare/1.3.0...1.3.1) - 2022-07-28 ### Changed - improve code quality ### Fixed - wrong return type of LoggerHandler::getInstance -## [1.3.0](https://git.d3data.de/D3Private/linkmobility-php-client/compare/1.2.1...1.3.0) - 2022-07-18 +## [1.3.0](https://git.d3data.de/D3Public/linkmobility-php-client/compare/1.2.1...1.3.0) - 2022-07-18 ### Added - tests added @@ -45,12 +60,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - tests use generated example phone numbers - move recipient checks from list to recipient itself -## [1.2.1](https://git.d3data.de/D3Private/linkmobility-php-client/compare/1.2.0...1.2.1) - 2022-07-15 +## [1.2.1](https://git.d3data.de/D3Public/linkmobility-php-client/compare/1.2.0...1.2.1) - 2022-07-15 ### Changed - extend log messages - sanitize special phone number format before request -## [1.2.0](https://git.d3data.de/D3Private/linkmobility-php-client/compare/1.1.0...1.2.0) - 2022-07-14 +## [1.2.0](https://git.d3data.de/D3Public/linkmobility-php-client/compare/1.1.0...1.2.0) - 2022-07-14 ### Added - collect exception messages in a class - collect URI parts in a class @@ -60,14 +75,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - assign sender address type only if sender is set - extract logger handler from client -## [1.1.0](https://git.d3data.de/D3Private/linkmobility-php-client/compare/1.0.0...1.1.0) - 2022-07-13 +## [1.1.0](https://git.d3data.de/D3Public/linkmobility-php-client/compare/1.0.0...1.1.0) - 2022-07-13 ### Added - make installable in PHP 8 ### Removed - remove unused dependency -## [1.0.0](https://git.d3data.de/D3Private/linkmobility-php-client/releases/tag/1.0.0) - 2022-07-13 +## [1.0.0](https://git.d3data.de/D3Public/linkmobility-php-client/releases/tag/1.0.0) - 2022-07-13 ### Added - initial implementation - SMS requests (text or binary) diff --git a/README.en.md b/README.en.md index c5075c9..ea9ef76 100644 --- a/README.en.md +++ b/README.en.md @@ -18,8 +18,8 @@ composer require d3/linkmobility-php-client ``` ``` -$client = new Client('personal accesstoken'); -$client->setLogger($logger); // optional +$client = new \D3\LinkmobilityClient\Client('personal accesstoken'); +\D3\LinkmobilityClient\LoggerHandler::getInstance()->setLogger($logger); // optional $request = new D3\LinkmobilityClient\SMS\RequestFactory($message, $client)->getSmsRequest()) ->addRecipient(new D3\LinkmobilityClient\ValueObject\Recipient('recipient number', 'DE')); $response = $client->request($request) diff --git a/README.md b/README.md index 66e2efe..e049f8d 100644 --- a/README.md +++ b/README.md @@ -18,8 +18,8 @@ composer require d3/linkmobility-php-client ``` ``` -$client = new Client('personal accesstoken'); -$client->setLogger($logger); // optional +$client = new \D3\LinkmobilityClient\Client('personal accesstoken'); +\D3\LinkmobilityClient\LoggerHandler::getInstance()->setLogger($logger); // optional $request = new D3\LinkmobilityClient\SMS\RequestFactory($message, $client)->getSmsRequest()) ->addRecipient(new D3\LinkmobilityClient\ValueObject\Recipient('recipient number', 'DE')); $response = $client->request($request)