Skip to content

Commit 7eeaa77

Browse files
chore(deps): update dependency nicklockwood/swiftformat to from: "0.51.12" (#451)
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [nicklockwood/SwiftFormat](https://github.com/nicklockwood/SwiftFormat) | minor | `from: "0.50.6"` -> `from: "0.51.12"` | --- ### Release Notes <details> <summary>nicklockwood/SwiftFormat (nicklockwood/SwiftFormat)</summary> ### [`v0.51.12`](https://github.com/nicklockwood/SwiftFormat/blob/HEAD/CHANGELOG.md#&#8203;05112-httpsgithubcomnicklockwoodSwiftFormatreleasestag05112-2023-06-13) [Compare Source](https://github.com/nicklockwood/SwiftFormat/compare/0.51.11...0.51.12) - Fixed `hoistTry` bugs with generics, subscripts and collection literals - Fixed hoisting bugs with statements containing both `try?` and `try` - Fixed hoisting of `try` inside an optional function - Fixed function argument wrapping bug - Fixed bug where nested closure `in` was mistaken for part of a `for` loop - Added preliminary support for wrapping Swift 5.9 macro declarations - Added preliminary support for Swift 5.9 `package` access modifier - Added preliminary support for Swift 5.9 `consume` and `discard` operators - Added preliminary support for Swift 5.9 `borrowing` and `consuming` modifiers ### [`v0.51.11`](https://github.com/nicklockwood/SwiftFormat/blob/HEAD/CHANGELOG.md#&#8203;05111-httpsgithubcomnicklockwoodSwiftFormatreleasestag05111-2023-05-29) [Compare Source](https://github.com/nicklockwood/SwiftFormat/compare/0.51.10...0.51.11) - Fixed unexpected static function error false positive in `redundantSelf` rule - Fixed failure to report lint error when removing a duplicate blank line at the end of the file - Fixed bug where `hoistTry` rule failed with more than 10 `try` expressions at the same scope level - Comments containing `TODO:` directives are no longer converted by the `docComments` rule ### [`v0.51.10`](https://github.com/nicklockwood/SwiftFormat/blob/HEAD/CHANGELOG.md#&#8203;05110-httpsgithubcomnicklockwoodSwiftFormatreleasestag05110-2023-05-21) [Compare Source](https://github.com/nicklockwood/SwiftFormat/compare/0.51.9...0.51.10) - Fixed bug in `wrapAttributes` rule due to `class` declaration being mistaken for class-scoped var - Fixed another case of incorrect indenting inside an `#ifdef` block - Fixed line breaks being incorrectly removed by `sortedSwitchCases` ### [`v0.51.9`](https://github.com/nicklockwood/SwiftFormat/blob/HEAD/CHANGELOG.md#&#8203;0519-httpsgithubcomnicklockwoodSwiftFormatreleasestag0519-2023-05-04) [Compare Source](https://github.com/nicklockwood/SwiftFormat/compare/0.51.8...0.51.9) - Fixed `typeSugar` rule unwrapping Optional `some/any` without inserting required parentheses - Fixed indenting of function arguments inside an `#ifdef` block after a closing brace - Fixed comment directive state leaking between rules ### [`v0.51.8`](https://github.com/nicklockwood/SwiftFormat/blob/HEAD/CHANGELOG.md#&#8203;0518-httpsgithubcomnicklockwoodSwiftFormatreleasestag0518-2023-05-02) [Compare Source](https://github.com/nicklockwood/SwiftFormat/compare/0.51.7...0.51.8) - Fixed `redundantSelf` removing non-unwrapped weak `self` inside closures - Fixed `fileprivate` rule making `init` private when inherited by subclass in the same file - Fixed `hoistPatternLet` rule inserting `let` inside dictionary type literal - Fixed indenting for chained members inside conditional compilation blocks - Fixed `unusedArguments` incorrectly removing used argument after conditional compilation block - Improved `unusedArguments` rule error handling ### [`v0.51.7`](https://github.com/nicklockwood/SwiftFormat/blob/HEAD/CHANGELOG.md#&#8203;0517-httpsgithubcomnicklockwoodSwiftFormatreleasestag0517-2023-04-18) [Compare Source](https://github.com/nicklockwood/SwiftFormat/compare/0.51.6...0.51.7) - Fixed `redundantSelf` incorrectly inserting `self` for local variables declared in capture list - Fixed `blankLineAfterImports` rule inserting blank line before `@_spi` imports - Fixed `fileHeader` rule ignoring headers containing URLs ### [`v0.51.6`](https://github.com/nicklockwood/SwiftFormat/blob/HEAD/CHANGELOG.md#&#8203;0516-httpsgithubcomnicklockwoodSwiftFormatreleasestag0516-2023-04-12) [Compare Source](https://github.com/nicklockwood/SwiftFormat/compare/0.51.5...0.51.6) - Required `self` is now preserved in function bodies inside closures with `[weak self]` captures - Fixed bug with `hoistTry` inside chains of concatenated interpolated strings - Fixed indenting of dot-prefixed identifiers inside `#else` and `#elseif` blocks - Fixed parsing bug in `redundantSelf` rule ### [`v0.51.5`](https://github.com/nicklockwood/SwiftFormat/blob/HEAD/CHANGELOG.md#&#8203;0515-httpsgithubcomnicklockwoodSwiftFormatreleasestag0515-2023-04-09) [Compare Source](https://github.com/nicklockwood/SwiftFormat/compare/0.51.4...0.51.5) - Added `--baseconfig` option to replicate old `--config` behavior - Fixed `self` being incorrectly inserted inside capture list - Fixed indenting of `.init` inside `#if` statements - Fixed `redundantInit` glitch inside `#if` statements - Fixed `redundantSelf` inside `if case` expressions - Fixed `hoistTry` for strings containing multiple interpolation clauses - Fixed redundant parens not being removed after `return` keyword - Fixed spacing after attribute when using `--funcattributes same-line` - Fixed false positive in collection literals for `unusedArguments` - Fixed file access permissions errors not being reported ### [`v0.51.4`](https://github.com/nicklockwood/SwiftFormat/blob/HEAD/CHANGELOG.md#&#8203;0514-httpsgithubcomnicklockwoodSwiftFormatreleasestag0514-2023-04-01) [Compare Source](https://github.com/nicklockwood/SwiftFormat/compare/0.51.3...0.51.4) - Limited `redundantReturn` inside if / switch expressions to Swift 5.9+ - Fixed `hoistTry` and `hoistAwait` inside multiline string literals - Fixed invalid indenting of blank lines inside multiline string literals ### [`v0.51.3`](https://github.com/nicklockwood/SwiftFormat/blob/HEAD/CHANGELOG.md#&#8203;0513-httpsgithubcomnicklockwoodSwiftFormatreleasestag0513-2023-03-27) [Compare Source](https://github.com/nicklockwood/SwiftFormat/compare/0.51.2...0.51.3) - Fixed `hoistTry` and `hoistAwait` rule breaking string interpolations - Fixed bug where `opaqueGenericParameters` rule would remove non-redundant generic type - Fixed parsing bug with trailing closures on optional methods - Fixed `redundantSelf` rule parsing bug affecting string literals - Updated if / switch expression features to be enabled only in Swift 5.9+ ### [`v0.51.2`](https://github.com/nicklockwood/SwiftFormat/blob/HEAD/CHANGELOG.md#&#8203;0512-httpsgithubcomnicklockwoodSwiftFormatreleasestag0512-2023-03-07) [Compare Source](https://github.com/nicklockwood/SwiftFormat/compare/0.51.1...0.51.2) - Fixed `hoistTry` rule breaking multiline function chains - Added `--asynccapturing` and `--throwcapturing` options for `hoistTry` and `hoistAwait` rules - Fixed changes in last line of file not being correctly tracked ### [`v0.51.1`](https://github.com/nicklockwood/SwiftFormat/blob/HEAD/CHANGELOG.md#&#8203;05112-httpsgithubcomnicklockwoodSwiftFormatreleasestag05112-2023-06-13) [Compare Source](https://github.com/nicklockwood/SwiftFormat/compare/0.51.0...0.51.1) - Fixed `hoistTry` bugs with generics, subscripts and collection literals - Fixed hoisting bugs with statements containing both `try?` and `try` - Fixed hoisting of `try` inside an optional function - Fixed function argument wrapping bug - Fixed bug where nested closure `in` was mistaken for part of a `for` loop - Added preliminary support for wrapping Swift 5.9 macro declarations - Added preliminary support for Swift 5.9 `package` access modifier - Added preliminary support for Swift 5.9 `consume` and `discard` operators - Added preliminary support for Swift 5.9 `borrowing` and `consuming` modifiers ### [`v0.51.0`](https://github.com/nicklockwood/SwiftFormat/blob/HEAD/CHANGELOG.md#&#8203;0510-httpsgithubcomnicklockwoodSwiftFormatreleasestag0510-2023-02-28) [Compare Source](https://github.com/nicklockwood/SwiftFormat/compare/0.50.9...0.51.0) - Added `hoistAwait` and `hoistTry` rules to hoist inline `await`/`try` to start of expression - Extended `redundantPattern` rule to remove redundant `let` in patterns - The `wrapMultilineStatementBraces` rules is now applied more consistently - Updated `redundantReturn`/`Closure` rules to support `if`/`switch` expressions in Swift 5.8 - Added `conditionalAssignment` rule to assign variables using `if`/`switch` expressions in Swift 5.8 - Updated `redundantType` rule to support `if`/`switch` expression assignment Swift 5.8 - Extended `redundantSelf` rule to support implicit `self` in eligible closures in Swift 5.8 - SwiftFormat now ignores `.swiftformat` files when explicit `--config` file is provided - Added `--wrapenumcases with-values` option to only wrap enum cases with values - Added `--wrapeffects` option for wrapping function effects - Removed unsafe `preferDouble` rule ### [`v0.50.9`](https://github.com/nicklockwood/SwiftFormat/blob/HEAD/CHANGELOG.md#&#8203;0509-httpsgithubcomnicklockwoodSwiftFormatreleasestag0509-2023-02-16) [Compare Source](https://github.com/nicklockwood/SwiftFormat/compare/0.50.8...0.50.9) - Added GitHub actions log reporter (see `--reporter` option for details) - Fixed bug where `redundantType` sometimes stripped in cases where it couldn't be inferred - The `redundantType` rule now supports removing type in more cases where supported - Made SwiftFormat for Xcode instructions dynamic according to OS version - Fixed bug where a trailing comma could be left behind by `opaqueGenericParameters` rule - Fixed bug where `wrapAttributes` rule sometimes wrapped inline attributes like `@MainActor` - Improved support for `// swiftformat:options` comment directives - Removed deprecated options from the example `.swiftformat` file ### [`v0.50.8`](https://github.com/nicklockwood/SwiftFormat/blob/HEAD/CHANGELOG.md#&#8203;0508-httpsgithubcomnicklockwoodSwiftFormatreleasestag0508-2023-01-29) [Compare Source](https://github.com/nicklockwood/SwiftFormat/compare/0.50.7...0.50.8) - The `redundantBackticks` rule no longer removes required comments around `self` - Associated type headerdoc comments are now handles correctly by the `docComments` rule - Fixed mangled comments when using the `sortedSwitchCases` rule - Hex, octal or binary literals are now sorted correctly in `sortedSwitchCases` rule - Fixed regression in closed brace indentation (introduced in 0.50.7) - Fixed unsafe semicolon removal after inferred `var` properties - Added fileHeader placeholder documentation ### [`v0.50.7`](https://github.com/nicklockwood/SwiftFormat/blob/HEAD/CHANGELOG.md#&#8203;0507-httpsgithubcomnicklockwoodSwiftFormatreleasestag0507-2022-12-27) [Compare Source](https://github.com/nicklockwood/SwiftFormat/compare/0.50.6...0.50.7) - Fixed parsing of regex literals preceded by `try` or `await` - Fixed required parens being removed around `await` keyword - Fixed indent for nested, wrapped parameters </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/cgrindel/rules_swift_package_manager). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xNDQuMiIsInVwZGF0ZWRJblZlciI6IjM1LjE0NC4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent c43826f commit 7eeaa77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/pkg_manifest_minimal/Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ let package = Package(
77
dependencies: [
88
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.2.0"),
99
.package(url: "https://github.com/apple/swift-log", from: "1.4.4"),
10-
.package(url: "https://github.com/nicklockwood/SwiftFormat", from: "0.50.6"),
10+
.package(url: "https://github.com/nicklockwood/SwiftFormat", from: "0.51.12"),
1111
.package(path: "third_party/my_local_package"),
1212
]
1313
)

0 commit comments

Comments
 (0)