Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,15 @@ updates:
directory: "/"
schedule:
interval: "daily"
allow:
- dependency-type: all
groups:
dependencies:
patterns:
- "*"
- package-ecosystem: "swift"
directory: "/"
schedule:
interval: "daily"
groups:
dependencies:
patterns:
- "*"
10 changes: 4 additions & 6 deletions .github/workflows/api-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ permissions:

jobs:
build-and-deploy:
uses: vapor/api-docs/.github/workflows/build-and-deploy-docs-workflow.yml@main
secrets: inherit
with:
package_name: authentication
modules: Authentication
pathsToInvalidate: /authentication/*
uses: vapor/api-docs/.github/workflows/deploy.yml@main
secrets: inherit
with:
package: authentication
14 changes: 14 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,17 @@ jobs:
with_wasm: true
ios_scheme_name: authentication
secrets: inherit

submit-dependencies:
permissions:
contents: write
if: ${{ github.event_name == 'push' }}
uses: vapor/ci/.github/workflows/submit-deps.yml@main
secrets: inherit

foundation-linking:
uses: vapor/ci/.github/workflows/check-foundation-linking.yml@main
permissions:
contents: read
with:
swift_image: swift:6.3-noble
2 changes: 1 addition & 1 deletion .spi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ version: 1
metadata:
authors: "Maintained by the Vapor Core Team with hundreds of contributions from the Vapor Community."
external_links:
documentation: "https://api.vapor.codes/authentication/documentation/authentication/"
documentation: "https://api.vapor.codes/authentication"
3 changes: 1 addition & 2 deletions .swift-format
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"indentation": {
"spaces": 4
},
"indentConditionalCompilationBlocks": false,
"indentConditionalCompilationBlocks": true,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMVHO this adds a lot of unnecessary indentation, like in those test files

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree for the most part, we just need to decide what to standardise on for Vapor. This was copied over from routing-kit

"indentSwitchCaseLabels": false,
"lineBreakAroundMultilineExpressionChainComponents": false,
"lineBreakBeforeControlFlowKeywords": false,
Expand All @@ -14,7 +14,6 @@
"lineLength": 140,
"maximumBlankLines": 1,
"multiElementCollectionTrailingCommas": true,
"multilineTrailingCommaBehavior": "always",
"noAssignmentInExpressions": {
"allowedFunctions": [
"XCTAssertNoThrow"
Expand Down
12 changes: 7 additions & 5 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
// swift-tools-version:6.2.4
// swift-tools-version:6.3
import PackageDescription

let extraSettings: [SwiftSetting] = [
.enableExperimentalFeature("SuppressedAssociatedTypes"),
// .treatAllWarnings(as: .error),
.strictMemorySafety(),
.enableExperimentalFeature("LifetimeDependence"),
.enableExperimentalFeature("SuppressedAssociatedTypesWithDefaults"),
.enableExperimentalFeature("Lifetimes"),
.enableExperimentalFeature("SafeInteropWrappers"),
.enableUpcomingFeature("LifetimeDependence"),
.enableUpcomingFeature("NonisolatedNonsendingByDefault"),
.enableUpcomingFeature("InferIsolatedConformances"),
.enableUpcomingFeature("ExistentialAny"),
.enableUpcomingFeature("MemberImportVisibility"),
.enableUpcomingFeature("InternalImportsByDefault"),
// .treatAllWarnings(as: .error),
.strictMemorySafety(),
.enableExperimentalFeature("SafeInteropWrappers"),
.unsafeFlags(["-Xcc", "-fexperimental-bounds-safety-attributes"]),
.enableUpcomingFeature("ImmutableWeakCaptures"),
]

let package = Package(
Expand Down
4 changes: 2 additions & 2 deletions Sources/Authentication/Helpers/Data+Array.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#if canImport(FoundationEssentials)
import FoundationEssentials
import FoundationEssentials
#else
import Foundation
import Foundation
#endif

extension DataProtocol {
Expand Down
Loading
Loading