From 102258e17c204b54daa48df702f454e210d2e435 Mon Sep 17 00:00:00 2001 From: Dimitri Bouniol Date: Mon, 16 Dec 2024 04:48:44 -0800 Subject: [PATCH 1/2] Fixed an incorrect warning that would show up with default settings --- Sources/WebPush/WebPushManager.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/WebPush/WebPushManager.swift b/Sources/WebPush/WebPushManager.swift index b4d74f8..e7da5f0 100644 --- a/Sources/WebPush/WebPushManager.swift +++ b/Sources/WebPush/WebPushManager.swift @@ -379,7 +379,7 @@ public actor WebPushManager: Sendable { if expiration < Expiration.dropIfUndeliverable { logger.error("The message expiration must be greater than or equal to \(Expiration.dropIfUndeliverable) seconds.", metadata: ["expiration": "\(expiration)"]) - } else if expiration >= Expiration.recommendedMaximum { + } else if expiration > Expiration.recommendedMaximum { logger.warning("The message expiration should be less than \(Expiration.recommendedMaximum) seconds.", metadata: ["expiration": "\(expiration)"]) } From f4ffa43fd1325142b119294b22979167c2b1f5e2 Mon Sep 17 00:00:00 2001 From: Dimitri Bouniol Date: Mon, 16 Dec 2024 04:48:55 -0800 Subject: [PATCH 2/2] Updated suggested version in readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 222be0f..aa492e1 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Please check the [releases](https://github.com/mochidev/swift-webpush/releases) dependencies: [ .package( url: "https://github.com/mochidev/swift-webPush.git", - .upToNextMinor(from: "0.2.0") + .upToNextMinor(from: "0.2.1") ), ], ...