Skip to content

Commit 05b0108

Browse files
committed
Prepare version 3.0.0
1 parent 8a4fcb5 commit 05b0108

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

CHANGELOG.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@ All notable changes to this project will be documented in this file. The format
33

44
This product uses [Semantic Versioning](https://semver.org/).
55

6-
## 2.2.0
7-
* **BREAKING**: Properly handle a `phx_reply` response by hiding the nested payload from the client and only returning the `response` for `Message.payload`. For convenince, `Message.rawPayload` has been provided which will behave the same as `Message.payload` in earlier versions.
6+
7+
8+
## 3.0.0
9+
This ia a **BREAKING** release. The following has changed to properly matched the phoenix.js library
10+
* `message.payload.response` is now automatically unwrapped and returned as `message.payload` for `phx_reply` events.
11+
* The client now, be default, uses the JSON V2 Serializer which was added in phoenix 1.3. If you are still running 1.2 or earlier, then you will need to
12+
continue using SwiftPhoenixClient 2.1.0, or provide your own custom `vsn`, `encoder` and `decoder` to the `Socket` class.
813

914
## 2.1.1
1015
* Fixed HeartbeatTimer to add thread safety and fix crash reported in #188

Sources/SwiftPhoenixClient/Message.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public class Message {
3737

3838
/// The raw payload from the Message, including a nested response from
3939
/// phx_reply events. It is recommended to use `payload` instead.
40-
public let rawPayload: Payload
40+
internal let rawPayload: Payload
4141

4242
/// Message payload
4343
public var payload: Payload {

SwiftPhoenixClient.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |s|
1010
s.name = "SwiftPhoenixClient"
11-
s.version = "2.2.0"
11+
s.version = "3.0.0"
1212
s.summary = "Connect your Phoenix and iOS applications through WebSockets!"
1313
s.swift_version = "5.0"
1414
s.description = <<-EOS

0 commit comments

Comments
 (0)