diff --git a/CHANGELOG.md b/CHANGELOG.md index 0beed15a..8166f770 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Change Log +## [0.50.0](https://github.com/nicklockwood/SwiftFormat/releases/tag/0.50.0) (2022-09-28) + +- Added `genericExtensions` rule for simplifying conditional type extensions in Swift 5.7 +- Added `markTypes` support for type definitions in extensions +- Added `opaqueGenericParameters` rule to use opaque generic parameter syntax where equivalent +- Added `blankLineAfterImports` rule +- Added `redundantOptionalBinding` rule for simplifying `if let` expressions in Swift 5.7 +- Added `--enumnamespaces structs-only` option +- Added `wrapSingleLineComments` rule +- A `--swiftversion` in the `.swiftformat` config now takes precedence over `.swift-version` file +- Multiline string interpolations can now wrap inside parenthesized expression +- Comma-delimited options in descendent `.swiftformat` config files are no longer merged +- SwiftFormat now requires a minimum of Swift 5.1 to build + ## [0.49.18](https://github.com/nicklockwood/SwiftFormat/releases/tag/0.49.18) (2022-08-30) - Fixed bug in `unusedArguments` when argument is shadowed in a `switch` case statement diff --git a/CommandLineTool/swiftformat b/CommandLineTool/swiftformat index 334e330d..b003b012 100755 Binary files a/CommandLineTool/swiftformat and b/CommandLineTool/swiftformat differ diff --git a/Sources/Formatter.swift b/Sources/Formatter.swift index ffd395cb..2b33a3ee 100644 --- a/Sources/Formatter.swift +++ b/Sources/Formatter.swift @@ -2,7 +2,7 @@ // Formatter.swift // SwiftFormat // -// Version 0.49.18 +// Version 0.50.0 // // Created by Nick Lockwood on 12/08/2016. // Copyright 2016 Nick Lockwood diff --git a/Sources/SwiftFormat.swift b/Sources/SwiftFormat.swift index b685d038..9716e523 100644 --- a/Sources/SwiftFormat.swift +++ b/Sources/SwiftFormat.swift @@ -32,7 +32,7 @@ import Foundation /// The current SwiftFormat version -let swiftFormatVersion = "0.49.18" +let swiftFormatVersion = "0.50.0" public let version = swiftFormatVersion /// The standard SwiftFormat config file name diff --git a/Sources/Tokenizer.swift b/Sources/Tokenizer.swift index 143d33a0..d3ccddca 100644 --- a/Sources/Tokenizer.swift +++ b/Sources/Tokenizer.swift @@ -2,7 +2,7 @@ // Tokenizer.swift // SwiftFormat // -// Version 0.49.18 +// Version 0.50.0 // // Created by Nick Lockwood on 11/08/2016. // Copyright 2016 Nick Lockwood diff --git a/SwiftFormat.podspec.json b/SwiftFormat.podspec.json index d18c9e09..93c4dc26 100644 --- a/SwiftFormat.podspec.json +++ b/SwiftFormat.podspec.json @@ -1,6 +1,6 @@ { "name": "SwiftFormat", - "version": "0.49.18", + "version": "0.50.0", "license": { "type": "MIT", "file": "LICENSE.md" @@ -10,7 +10,7 @@ "authors": "Nick Lockwood", "source": { "git": "https://github.com/nicklockwood/SwiftFormat.git", - "tag": "0.49.18" + "tag": "0.50.0" }, "default_subspecs": "Core", "subspecs": [ @@ -24,15 +24,15 @@ "platforms": { "ios": "9.0", "tvos": "9.0", - "osx": "10.12" + "osx": "10.14" } } ], "platforms": { "ios": "11.0", "tvos": "11.0", - "osx": "10.12" + "osx": "10.14" }, - "swift_versions": ["4.2", "5.0", "5.1", "5.2", "5.3", "5.4", "5.5", "5.6"], + "swift_versions": ["5.1", "5.2", "5.3", "5.4", "5.5", "5.6", "5.7"], "requires_arc": true } diff --git a/SwiftFormat.xcodeproj/project.pbxproj b/SwiftFormat.xcodeproj/project.pbxproj index b463e49f..67bbd265 100644 --- a/SwiftFormat.xcodeproj/project.pbxproj +++ b/SwiftFormat.xcodeproj/project.pbxproj @@ -1086,7 +1086,7 @@ "@executable_path/../Frameworks", "@loader_path/Frameworks", ); - MARKETING_VERSION = 0.49.18; + MARKETING_VERSION = 0.50.0; PRODUCT_BUNDLE_IDENTIFIER = com.charcoaldesign.SwiftFormat; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; @@ -1115,7 +1115,7 @@ "@executable_path/../Frameworks", "@loader_path/Frameworks", ); - MARKETING_VERSION = 0.49.18; + MARKETING_VERSION = 0.50.0; PRODUCT_BUNDLE_IDENTIFIER = com.charcoaldesign.SwiftFormat; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; @@ -1216,7 +1216,7 @@ "@executable_path/../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 10.14; - MARKETING_VERSION = 0.49.18; + MARKETING_VERSION = 0.50.0; PRODUCT_BUNDLE_IDENTIFIER = "com.charcoaldesign.SwiftFormat-for-Xcode"; PRODUCT_NAME = "SwiftFormat for Xcode"; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -1247,7 +1247,7 @@ "@executable_path/../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 10.14; - MARKETING_VERSION = 0.49.18; + MARKETING_VERSION = 0.50.0; PRODUCT_BUNDLE_IDENTIFIER = "com.charcoaldesign.SwiftFormat-for-Xcode"; PRODUCT_NAME = "SwiftFormat for Xcode"; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -1275,7 +1275,7 @@ "@executable_path/../../../../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 10.14; - MARKETING_VERSION = 0.49.18; + MARKETING_VERSION = 0.50.0; PRODUCT_BUNDLE_IDENTIFIER = "com.charcoaldesign.SwiftFormat-for-Xcode.SourceEditorExtension"; PRODUCT_NAME = SwiftFormat; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -1305,7 +1305,7 @@ "@executable_path/../../../../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 10.14; - MARKETING_VERSION = 0.49.18; + MARKETING_VERSION = 0.50.0; PRODUCT_BUNDLE_IDENTIFIER = "com.charcoaldesign.SwiftFormat-for-Xcode.SourceEditorExtension"; PRODUCT_NAME = SwiftFormat; PROVISIONING_PROFILE_SPECIFIER = "";