Skip to content

Commit e6fe3e4

Browse files
committed
Update for 0.58.6 release
1 parent afe7956 commit e6fe3e4

File tree

6 files changed

+25
-14
lines changed

6 files changed

+25
-14
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Change Log
22

3+
## [0.58.6](https://github.com/nicklockwood/SwiftFormat/releases/tag/0.58.6) (2025-11-11)
4+
5+
- Fixed `docComments` not being applied correctly after conditional `switch...case`
6+
- Trailing commas are no longer inserted inside `#selector(...)` expressions
7+
- Source files listed with `--filelist` are now formatted concurrently
8+
- Trailing comments are now kept with the same line when wrapping
9+
- Fixed spurious `return` removal inside `repeat...while` loops
10+
- Fixed bug with `trailingClosures` rule and property wrappers
11+
- Fixed performance regression introduced in 0.58.5
12+
- Reduced timeout threshold to 1ms per token
13+
314
## [0.58.5](https://github.com/nicklockwood/SwiftFormat/releases/tag/0.58.5) (2025-10-17)
415

516
- Fixed regression with indenting of macros (introduced in 0.58.4)

CommandLineTool/swiftformat

16.2 KB
Binary file not shown.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ let package = Package(
252252
name: "BuildTools",
253253
platforms: [.macOS(.v10_11)],
254254
dependencies: [
255-
.package(url: "https://github.com/nicklockwood/SwiftFormat", from: "0.58.5"),
255+
.package(url: "https://github.com/nicklockwood/SwiftFormat", from: "0.58.6"),
256256
],
257257
targets: [.target(name: "BuildTools", path: "")]
258258
)
@@ -286,7 +286,7 @@ You can also use `swift run -c release --package-path BuildTools swiftformat "$S
286286
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`:
287287
288288
```ruby
289-
pod 'SwiftFormat/CLI', '~> 0.58.5'
289+
pod 'SwiftFormat/CLI', '~> 0.58.6'
290290
```
291291
292292
**NOTE:** This will only install the pre-built command-line app, not the source code for the SwiftFormat framework.
@@ -354,7 +354,7 @@ You can use `SwiftFormat` as a SwiftPM command plugin.
354354
```swift
355355
dependencies: [
356356
// ...
357-
.package(url: "https://github.com/nicklockwood/SwiftFormat", from: "0.58.5"),
357+
.package(url: "https://github.com/nicklockwood/SwiftFormat", from: "0.58.6"),
358358
]
359359
```
360360

Sources/SwiftFormat.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
import Foundation
3333

3434
/// The current SwiftFormat version
35-
let swiftFormatVersion = "0.58.5"
35+
let swiftFormatVersion = "0.58.6"
3636
public let version = swiftFormatVersion
3737

3838
/// The standard SwiftFormat config file name

