From 07e0d2a76171d2ea4012b2c510cc235bb898ed33 Mon Sep 17 00:00:00 2001 From: reeshika-h Date: Thu, 30 Oct 2025 10:03:19 +0530 Subject: [PATCH 1/5] fix: url methods made public --- .gitignore | 3 ++- Sources/ImageTransformError.swift | 2 +- Sources/Utils.swift | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index d38b3c29..cd3ec707 100644 --- a/.gitignore +++ b/.gitignore @@ -81,4 +81,5 @@ Gemfile Tests/config.json snyk_output.log -talisman_output.log \ No newline at end of file +talisman_output.log +Tests/config.json \ No newline at end of file diff --git a/Sources/ImageTransformError.swift b/Sources/ImageTransformError.swift index b95f99c5..64f6775f 100644 --- a/Sources/ImageTransformError.swift +++ b/Sources/ImageTransformError.swift @@ -9,7 +9,7 @@ import Foundation /// Information regarding an error received from Contentstack's Image Delivery API. public struct ImageTransformError: Error, CustomDebugStringConvertible { /// Human redable error Message - internal let message: String + public let message: String public var debugDescription: String { return message diff --git a/Sources/Utils.swift b/Sources/Utils.swift index 5fe83695..28aed2ca 100644 --- a/Sources/Utils.swift +++ b/Sources/Utils.swift @@ -29,7 +29,7 @@ internal extension Array { } } -internal extension String { +public extension String { // Will make a `URL` from the current `String` instance if possible. func toURL() throws -> URL { guard var urlComponents = URLComponents(string: self) else { @@ -90,7 +90,7 @@ internal extension String { return url } - func isHexColor() -> Bool { + internal func isHexColor() -> Bool { let hexColorRegex3Deci = "[0-9A-Fa-f]{3}" let hexColorPred3Deci = NSPredicate(format: "SELF MATCHES %@", hexColorRegex3Deci) From 1421e3b128288d5233ed5b65b6b13a21e9c03d23 Mon Sep 17 00:00:00 2001 From: reeshika-h Date: Thu, 30 Oct 2025 10:54:23 +0530 Subject: [PATCH 2/5] Stop tracking Tests/config.json --- Tests/config.json | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 Tests/config.json diff --git a/Tests/config.json b/Tests/config.json deleted file mode 100644 index e41a1dcf..00000000 --- a/Tests/config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "api_key" : "", - "delivery_token" : "", - "environment" : "" -} From 68e8257ee91b88efb9ea96c0514a50db4f525059 Mon Sep 17 00:00:00 2001 From: reeshika-h Date: Thu, 30 Oct 2025 10:58:14 +0530 Subject: [PATCH 3/5] removed duplicates from gitignore --- .gitignore | 3 --- 1 file changed, 3 deletions(-) diff --git a/.gitignore b/.gitignore index cd3ec707..02a04360 100644 --- a/.gitignore +++ b/.gitignore @@ -77,9 +77,6 @@ docs fastlane/ Gemfile -#config file -Tests/config.json snyk_output.log talisman_output.log -Tests/config.json \ No newline at end of file From c039f1ae240b43431e132a2a909cd7da8c9d4ef7 Mon Sep 17 00:00:00 2001 From: reeshika-h Date: Thu, 30 Oct 2025 11:16:34 +0530 Subject: [PATCH 4/5] Remove deprecated availability message from sync method in Stack.swift --- Sources/Stack.swift | 1 - 1 file changed, 1 deletion(-) diff --git a/Sources/Stack.swift b/Sources/Stack.swift index 438855cf..09257615 100644 --- a/Sources/Stack.swift +++ b/Sources/Stack.swift @@ -409,7 +409,6 @@ extension Stack { /// } /// } ///``` - @available(*, deprecated, message: "This method will be deprecated soon. Please use seqSync instead") public func sync(_ syncStack: SyncStack = SyncStack(), syncTypes: [SyncStack.SyncableTypes] = [.all], then completion: @escaping (_ result: Result) -> Void) { From 1c7e3122d70726a3284dd70e3f9eaff78346e4d3 Mon Sep 17 00:00:00 2001 From: reeshika-h Date: Thu, 30 Oct 2025 11:35:04 +0530 Subject: [PATCH 5/5] version bump --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2eb7f167..8fd93f3c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # CHANGELOG +## v2.3.1 + +### Date: 03-Nov-2025 + +- Github issues fixed + ## v2.3.0 ### Date: 29-Sep-2025