mirror of
https://github.com/nicklockwood/SwiftFormat.git
synced 2026-05-17 10:30:35 +00:00
Update for 0.61.0 release
This commit is contained in:
+24
-2
@@ -1,5 +1,27 @@
|
||||
# Change Log
|
||||
|
||||
## [0.61.0](https://github.com/nicklockwood/SwiftFormat/releases/tag/0.61.0) (2026-04-11)
|
||||
|
||||
- Added `wrapCaseBodies` rule
|
||||
- Added `redundantEmptyView` rule
|
||||
- Added `preferSwiftStringAPI` rule
|
||||
- Added `--test-case-access-control` option for `testSuiteAccessControl` rule
|
||||
- Updated `sortImports` to support `--import-grouping length,alpha`
|
||||
- Updated `--self-required` to support assignment type names like `OSLogMessage`
|
||||
- Updated `--suite-name-format` default value to `preserve`
|
||||
- Fixed conditional import parsing with access modifiers
|
||||
- Fixed infinite loop in `organizeDeclarations` when opening brace has a trailing comment
|
||||
- Fixed closing brace indentation with `--trimwhitespace nonblank-lines`
|
||||
- Fixed indentation of multiline raw string literals with `--indent-strings`
|
||||
- Fixed `redundantParens` incorrectly removing `()` from `@MainActor` closure signatures
|
||||
- Fixed wrapping inside parens of function declarations with no parameters
|
||||
- Fixed `extensionAccessControl` incorrectly hoisting `public` onto extensions of nested internal types
|
||||
- Fixed `spaceAroundParens` incorrectly removing space after `nonisolated(nonsending)` modifier
|
||||
- Fixed `noGuardInTests` incorrectly transforming `guard #available` conditions
|
||||
- Fixed trailing comma for `@convention` closures
|
||||
- Fixed number handling in Swift Testing test case name conversion
|
||||
- Fixed `redundantSelf` inserting `self.` inside `#if`/`#elseif` compiler directive conditions
|
||||
|
||||
## [0.60.1](https://github.com/nicklockwood/SwiftFormat/releases/tag/0.60.1) (2026-03-07)
|
||||
|
||||
- Fixed issue where `redundantSendable` rule would unexpectedly remove `Sendable` conformance on type defined in public extension
|
||||
@@ -12,7 +34,7 @@
|
||||
|
||||
- Added `redundantSwiftTestingSuite` rule
|
||||
- Added `redundantSendable` rule
|
||||
- Added `preferExpicitFalse` rule
|
||||
- Added `preferExplicitFalse` rule
|
||||
- Added support for `::` module selector syntax
|
||||
- Added support for value generics syntax
|
||||
- Updated `swiftTestingTestCaseNames` to use raw identifiers by default
|
||||
@@ -31,7 +53,7 @@
|
||||
- Updated `redundantEquatable` to preserve `==` implementation in types with `Strideable` conformance
|
||||
- Fixed handling of switch statements with `#if` blocks in several rules
|
||||
- Fixed issue where `async` function declarations were wrapped using `wrapArguments` instead of `wrapParameters`
|
||||
- Fixed issue where `redudantViewBuilder` would remove `@ViewBuilder` from protocol members
|
||||
- Fixed issue where `redundantViewBuilder` would remove `@ViewBuilder` from protocol members
|
||||
- Fixed `redundantSelf` parsing issue with throwing closure return types and switch expressions in `if let` condition
|
||||
- Fixed `trailingCommas` rule incorrectly adding commas to if `#available` checks
|
||||
- Fixed `guard...else` indentation in `wrapArguments` with `wrap-conditions`
|
||||
|
||||
Binary file not shown.
@@ -299,7 +299,7 @@ let package = Package(
|
||||
name: "BuildTools",
|
||||
platforms: [.macOS(.v10_11)],
|
||||
dependencies: [
|
||||
.package(url: "https://github.com/nicklockwood/SwiftFormat", from: "0.60.1"),
|
||||
.package(url: "https://github.com/nicklockwood/SwiftFormat", from: "0.61.0"),
|
||||
],
|
||||
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.60.1'
|
||||
pod 'SwiftFormat/CLI', '~> 0.61.0'
|
||||
```
|
||||
|
||||
**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.60.1"),
|
||||
.package(url: "https://github.com/nicklockwood/SwiftFormat", from: "0.61.0"),
|
||||
]
|
||||
```
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
import Foundation
|
||||
|
||||
/// The current SwiftFormat version
|
||||
let swiftFormatVersion = "0.60.1"
|
||||
let swiftFormatVersion = "0.61.0"
|
||||
public let version = swiftFormatVersion
|
||||
|
||||
/// The standard SwiftFormat config file name
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "SwiftFormat",
|
||||
"version": "0.60.1",
|
||||
"version": "0.61.0",
|
||||
"license": {
|
||||
"type": "MIT",
|
||||
"file": "LICENSE.md"
|
||||
@@ -10,7 +10,7 @@
|
||||
"authors": "Nick Lockwood",
|
||||
"source": {
|
||||
"git": "https://github.com/nicklockwood/SwiftFormat.git",
|
||||
"tag": "0.60.1"
|
||||
"tag": "0.61.0"
|
||||
},
|
||||
"default_subspecs": "Core",
|
||||
"subspecs": [
|
||||
|
||||
@@ -1275,7 +1275,7 @@
|
||||
"@loader_path/Frameworks",
|
||||
);
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.14;
|
||||
MARKETING_VERSION = 0.60.1;
|
||||
MARKETING_VERSION = 0.61.0;
|
||||
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.60.1;
|
||||
MARKETING_VERSION = 0.61.0;
|
||||
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.60.1;
|
||||
MARKETING_VERSION = 0.61.0;
|
||||
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.60.1;
|
||||
MARKETING_VERSION = 0.61.0;
|
||||
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.60.1;
|
||||
MARKETING_VERSION = 0.61.0;
|
||||
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.60.1;
|
||||
MARKETING_VERSION = 0.61.0;
|
||||
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.60.1;
|
||||
MARKETING_VERSION = 0.61.0;
|
||||
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.60.1;
|
||||
MARKETING_VERSION = 0.61.0;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = "com.charcoaldesign.SwiftFormat-for-Xcode.SourceEditorExtension";
|
||||
PRODUCT_NAME = SwiftFormat;
|
||||
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||
|
||||
Reference in New Issue
Block a user