Update all dependencies #15
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v3.5.2->v3.6.00.51.7->0.58.7from: "1.11.0"->from: "1.18.7"0.51.0->0.62.2Release Notes
actions/checkout (actions/checkout)
v3.6.0Compare Source
v3.5.3Compare Source
nicklockwood/SwiftFormat (nicklockwood/SwiftFormat)
v0.58.7Compare Source
redundantSelfnot being applied insideif #available(...) { ... }clausesfileHeaderrule incorrectly setting creation year to current when file path contains spacesnil-initrule related to optional closure return valuesunusedPrivateDeclarationsfalse positive when call site was outside enabled rangesortImportsrule incorrectly moving// swift-tools-version:comment directivehoistTryrule sometimes producing mangled code when hoisting across line boundaries--ruleinfocommand when rule options exceed the old max length requirementunusedArgumentsdue to scope range bugv0.58.6Compare Source
docCommentsnot being applied correctly after conditionalswitch...case#selector(...)expressions--filelistare now formatted concurrentlyreturnremoval insiderepeat...whileloopstrailingClosuresrule and property wrappersv0.58.5Compare Source
returnkeyword insidefor ... whereloopsfor await case ...loopsXCTUnwrapto the default exclusion list forhoistTryv0.58.4Compare Source
trailingCommarule incorrectly inserting commas inside typedthrowsopaqueGenericParametersrule could cause build errors with existential typesunusedArgumentswhen argument is only referenced inside a macronoGuardInTestsrule now preserves custom failure messagesnoGuardInTestsrule no longer addsthrowsto test methods when not neededv0.58.3Compare Source
[n of X]syntax forInlineArrayin Swift 6.2redundantInitrule could leave orphaned parenthesesredundantInitwas incorrectly applied to(Foo.self as Bar.Type)expressionsredundantSelfruleacronymsrule where one acronym overlaps anotherwrapArgumentsrule--unknown-rulesoption to support environments with older SwiftFormat versionsv0.58.2Compare Source
modifierOrderrule confusedasynceffect forasyncmodifierredundantInitrule to apply toinitcalls with single trailing closureREADME.mdto reflect actual precedence behavior between.swift-versionfiles and--swift-versionarguments.v0.58.1Compare Source
asynceffect could be confused forasyncmodifier, breakingdocCommentsBeforeModifiersrule in protocol body with async functionswrapAttributesrule would unexpectedly wrapasynceffect.swift-versionfile was ignored if not also using config fileredundantAsyncignoredawaitkeyword in string interpolationacronymsrule would incorrectly always capitalize potentially matching acronyms one letter before end of identifierredundantLetrule to handle#Previewmacrov0.58.0Compare Source
noForceUnwrapInTestsruleredundantThrowsruleredundantAsyncrulepreferFinalClassesruletrailingCommasrule to handle cases now supported by Swift 6.2trailingClosuresrule to support multiple trailing closures--allow-partial-wrapping falseoption to disallow partial wrapping of functions and collectionspropertyTypesrule to support array, dictionary, and set literalsorganizeDeclarationsthreshold options to organize types without adding marks--type-body-marks removeoption toorganizeDeclarationsorganizeDeclarationsto support organizing protocol bodiesorganizeDeclarationsto treatassociatedtypedeclarations as nested types, liketypealiasdeclarations.--blank-line-after-switch-case alwaysoption toblankLineAfterSwitchCase--default-test-suite-attributesoption topreferSwiftTestingrule--markdown-filesoptions tostrictandlenientredundantPublicrule to apply to private typestrailingClosuresandtrailingCommasrules to support optional function callsmarkTypesrule wouldn't add marks after extensionsredundantPublicbroke@_spiannotated membershoistTryrule could break@TestattributeredundantVoidReturnTyperule could accidentally remove closure typeblankLinesAroundMarknot ignoring trailing comments at start of scopethrowingTestsrule tonoForceTryInTestssinglePropertyPerLineto preserveasync letdeclarationsv0.57.2Compare Source
trailingCommasrule to handle function declarations with generic arguments.--trailing-commas alwaysto preserve trailing commas rather than unnecessarily removing trailing commas in some edge cases.v0.57.1Compare Source
--trailing-commas always.redundantPublicrule didn't handle extensions on types defined in public extensions.@Bindableto list of SwiftUI property wrappers used byorganizeDeclarationsrule.preferFileMacrorule.v0.57.0Compare Source
--kebab-case. Existing option names without dashes remain supported for backwards compatibility. Some options have been renamed to improve clarity.:thisand:previousin comment directives.--configfile arguments.singlePropertyPerLinerule to convert property declarations defining multiple properties into separate declarations.redundantMemberwiseInitrule to remove explicit memberwise initializers that are identical to thestruct's compiler-synthesized initializer.redundantPublicrule to remove public access control from properties of internal types.modifiersOnSameLinerule to keep declaration modifiers on the same line.throwingTestsrule to prefer usingtryandthrowsin unit tests rather thantry!.noGuardInTestsrule to prefer convert guard statements in unit tests totry #require(...)/#expect(...)ortry XCTUnwrap(...)/XCTAssert(...).urlMacrorule to convertURL(string: "...")!initializers to a provided#URL("...")macro.--trailing-commas collections-onlyand--trailing-commas multi-element-listsoptions totrailingCommasrule.--type-blank-lines insertoption toblankLinesAtStartOfScopeandblankLinesAtEndOfScoperules.--wrap-string-interpolationoption to support disabling line wrapping within string interpolation.--line-between-guardsoption toblankLinesAfterGuardStatementsrule.docCommentsrule.docCommentsrule where trailing comments would be converted to doc comments.redundantNilInitrule would ignore type bodies with conformances.wrapEnumCasesdidn't handle some nested types correctly.#characters in config files couldn't be escaped.#characters.--wrap-return-type neverdidn't respect--allman true.v0.56.4Compare Source
trailingCommasrule would not insert trailing commas in function declarations with return typetrailingCommasrule would not insert trailing commas in array literals following!operatorunusedArgumentsrule would ignore function declarations with trailing commasvoidrule would not handle()types in typealiasesredundantLetrule did not detect code inside result builders when nested in conditional compilation blocksv0.56.3Compare Source
trailingCommasrule would insert commas in closure types and tuple types used in typealaises (not supported in Swift 6.1)v0.56.2Compare Source
trailingCommasrule would insert commas in@escpaingor@Sendableclosure types (not supported in Swift 6.1)privateStateVariablesrule handled@Previewableattributes on previous line incorrectlyv0.56.1Compare Source
trailingCommasrule would insert commas in places not actually supported by Swift 6.1--wrapeffectsoption would incorrectly unwrapasync letproperties following function callredundantEquatablerule would incorrectly remove==implementation in factor of synthesized implementation even if type contained non-Equatable properies like tuplesextensionAccessControlrule would incorrectly hoistpublicACL in@preconcurrencyconformancesorganizeDeclarationsrule would sometimes break property declarations with if expression valuesv0.56.0Compare Source
wrapMultilineFunctionChainsrule to wrap chained method callsenvironmentEntryrule to update SwiftUIEnvironmentValuesdefinitions to use the@EntrymacroredundantEquatablerule to remove explicitEquatableconformances that would be compiler-synthesizedpreferSwiftTestingrule to migrate XCTest-based tests to Swift TestingswiftTestingTestCaseNamesrule to remove redundant "test" prefix from Swift Testing test case methods.preferCountWhererule to prefercount(where:)overfilter(_:).countfileMacrorule to prefer either#fileor#fileID, which have the same behavior in Swift 6 and laterblankLinesAfterGuardStatementsrule to remove blank lines between consecuitve guard statements, and add blank line after last guard statement.privateStateVariablesrule to addprivateaccess control to@StatepropertiesemptyExtensionsrule to remove extensions that contain no declarations or conformances--preserveacronymsoption toacronymsrule--wrapreturntype neveroption towrapArgumentsruletrailingCommasto support Swift 6.1 trailing comma functionalityopaqueGenericParametersnow supports protocol requirements without a body--wrapeffectsand--wrapreturntypenow support protocol requirements and closure typesblankLinesAtStartOfScoperule now supports switch cases and closure capture / parameter listsorganizeDeclarationsline count threshold would ignoreswiftformat:sortdirectivesorganizeDeclarationsrule would unexpectedly remove non-mark commentsbrew install swiftformat --head. Prerelease builds are subject to breaking changes.v0.55.6Compare Source
repeat,eachkeywords)propertyTypesrule could cause build failure in properties withsometype--callsiteparen balancedwould have no effect when using--closingparen same-linev0.55.5Compare Source
yodaConditionsrule mangling generic function callselseor opening brace followingif/switchexpressionorganizeDeclarationsrule no longer treats properties withdidSetas computedv0.55.4Compare Source
whereclause forswitch ... casestatementsunusedArgumentscould remove required arguments in some casessortTypealiasesrule now correctly handlesanykeywordv0.55.3Compare Source
sortTypealiasesrule could mangle generic types, or ones using theanykeywordpreferKeyPathsrule now only uses\\.selffor Swift 6 and later (fix din't land yet in 5.10)artifactbundlenot working onubuntu-latestv0.55.2Compare Source
unusedArgumentsfailed to remove arguments that matched switch variable bindingsunusedArgumentsfailed to remove arguments that matched nested function call labelsblankLinesAtStartOfScopewhen usingorganizeDeclarationsrulewraprule lint errorspreferKeyPathsrule now handles the\\.selfcase for Swift 5.10 and later\.?v0.55.1Compare Source
docCommentsBeforeModifiersgot confused byenumcases that match modifier nameswrapEnumCaseswould mangle nested or successiveenumdeclarationsv0.55.0Compare Source
docCommentsBeforeModifiersrule to hoist doc comments above declaration modifiersunusedPrivateDeclarationsrule to remove unusedprivateorfileprivatedeclarationspropertyTypesrule to control the use of inferred or explicit types for properties--redundanttypeoption to--propertytypesas it's shared by both rules--ranges preserveand--operatorfunc preserveoptions--languagemodeoption to specify if you are using Swift 5 or 6 language modeorganizeDeclarationsrule can now sort declarations by name/type/visibility/etcorganizeDeclarationsbug where--beforemarksunexpectedly matched keywords in function bodiesorganizeDeclarationsrulemarkTypesrule for chained protocol extension names--onelineforeachoption to--inlinedforeach--outputtokensoption to print output as tokens in JSON formatv0.54.6Compare Source
wrapMultilineStatementBracesruleparseDeclarationswhere incorrect tokens could cause rules to time outorganizeDeclarationswould add extra blank lines if type had blank lines with spacespreferForLooprulev0.54.5Compare Source
unusedArgumentsrulepreferForLoopfailed ifforEachcontainsguard ... else { return }v0.54.4Compare Source
returnwas incorrectly removed insidecatchstatement withwhereclauseopaqueGenericParametersrule being incorrectly applied to functions with typedthrowsspaceAroundBracketsbehaving incorrectly inside a macro invocationunusedArgumentsfalse positive inside multiline string literalreturnresulted in non-compiling code for opaque return typesVoidreturn type is now removed from functions in protocol declarationsunusedArgumentsdidn't handle conditional assignment shadowing correctlyv0.54.3Compare Source
--wrapeffects nevercould unexpectedly remove unrelated code--condassignmentoption (setting this previously had no effect)redundantReturnrule no longer removes conditionalreturns ifconditionalAssignmentis disabledredundantObjcrule now strips implicit@objcattribute for@IBSegueActionfunctionsv0.54.2Compare Source
blankLinesBetweenChainedFunctionsrule now removes blank line after comments in the chainblankLinesBetweenChainedFunctionsrule no longer conflicts withblankLinesAroundMarkredundantInternalremoving requiredinternalkeyword in extensions withwhereclausereturnremoval in conditional blocksredundantNilInitrule insertingnilafteraskeywordv0.54.1Compare Source
--nilInit insertoption is no longer applied to lazy or attributed propertiesblankLinesBetweenChainedFunctionsrule now correctly handles comments in the chain--fragmentmodereturnin conditional blocks--lintmode reporter output when usingstdinv0.54.0Compare Source
blankLineAfterSwitchCaserule for inserting blank lines after switch casesconsistentSwitchCaseSpacingrule for ensuring consistent spacing between switch casesredundantPropertyrule for removing variable assignments where value is immediately returnedredundantTypedThrowsrule for stripping redundantNeverorany Errorthrowstypes--reportwithout--reportertype now raises an error if type can't be inferred--reporter xmloption)--typedelimiteroption for controlling spacing around the colon in type definitions--initcoderniloption for returningnilinstead of asserting in unavailableinit?(coder:)fileHeaderrule now uses git info forcreateddate (if available) instead of file systemauthor,author.nameandauthor.emailtokens for file header templates--callsiteparenoption for controlling closing paren placement at function call siteswrapAttributesrule can now be applied differently to computed properties vs stored propertieswrapAttributesrule can now be applied differently to complex (parameterized) vs simple attributes--varattributeswith--storedvarattrs,--computedvarattrsand--complexattrsoptions—-nilinitoption for controlling whetherredundantNilInitadds or removes explicitnil--organizationmode type)organizeDeclarationsfor structs causedsortDeclarationsto have no effectopaqueGenericParameters ruleinitand_modifyproperty accessorspreferForLooprule and tuple argument matchingconditionalAssignmentrule to handle more cases--condassignment after-propertyoptionselfwithin macrosos_logto--selfrequireddefaultsv0.53.10Compare Source
stdoutdirectory when using--output stdoutunusedArgumentsfalse positive for multiline function call arguments~operator--reportor--reporterargumentsstrongifiedSelfremoving required backticks around nonisolatedselfdefaultvalue for--reporter(introduced in 0.53.9)sendingkeywordv0.53.9Compare Source
unusedArgumentswhen shadowing function argument with conditional assignment declaration--linterrors are no longer shown in--quietmode (restores pre-0.53.8 behavior)v0.53.8Compare Source
--strictoption to emit non-zero exit code after applying changes in formatting modeenumNamespacesrule is no longer applied to structs with macros that have generic argumentsopaqueGenericParametersrule is no longer applied to structs with macros or attributesredundantParensspuriously removed parens inside a closureredundantInitmishandled a.initafter a ternary operatorv0.53.7Compare Source
redundantParenswhere first parens inside a closure were spuriously removedwrapEnumCasesrule mangling unindented caseswrapEnumCasesrule no longer wraps cases inside inline enum declarationsredundantInitmetatype heuristic to reduce false positivesv0.53.6Compare Source
.operator inside attribute argumentsredundantTyperule no longer strips required explicit type from@Modelclass default valuesredundantInitdidn't work on collection typesredundantParensrule now correctly handles@MainActorclosureseach Xparameter pack expressions--wrapreturntype if-multilinedidn't work with arrays, dictionaries, tuples, or generic typesspaceAroundParens/Bracketsrules now correctly insert a space afterborrowing/consumingandisolatedimportstatements--doccomments preserveoption to preserve all doc comments, even if not followed by a declarationv0.53.5Compare Source
nonisolated(unsafe)modifierstryorasyncafter a string literal expression--lenientmodestatic/classmodifiersv0.53.4Compare Source
enumNamespacesrule is no longer applied to structs with attributes or macrosnonisolated(unsafe)modifier is now handled correctlydo throws(Type) { ... }clausesv0.53.3Compare Source
preferForLooprule now correctly singularizes loop conditions that end with "cases"preferForLoopmangled throwing or asyncforEachexpressionsorganizeDeclarationswas enabled but excluded declaration type@unknown defaultcasesenumNamespacesrulethrowsv0.53.2Compare Source
hoistAwaitrule could moveawaitbeforetrykeywordredundantSelfrule was confused by@MainActorannotationunusedArgumentsremoved required argument insideguardv0.53.1Compare Source
stdoutdirectory when using--output stdoutunusedArgumentsfalse positive for multiline function call arguments~operator--reportor--reporterargumentsstrongifiedSelfremoving required backticks around nonisolatedselfdefaultvalue for--reporter(introduced in 0.53.9)sendingkeywordv0.53.0Compare Source
preferForLooprule to convertforEach { ... }calls to regularforloopswrapLoopBodiesrule to wrap single-line loop bodies over multiple linesnoExplicitOwnershiprule to remove unwantedborrowingandconsumingmodifierswrapMultilineConditionalAssignmentrule to wrapiforswitchexpressions to new linewrapAttributesrule no longer unwraps attributes if they would exceed--maxwidthtypeSugarrule's--shortoptionalsoption now defaults toexcept-propertiesblankLinesBetweenChainedFunctionsrule by defaultblankLineAfterImportsrule by defaultselfbeing incorrectly inserted beforesetclause in computed propertiesparseType()helper function where qualified types were not recognizedv0.52.11Compare Source
if/switchexpression workaround for Swift 5.9 bug to handleas!castsredundantSelfrulev0.52.10Compare Source
enumNamespacesrule breakingimport struct/classstatementsconditionalAssignmentrule toswitchstatements containing#ifblocksv0.52.9Compare Source
redundantClosureremoving required closure around conditional statementsredundantClosureremoving closure containing conditional expressions inside a method callredundantClosuregenerating invalid code when theredundantReturnrule is disabledas?cast would break build in Swift 5.9blankLineAfterImportsintroducing spurious blank line before@preconcurrencyattributeenumNamespacesrule wouldn't be applied immediately after animportstatementswitchcase with multiplewhereclauses could be parsed incorrectlyv0.52.8Compare Source
redundantClosurerule in cases where anif/switchexpression is not permitteddocCommentsrule now correctly handles macro commentsdocCommentsrule is now only applied to a comment block if all lines match the patternv0.52.7Compare Source
conditionalAssignmentandredundantClosurerules would be applied incorrectlyredundantClosurerule leaving straytryorawaitkeywords behindv0.52.6Compare Source
redundantReturnrule was incorrectly applied to consecutiveifstatements in Swift 5.9v0.52.5Compare Source
redundantReturnrule could break fallible initializers in Swift 5.9docCommentsrule inside#ifstatementsdocCommentsrule no longer treats comments starting withNote:as a special directive#ifstatements immediately preceded by a commentbracesrule when no--maxwidthis specified--asynccapturinglistv0.52.4Compare Source
docCommentsrule incorrectly replacing comments inside switch cases and if/guard conditionsredundantLetrule removing requiredletinsideViewBuildermodifiersredundantLetrule removing requiredletafter@MainActoror@Sendable--wrapconditions after-firstif first line of condition is a commentsortTypealiasesrule to also remove duplicate protocols in declarationv0.52.3Compare Source
tryinside multiline string literal interpolationstryinside generic type initializer callsreturnstatements added while debugging would be incorrectly removedv0.52.2Compare Source
Selfbeing incorrectly removed inletorif letexpressions// swiftformat:disabledirective not working forredundantReturnrulev0.52.1Compare Source
if/switchexpression workaround for Swift 5.9 bug to handleas!castsredundantSelfrulev0.52.0Compare Source
redundantInternalrule to remove redundantinternalaccess modifierssortTypealiasesrule to sorttypealiastypes alphabeticallyheaderFileNamerule to ensure filename in header comment matches actual fileredundantStaticSelfrule to remove redundantselfinside static functionsblankLinesBetweenChainedFunctionsrule to remove blank lines inside function chainsapplicationMainrule to remove obsolete@UIApplicationMainand@NSApplicationMainattributessortedSwitchCasesrule tosortSwitchCasesfor consistencysortedImportsrule tosortImportsfor consistencyreturnis now correctly removed in switch cases with associated valuesredundantSelfruleelsestatement is now preservedv0.51.15Compare Source
unusedArgumentsrule that caused used parameters to be marked unused/operatorv0.51.14Compare Source
v0.51.13Compare Source
redundantSelfrule to be silently disabledunusedArgumentswould remove an argument that was used after anif$identifierpackagekeyword inorganizeDeclarationsrulev0.51.12Compare Source
hoistTrybugs with generics, subscripts and collection literalstry?andtrytryinside an optional functioninwas mistaken for part of aforlooppackageaccess modifierconsumeanddiscardoperatorsborrowingandconsumingmodifiersv0.51.11Compare Source
redundantSelfrulehoistTryrule failed with more than 10tryexpressions at the same scope levelTODO:directives are no longer converted by thedocCommentsrulev0.51.10Compare Source
wrapAttributesrule due toclassdeclaration being mistaken for class-scoped var#ifdefblocksortedSwitchCasesv0.51.9Compare Source
typeSugarrule unwrapping Optionalsome/anywithout inserting required parentheses#ifdefblock after a closing bracev0.51.8Compare Source
redundantSelfremoving non-unwrapped weakselfinside closuresfileprivaterule makinginitprivate when inherited by subclass in the same filehoistPatternLetrule insertingletinside dictionary type literalunusedArgumentsincorrectly removing used argument after conditional compilation blockunusedArgumentsrule error handlingpointfreeco/swift-snapshot-testing (pointfreeco/swift-snapshot-testing)
v1.18.7Compare Source
What's Changed
New Contributors
Full Changelog: pointfreeco/swift-snapshot-testing@1.18.6...1.18.7
v1.18.6Compare Source
What's Changed
assertInlineSnapshotfrom a non-main queue running on the main thread (#1012).Full Changelog: pointfreeco/swift-snapshot-testing@1.18.5...1.18.6
v1.18.5Compare Source
What's Changed
New Contributors
Full Changelog: pointfreeco/swift-snapshot-testing@1.18.4...1.18.5
v1.18.4Compare Source
What's Changed
New Contributors
Full Changelog: pointfreeco/swift-snapshot-testing@1.18.3...1.18.4
v1.18.3Compare Source
What's Changed
Full Changelog: pointfreeco/swift-snapshot-testing@1.18.2...1.18.3
v1.18.2Compare Source
What's Changed
New Contributors
Full Changelog: pointfreeco/swift-snapshot-testing@1.18.1...1.18.2
v1.18.1Compare Source
What's Changed
New Contributors
Full Changelog: pointfreeco/swift-snapshot-testing@1.18.0...1.18.1
v1.18.0Compare Source
What's Changed
.customDumpstrategy (vended by a newSnapshotTestingCustomDumpmodule) (#948). The existing.dumpstrategy has been soft-deprecated.assertInlineSnapshot'srecordparameter now supports the all record modes (#947).@MainActor-annotated tests (thanks @peterkovacs, #946).New Contributors
Full Changelog: pointfreeco/swift-snapshot-testing@1.17.7...1.18.0
v1.17.7Compare Source
What's Changed
New Contributors
Full Changelog: pointfreeco/swift-snapshot-testing@1.17.6...1.17.7
v1.17.6Compare Source
What's Changed
Full Changelog: pointfreeco/swift-snapshot-testing@1.17.5...1.17.6
v1.17.5Compare Source
What's Changed
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.