diff --git a/CHANGELOG.md b/CHANGELOG.md index 39104a57..c15e4297 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Change Log +## [0.61.1](https://github.com/nicklockwood/SwiftFormat/releases/tag/0.61.1) (2026-04-27) + +- Fixed race condition when parsing config files +- Fixed `redundantStaticSelf` false positive inside closures and nested functions +- Fixed `unsafe` keyword dot-spacing edge case +- Fixed `redundantSelf` crash on switch expression inside if-let binding chain +- Fixed `redundantEquatable` removing manual `==` for types with `Any.Type` stored properties + ## [0.61.0](https://github.com/nicklockwood/SwiftFormat/releases/tag/0.61.0) (2026-04-11) - Added `wrapCaseBodies` rule diff --git a/CommandLineTool/swiftformat b/CommandLineTool/swiftformat index 8294dc8b..e9ee5330 100755 Binary files a/CommandLineTool/swiftformat and b/CommandLineTool/swiftformat differ diff --git a/README.md b/README.md index caa7920a..742de20d 100644 --- a/README.md +++ b/README.md @@ -299,7 +299,7 @@ let package = Package( name: "BuildTools", platforms: [.macOS(.v10_11)], dependencies: [ - .package(url: "https://github.com/nicklockwood/SwiftFormat", from: "0.61.0"), + .package(url: "https://github.com/nicklockwood/SwiftFormat", from: "0.61.1"), ], targets: [.target(name: "BuildTools", path: "")] ) @@ -333,7 +333,7 @@ You can also use `swift run -c release --package-path BuildTools swiftformat "$S 1. Add the `swiftformat` binary to your project directory via [CocoaPods](https://cocoapods.org/), by adding the following line to your Podfile then running `pod install`: ```ruby - pod 'SwiftFormat/CLI', '~> 0.61.0' + pod 'SwiftFormat/CLI', '~> 0.61.1' ``` **NOTE:** This will only install the pre-built command-line app, not the source code for the SwiftFormat framework. @@ -401,7 +401,7 @@ You can use `SwiftFormat` as a SwiftPM command plugin. ```swift dependencies: [ // ... - .package(url: "https://github.com/nicklockwood/SwiftFormat", from: "0.61.0"), + .package(url: "https://github.com/nicklockwood/SwiftFormat", from: "0.61.1"), ] ``` diff --git a/Sources/SwiftFormat.swift b/Sources/SwiftFormat.swift index 29a13623..9be629ed 100644 --- a/Sources/SwiftFormat.swift +++ b/Sources/SwiftFormat.swift @@ -32,7 +32,7 @@ import Foundation /// The current SwiftFormat version -let swiftFormatVersion = "0.61.0" +let swiftFormatVersion = "0.61.1" public let version = swiftFormatVersion /// The standard SwiftFormat config file name diff --git a/SwiftFormat.podspec.json b/SwiftFormat.podspec.json index 39b7d52d..6433b871 100644 --- a/SwiftFormat.podspec.json +++ b/SwiftFormat.podspec.json @@ -1,6 +1,6 @@ { "name": "SwiftFormat", - "version": "0.61.0", + "version": "0.61.1", "license": { "type": "MIT", "file": "LICENSE.md" @@ -10,7 +10,7 @@ "authors": "Nick Lockwood", "source": { "git": "https://github.com/nicklockwood/SwiftFormat.git", - "tag": "0.61.0" + "tag": "0.61.1" }, "default_subspecs": "Core", "subspecs": [ diff --git a/SwiftFormat.xcodeproj/project.pbxproj b/SwiftFormat.xcodeproj/project.pbxproj index f05a5a4d..56855be3 100644 --- a/SwiftFormat.xcodeproj/project.pbxproj +++ b/SwiftFormat.xcodeproj/project.pbxproj @@ -1275,7 +1275,7 @@ "@loader_path/Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 10.14; - MARKETING_VERSION = 0.61.0; + MARKETING_VERSION = 0.61.1; MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++"; MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu99 gnu++11"; PRODUCT_BUNDLE_IDENTIFIER = com.charcoaldesign.SwiftFormat; @@ -1308,7 +1308,7 @@ "@loader_path/Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 10.14; - MARKETING_VERSION = 0.61.0; + MARKETING_VERSION = 0.61.1; MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++"; MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu99 gnu++11"; PRODUCT_BUNDLE_IDENTIFIER = com.charcoaldesign.SwiftFormat; @@ -1412,7 +1412,7 @@ GENERATE_INFOPLIST_FILE = YES; LOCALIZATION_PREFERS_STRING_CATALOGS = YES; MACOSX_DEPLOYMENT_TARGET = 15.4; - MARKETING_VERSION = 0.61.0; + MARKETING_VERSION = 0.61.1; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; PRODUCT_BUNDLE_IDENTIFIER = com.charcoaldesign.SwiftFormat.RegressionTests; @@ -1442,7 +1442,7 @@ GENERATE_INFOPLIST_FILE = YES; LOCALIZATION_PREFERS_STRING_CATALOGS = YES; MACOSX_DEPLOYMENT_TARGET = 15.4; - MARKETING_VERSION = 0.61.0; + MARKETING_VERSION = 0.61.1; MTL_FAST_MATH = YES; PRODUCT_BUNDLE_IDENTIFIER = com.charcoaldesign.SwiftFormat.RegressionTests; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -1473,7 +1473,7 @@ "@executable_path/../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 10.14; - MARKETING_VERSION = 0.61.0; + MARKETING_VERSION = 0.61.1; PRODUCT_BUNDLE_IDENTIFIER = "com.charcoaldesign.SwiftFormat-for-Xcode"; PRODUCT_NAME = "SwiftFormat for Xcode"; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -1504,7 +1504,7 @@ "@executable_path/../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 10.14; - MARKETING_VERSION = 0.61.0; + MARKETING_VERSION = 0.61.1; PRODUCT_BUNDLE_IDENTIFIER = "com.charcoaldesign.SwiftFormat-for-Xcode"; PRODUCT_NAME = "SwiftFormat for Xcode"; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -1533,7 +1533,7 @@ "@executable_path/../../../../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 10.14; - MARKETING_VERSION = 0.61.0; + MARKETING_VERSION = 0.61.1; PRODUCT_BUNDLE_IDENTIFIER = "com.charcoaldesign.SwiftFormat-for-Xcode.SourceEditorExtension"; PRODUCT_NAME = SwiftFormat; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -1563,7 +1563,7 @@ "@executable_path/../../../../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 10.14; - MARKETING_VERSION = 0.61.0; + MARKETING_VERSION = 0.61.1; PRODUCT_BUNDLE_IDENTIFIER = "com.charcoaldesign.SwiftFormat-for-Xcode.SourceEditorExtension"; PRODUCT_NAME = SwiftFormat; PROVISIONING_PROFILE_SPECIFIER = "";