From f9b4d302fd344b7848635f6040256ce80bc3ea71 Mon Sep 17 00:00:00 2001 From: Povilas Staskus <4062343+staskus@users.noreply.github.com> Date: Tue, 23 Apr 2024 16:21:25 +0300 Subject: [PATCH 1/2] Make StatsFollower equatable --- .../Models/Stats/Insights/StatsDotComFollowersInsight.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/WordPressKit/Models/Stats/Insights/StatsDotComFollowersInsight.swift b/Sources/WordPressKit/Models/Stats/Insights/StatsDotComFollowersInsight.swift index 32d6e55f..2c3d304c 100644 --- a/Sources/WordPressKit/Models/Stats/Insights/StatsDotComFollowersInsight.swift +++ b/Sources/WordPressKit/Models/Stats/Insights/StatsDotComFollowersInsight.swift @@ -29,7 +29,7 @@ extension StatsDotComFollowersInsight: StatsInsightData { fileprivate static let dateFormatter = ISO8601DateFormatter() } -public struct StatsFollower: Codable { +public struct StatsFollower: Codable, Equatable { public let id: String? public let name: String public let subscribedDate: Date From 3291ab9b60e88b1bc78f50422efd3b38c30c0eb3 Mon Sep 17 00:00:00 2001 From: Povilas Staskus <4062343+staskus@users.noreply.github.com> Date: Tue, 23 Apr 2024 16:22:56 +0300 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 61ccdee6..f7410e43 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -45,6 +45,7 @@ _None._ ### Internal Changes - Update new APIs to create and update posts introduced `PostServiceRemoteExtended` to use `wp.newPost` and `wp.editPost` instead of the older versions of these APIs [#792] +- Update `StatsFollower` to be `Equatable` [#797] ## 17.0.0