Skip to content

Commit 31ec2b8

Browse files
committed
Added changelog for v2.2.0
1 parent 9e53089 commit 31ec2b8

File tree

2 files changed

+46
-1
lines changed

2 files changed

+46
-1
lines changed

CHANGELOG.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# 2.2.0
2+
This release focuses on deprecation of dead and old code, and preps many internal changes in regards to v3.0.0. Where possible upcoming v3.0.0 changes were backported where backward-compatibility could be maintained.
3+
4+
### Added
5+
6+
* New Voice and SMS interfaces, accessible through `$client->voice()` and `$client->sms()`, respectively
7+
* Added user deprecation warnings, which can be turned on and off via the `Nexmo\Client` "show_deprecations" config option. This can help devs update in preparation in v3.0.0, and will be utilized in the future as things are deprecated.
8+
* Many objects now have a `toArray()` serialization method, to discourage direct use of `jsonSerialize()`
9+
* Many objects now support a `fromArray()` hydration method
10+
* Better incoming webhook support for SMS and Voice events
11+
* NCCO builder for Voice
12+
13+
### Changed
14+
15+
* API handling code has been conglomerated in `Nexmo\Client\APIResource` and `Nexmo\Entity\IterableAPICollection`
16+
* All APIs ported over to the new API handling layer
17+
* Internal Service Locator `Nexmo\Client\Factory\MapFactory` is now PSR-11 compliant, and can use factories
18+
* Most Verify methods in the client now prefer string Request IDs
19+
* Verify now prefers `Nexmo\Verify\Request` for starting new Verification requests
20+
21+
### Deprecated
22+
For a detailed list of things that may impact an application, enable the `show_deprecations` `Nexmo\Client` option to see deprecation notices for specific code flows.
23+
24+
* Most forms of array access are now deprecated
25+
* Using service layers like `$client->messages($filter)` to search has been deprecated in favor of bespoke search methods
26+
* Requests/Responses on exceptions and entities are deprecated, and now exist in the service layer or collection
27+
* Most methods that took raw arrays now prefer objects
28+
* `Nexmo\Verify\Verification` objects full functionality has been deprecated, and will be used only as a value object for search requests in the future
29+
* `Nexmo\Conversations` and `Nexmo\User` have been deprecated and will be removed in the future as the feature is in Beta status and has diverged from this implementation
30+
* `Nexmo\Voice\Call` and `Nexmo\Voice\Message` have been deprecated and will be removed in the future as the TTS API is deprecated
31+
* SMS searching has been deprecated and will be removed in a future update
32+
33+
### Removed
34+
* No features or classes have been removed in this update, it is functionally compatible with v2.1.0 other than deprecation notices and new features.
35+
36+
### Fixed
37+
* No direct bugs have been fixed as this release was designed to be as compatible with v2.1.0 as possible, however:
38+
* #177 should be better handled by a centralized `Nexmo\Client\Exception\ThrottleException` and has been implemented in SMS and the Numbers API
39+
* #219 is implicitly fixed in `Nexmo\SMS\Client::send()` as it now returns a fully hydrated collection object as a response, however this needs to be updated in Laravel itself via an update to `nexmo/laravel` and `laravel/nexmo-notification-channel `
40+
* #221 is implicitly fixed in `Nexmo\SMS\Client::send()` as it now returns a fully hydrated collection object that is much more up-front it is not a single object
41+
* #227 is implicitly fixed in `Nexmo\SMS\Webhook\InboundSMS`
42+
43+
### Security
44+
45+
* There were no known security vulnerabilities reported

src/Voice/NCCO/Action/Record.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public function toNCCOArray(): array
136136
}
137137

138138
if ($this->getEventWebhook()) {
139-
$data['eventUrl'] = $this->getEventWebhook()->getUrl();
139+
$data['eventUrl'] = [$this->getEventWebhook()->getUrl()];
140140
$data['eventMethod'] = $this->getEventWebhook()->getMethod();
141141
}
142142
return $data;

0 commit comments

Comments
 (0)