From 3710555910ac40d09682033e6ce2566dbdf67bd7 Mon Sep 17 00:00:00 2001 From: Maciej Lew Date: Thu, 9 Apr 2026 11:19:15 +0200 Subject: [PATCH 1/3] Remove deprecated features - request DTOs setters and HTTP client related exceptions. Preparation for next major release. --- CHANGELOG.md | 10 ++++++++++ src/Curl/Exception/ClientException.php | 17 ----------------- src/Curl/Exception/NetworkException.php | 17 ----------------- src/Curl/Exception/RequestException.php | 17 ----------------- src/Feature/Contacts/Bag/CreateContactBag.php | 9 --------- src/Feature/Sms/Bag/ScheduleSmsBag.php | 15 --------------- src/Feature/Sms/Bag/ScheduleSmsToGroupBag.php | 15 --------------- src/Feature/Sms/Bag/SendSmsToGroupBag.php | 15 --------------- src/SmsapiClient.php | 2 +- 9 files changed, 11 insertions(+), 106 deletions(-) delete mode 100644 src/Curl/Exception/ClientException.php delete mode 100644 src/Curl/Exception/NetworkException.php delete mode 100644 src/Curl/Exception/RequestException.php diff --git a/CHANGELOG.md b/CHANGELOG.md index 190eb08..098fa47 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,16 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [Unreleased] +### Removed +- deprecated `\Smsapi\Client\Feature\Contacts\Bag\CreateContactBag::withPhone` +- deprecated `\Smsapi\Client\Feature\Sms\Bag\ScheduleSmsBag::setIdx` +- deprecated `\Smsapi\Client\Feature\Sms\Bag\SendSmsToGroupBag::setIdx` +- deprecated `\Smsapi\Client\Feature\Sms\Bag\ScheduleSmsToGroupBag::setIdx` +- deprecated `\Smsapi\Client\Curl\Exception\RequestException` +- deprecated `\Smsapi\Client\Curl\Exception\NetworkException` +- deprecated `\Smsapi\Client\Curl\Exception\ClientException` + ## [3.0.13] - 2026-01-12 ### Added - PHP-8.5 support diff --git a/src/Curl/Exception/ClientException.php b/src/Curl/Exception/ClientException.php deleted file mode 100644 index 0d2726a..0000000 --- a/src/Curl/Exception/ClientException.php +++ /dev/null @@ -1,17 +0,0 @@ -idx = $idx; - $this->checkIdx = $checkIdx; - - return $this; - } } diff --git a/src/Feature/Sms/Bag/ScheduleSmsToGroupBag.php b/src/Feature/Sms/Bag/ScheduleSmsToGroupBag.php index d10e61f..ec69498 100644 --- a/src/Feature/Sms/Bag/ScheduleSmsToGroupBag.php +++ b/src/Feature/Sms/Bag/ScheduleSmsToGroupBag.php @@ -65,19 +65,4 @@ public function setExternalId(string $idx, $checkIdx = null): self return $this; } - - /** - * @deprecated - * @see ScheduleSmsToGroupBag::setExternalId() - */ - /** - * @param bool|null $checkIdx - */ - public function setIdx(array $idx, $checkIdx = null): self - { - $this->idx = $idx; - $this->checkIdx = $checkIdx; - - return $this; - } } diff --git a/src/Feature/Sms/Bag/SendSmsToGroupBag.php b/src/Feature/Sms/Bag/SendSmsToGroupBag.php index fadfbc7..e89f254 100644 --- a/src/Feature/Sms/Bag/SendSmsToGroupBag.php +++ b/src/Feature/Sms/Bag/SendSmsToGroupBag.php @@ -58,19 +58,4 @@ public function setExternalId(string $idx, $checkIdx = null): self return $this; } - - /** - * @deprecated - * @see SendSmsToGroupBag::setExternalId() - */ - /** - * @param bool|null $checkIdx - */ - public function setIdx(array $idx, $checkIdx = null): self - { - $this->idx = $idx; - $this->checkIdx = $checkIdx; - - return $this; - } } diff --git a/src/SmsapiClient.php b/src/SmsapiClient.php index 1c2bc2b..564843f 100644 --- a/src/SmsapiClient.php +++ b/src/SmsapiClient.php @@ -12,7 +12,7 @@ */ interface SmsapiClient extends LoggerAwareInterface { - const VERSION = '3.0.13'; + const VERSION = 'Unreleased'; public function smsapiPlService(string $apiToken): SmsapiPlService; From 82599bf8dd9c340a9b29c78860f727d7921b3da2 Mon Sep 17 00:00:00 2001 From: Maciej Lew Date: Thu, 9 Apr 2026 11:28:46 +0200 Subject: [PATCH 2/3] Add method signature info to CHANGELOG (#139, #141). --- CHANGELOG.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 098fa47..146538e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,15 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a - deprecated `\Smsapi\Client\Curl\Exception\NetworkException` - deprecated `\Smsapi\Client\Curl\Exception\ClientException` +## Changed +- method signature `\Smsapi\Client\Feature\Contacts\ContactsFeature::findContacts` +- method signature `\Smsapi\Client\Feature\Sms\Bag\ScheduleSmsBag::setExternalId` +- method signature `\Smsapi\Client\Feature\Sms\Bag\ScheduleSmssBag::setExternalId` +- method signature `\Smsapi\Client\Feature\Sms\Bag\ScheduleSmsToGroupBag::setExternalId` +- method signature `\Smsapi\Client\Feature\Sms\Bag\SendSmsBag::setExternalId` +- method signature `\Smsapi\Client\Feature\Sms\Bag\SendSmssBag::setExternalId` +- method signature `\Smsapi\Client\Feature\Sms\Bag\SendSmsToGroupBag::setExternalId` + ## [3.0.13] - 2026-01-12 ### Added - PHP-8.5 support From 1f539225cdbeb71845441d1407d9b210dd9eafe2 Mon Sep 17 00:00:00 2001 From: Maciej Lew Date: Thu, 9 Apr 2026 11:38:39 +0200 Subject: [PATCH 3/3] Release version 4.0.0 --- CHANGELOG.md | 2 +- src/SmsapiClient.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 146538e..0ced20b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). -## [Unreleased] +## [4.0.0] - 2026-04-09 ### Removed - deprecated `\Smsapi\Client\Feature\Contacts\Bag\CreateContactBag::withPhone` - deprecated `\Smsapi\Client\Feature\Sms\Bag\ScheduleSmsBag::setIdx` diff --git a/src/SmsapiClient.php b/src/SmsapiClient.php index 564843f..8ef1412 100644 --- a/src/SmsapiClient.php +++ b/src/SmsapiClient.php @@ -12,7 +12,7 @@ */ interface SmsapiClient extends LoggerAwareInterface { - const VERSION = 'Unreleased'; + const VERSION = '4.0.0'; public function smsapiPlService(string $apiToken): SmsapiPlService;