Skip to content

Commit bf1c279

Browse files
authored
Add Swift Algorithms as an explicit dependency (#217)
Explicitly depend on Swift-algorithms, rather indirectly through Vapor Some users were running into issues compiling leaf against an older version of Vapor (pre 4.61.0)
1 parent 04f262e commit bf1c279

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Package.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ let package = Package(
1212
],
1313
dependencies: [
1414
.package(url: "https://github.com/vapor/leaf-kit.git", from: "1.3.1"),
15+
1516
.package(url: "https://github.com/vapor/vapor.git", from: "4.0.0"),
17+
18+
// Swift collection algorithms
19+
.package(url: "https://github.com/apple/swift-algorithms.git", from: "1.0.0"),
1620
],
1721
targets: [
1822
.target(name: "Leaf", dependencies: [

Sources/Leaf/LeafEncoder.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import LeafKit
2+
import Algorithms
23

34
internal struct LeafEncoder {
45
/// Use `Codable` to convert an (almost) arbitrary encodable type to a dictionary of key/``LeafData`` pairs

0 commit comments

Comments
 (0)