SwiftFormat.podspec.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "SwiftFormat",
3-
"version": "0.58.5",
3+
"version": "0.58.6",
44
"license": {
55
"type": "MIT",
66
"file": "LICENSE.md"
@@ -10,7 +10,7 @@
1010
"authors": "Nick Lockwood",
1111
"source": {
1212
"git": "https://github.com/nicklockwood/SwiftFormat.git",
13-
"tag": "0.58.5"
13+
"tag": "0.58.6"
1414
},
1515
"default_subspecs": "Core",
1616
"subspecs": [

SwiftFormat.xcodeproj/project.pbxproj

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,7 +1279,7 @@
12791279
"@loader_path/Frameworks",
12801280
);
12811281
MACOSX_DEPLOYMENT_TARGET = 10.14;
1282-
MARKETING_VERSION = 0.58.5;
1282+
MARKETING_VERSION = 0.58.6;
12831283
MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++";
12841284
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu99 gnu++11";
12851285
PRODUCT_BUNDLE_IDENTIFIER = com.charcoaldesign.SwiftFormat;
@@ -1312,7 +1312,7 @@
13121312
"@loader_path/Frameworks",
13131313
);
13141314
MACOSX_DEPLOYMENT_TARGET = 10.14;
1315-
MARKETING_VERSION = 0.58.5;
1315+
MARKETING_VERSION = 0.58.6;
13161316
MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++";
13171317
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu99 gnu++11";
13181318
PRODUCT_BUNDLE_IDENTIFIER = com.charcoaldesign.SwiftFormat;
@@ -1416,7 +1416,7 @@
14161416
GENERATE_INFOPLIST_FILE = YES;
14171417
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
14181418
MACOSX_DEPLOYMENT_TARGET = 15.4;
1419-
MARKETING_VERSION = 0.58.5;
1419+
MARKETING_VERSION = 0.58.6;
14201420
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
14211421
MTL_FAST_MATH = YES;
14221422
PRODUCT_BUNDLE_IDENTIFIER = com.charcoaldesign.SwiftFormat.RegressionTests;
@@ -1446,7 +1446,7 @@
14461446
GENERATE_INFOPLIST_FILE = YES;
14471447
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
14481448
MACOSX_DEPLOYMENT_TARGET = 15.4;
1449-
MARKETING_VERSION = 0.58.5;
1449+
MARKETING_VERSION = 0.58.6;
14501450
MTL_FAST_MATH = YES;
14511451
PRODUCT_BUNDLE_IDENTIFIER = com.charcoaldesign.SwiftFormat.RegressionTests;
14521452
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -1477,7 +1477,7 @@
14771477
"@executable_path/../Frameworks",
14781478
);
14791479
MACOSX_DEPLOYMENT_TARGET = 10.14;
1480-
MARKETING_VERSION = 0.58.5;
1480+
MARKETING_VERSION = 0.58.6;
14811481
PRODUCT_BUNDLE_IDENTIFIER = "com.charcoaldesign.SwiftFormat-for-Xcode";
14821482
PRODUCT_NAME = "SwiftFormat for Xcode";
14831483
PROVISIONING_PROFILE_SPECIFIER = "";
@@ -1508,7 +1508,7 @@
15081508
"@executable_path/../Frameworks",
15091509
);
15101510
MACOSX_DEPLOYMENT_TARGET = 10.14;
1511-
MARKETING_VERSION = 0.58.5;
1511+
MARKETING_VERSION = 0.58.6;
15121512
PRODUCT_BUNDLE_IDENTIFIER = "com.charcoaldesign.SwiftFormat-for-Xcode";
15131513
PRODUCT_NAME = "SwiftFormat for Xcode";
15141514
PROVISIONING_PROFILE_SPECIFIER = "";
@@ -1537,7 +1537,7 @@
15371537
"@executable_path/../../../../Frameworks",
15381538
);
15391539
MACOSX_DEPLOYMENT_TARGET = 10.14;
1540-
MARKETING_VERSION = 0.58.5;
1540+
MARKETING_VERSION = 0.58.6;
15411541
PRODUCT_BUNDLE_IDENTIFIER = "com.charcoaldesign.SwiftFormat-for-Xcode.SourceEditorExtension";
15421542
PRODUCT_NAME = SwiftFormat;
15431543
PROVISIONING_PROFILE_SPECIFIER = "";
@@ -1567,7 +1567,7 @@
15671567
"@executable_path/../../../../Frameworks",
15681568
);
15691569
MACOSX_DEPLOYMENT_TARGET = 10.14;
1570-
MARKETING_VERSION = 0.58.5;
1570+
MARKETING_VERSION = 0.58.6;
15711571
PRODUCT_BUNDLE_IDENTIFIER = "com.charcoaldesign.SwiftFormat-for-Xcode.SourceEditorExtension";
15721572
PRODUCT_NAME = SwiftFormat;
15731573
PROVISIONING_PROFILE_SPECIFIER = "";

0 commit comments

Comments
 (0)