Skip to content

Commit 79533e0

Browse files
authored
Bump version to 1.0.0 (#67)
1 parent afbf677 commit 79533e0

File tree

16 files changed

+86
-107
lines changed

16 files changed

+86
-107
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,23 @@ jobs:
2323
ruby-version: '3.3.5'
2424
bundler-cache: true
2525
- name: Select Xcode Version
26-
run: sudo xcode-select --switch /Applications/Xcode_16.4.app/Contents/Developer
26+
run: sudo xcode-select --switch /Applications/Xcode_26.1.1.app/Contents/Developer
2727
- name: Download visionOS
2828
run: |
2929
sudo xcodebuild -runFirstLaunch
3030
sudo xcrun simctl list
3131
sudo xcodebuild -downloadPlatform visionOS
3232
sudo xcodebuild -runFirstLaunch
3333
- name: Lint Podspec
34-
run: bundle exec pod lib lint --verbose --fail-fast --swift-version=6.0
34+
run: bundle exec pod lib lint --verbose --fail-fast --swift-version=6.2
3535
spm-16:
36-
name: Build Xcode 16
36+
name: Build Xcode 26
3737
runs-on: macos-15
3838
strategy:
3939
matrix:
4040
platforms: [
4141
'iOS_18,watchOS_11',
42-
'macOS_15,tvOS_18',
42+
'macOS_26,tvOS_18',
4343
'visionOS_2'
4444
]
4545
fail-fast: false
@@ -53,7 +53,7 @@ jobs:
5353
ruby-version: '3.3.5'
5454
bundler-cache: true
5555
- name: Select Xcode Version
56-
run: sudo xcode-select --switch /Applications/Xcode_16.4.app/Contents/Developer
56+
run: sudo xcode-select --switch /Applications/Xcode_26.1.1.app/Contents/Developer
5757
- name: Download visionOS
5858
if: matrix.platforms == 'visionOS_2'
5959
run: |
@@ -72,7 +72,7 @@ jobs:
7272
fail_ci_if_error: true
7373
verbose: true
7474
spm-16-swift:
75-
name: Swift Build Xcode 16
75+
name: Swift Build Xcode 26
7676
runs-on: macos-15
7777
permissions:
7878
contents: read
@@ -84,37 +84,13 @@ jobs:
8484
ruby-version: '3.3.5'
8585
bundler-cache: true
8686
- name: Select Xcode Version
87-
run: sudo xcode-select --switch /Applications/Xcode_16.app/Contents/Developer
87+
run: sudo xcode-select --switch /Applications/Xcode_26.1.1.app/Contents/Developer
8888
- name: Build and Test Framework
8989
run: xcrun swift test -c release -Xswiftc -enable-testing
90-
linux-6-0:
91-
name: "Build and Test on Linux Swift 6.0"
90+
linux-6-2:
91+
name: "Build and Test on Linux Swift 6.2"
9292
runs-on: ubuntu-24.04
93-
container: swift:6.0
94-
permissions:
95-
contents: read
96-
steps:
97-
- name: Checkout Repo
98-
uses: actions/checkout@v5
99-
- name: Build and Test Framework
100-
run: swift test -c release --enable-code-coverage -Xswiftc -enable-testing
101-
- name: Prepare Coverage Reports
102-
run: |
103-
llvm-cov export -format="lcov" .build/x86_64-unknown-linux-gnu/release/swift-async-queuePackageTests.xctest -instr-profile .build/x86_64-unknown-linux-gnu/release/codecov/default.profdata > coverage.lcov
104-
- name: Install curl for Codecov
105-
run: |
106-
apt-get update
107-
apt-get install -y --no-install-recommends curl ca-certificates
108-
- name: Upload Coverage Reports
109-
if: success()
110-
uses: codecov/codecov-action@v5
111-
with:
112-
fail_ci_if_error: true
113-
verbose: true
114-
linux-6-1:
115-
name: "Build and Test on Linux Swift 6.1"
116-
runs-on: ubuntu-24.04
117-
container: swift:6.1
93+
container: swift:6.2
11894
permissions:
11995
contents: read
12096
steps:
@@ -148,7 +124,7 @@ jobs:
148124
lint-swift:
149125
name: Lint Swift
150126
runs-on: ubuntu-latest
151-
container: swift:6.0
127+
container: swift:6.2
152128
permissions:
153129
contents: read
154130
steps:

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- name: Checkout repository
4141
uses: actions/checkout@v5
4242
- name: Select Xcode Version
43-
run: sudo xcode-select --switch /Applications/Xcode_16.4.app/Contents/Developer
43+
run: sudo xcode-select --switch /Applications/Xcode_26.1.1.app/Contents/Developer
4444

4545
# Initializes the CodeQL tools for scanning.
4646
- name: Initialize CodeQL

.swiftformat

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# format options
22
--indent tab
3+
--tab-width 4
4+
--smart-tabs disabled
35
--modifierorder nonisolated,open,public,internal,fileprivate,private,private(set),final,override,required,convenience
46
--ranges no-space
57
--extensionacl on-declarations
@@ -8,6 +10,7 @@
810
--storedvarattrs same-line
911
--hexgrouping none
1012
--decimalgrouping 3
13+
--trailing-commas always
1114

1215
# rules
1316
--enable isEmpty
@@ -17,4 +20,4 @@
1720
--disable blankLineAfterSwitchCase
1821

1922
# global
20-
--swiftversion 6.0
23+
--swiftversion 6.2

AsyncQueue.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
Pod::Spec.new do |s|
22
s.name = 'AsyncQueue'
3-
s.version = '0.7.2'
3+
s.version = '1.0.0'
44
s.license = 'MIT'
55
s.summary = 'A queue that enables ordered sending of events from synchronous to asynchronous code.'
66
s.homepage = 'https://github.com/dfed/swift-async-queue'
77
s.authors = 'Dan Federman'
88
s.source = { :git => 'https://github.com/dfed/swift-async-queue.git', :tag => s.version }
9-
s.swift_version = '6.0'
9+
s.swift_version = '6.2'
1010
s.source_files = 'Sources/**/*.{swift}'
1111
s.ios.deployment_target = '13.0'
1212
s.tvos.deployment_target = '13.0'

CLI/Package.resolved

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CLI/Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version: 6.0
1+
// swift-tools-version: 6.2
22
// The swift-tools-version declares the minimum version of Swift required to build this package.
33

44
import PackageDescription
@@ -12,5 +12,5 @@ let package = Package(
1212
dependencies: [
1313
.package(url: "https://github.com/nicklockwood/SwiftFormat", from: "0.56.1"),
1414
],
15-
targets: []
15+
targets: [],
1616
)

Package.swift

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version: 6.0
1+
// swift-tools-version: 6.2
22
// The swift-tools-version declares the minimum version of Swift required to build this package.
33

44
import PackageDescription
@@ -16,7 +16,7 @@ let package = Package(
1616
products: [
1717
.library(
1818
name: "AsyncQueue",
19-
targets: ["AsyncQueue"]
19+
targets: ["AsyncQueue"],
2020
),
2121
],
2222
targets: [
@@ -25,14 +25,16 @@ let package = Package(
2525
dependencies: [],
2626
swiftSettings: [
2727
.swiftLanguageMode(.v6),
28-
]
28+
.treatAllWarnings(as: .error),
29+
],
2930
),
3031
.testTarget(
3132
name: "AsyncQueueTests",
3233
dependencies: ["AsyncQueue"],
3334
swiftSettings: [
3435
.swiftLanguageMode(.v6),
35-
]
36+
.treatAllWarnings(as: .error),
37+
],
3638
),
37-
]
39+
],
3840
)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ To install swift-async-queue in your project with [Swift Package Manager](https:
241241

242242
```swift
243243
dependencies: [
244-
.package(url: "https://github.com/dfed/swift-async-queue", from: "0.7.0"),
244+
.package(url: "https://github.com/dfed/swift-async-queue", from: "1.0.0"),
245245
]
246246
```
247247

@@ -250,7 +250,7 @@ dependencies: [
250250
To install swift-async-queue in your project with [CocoaPods](https://blog.cocoapods.org/CocoaPods-Specs-Repo), add the following to your `Podfile`:
251251

252252
```
253-
pod 'AsyncQueue', '~> 0.7.0'
253+
pod 'AsyncQueue', '~> 1.0.0'
254254
```
255255

256256
## Contributing

Scripts/build.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ enum TaskError: Error {
2323
enum Platform: String, CaseIterable, CustomStringConvertible {
2424
case iOS_18
2525
case tvOS_18
26-
case macOS_15
26+
case macOS_26
2727
case macCatalyst_15
2828
case watchOS_11
2929
case visionOS_2
@@ -36,8 +36,8 @@ enum Platform: String, CaseIterable, CustomStringConvertible {
3636
case .tvOS_18:
3737
"platform=tvOS Simulator,OS=18.5,name=Apple TV"
3838

39-
case .macOS_15,
40-
.macCatalyst_15:
39+
case .macOS_26,
40+
.macCatalyst_15:
4141
"platform=OS X"
4242

4343
case .watchOS_11:
@@ -56,9 +56,9 @@ enum Platform: String, CaseIterable, CustomStringConvertible {
5656
case .tvOS_18:
5757
"appletvsimulator"
5858

59-
case .macOS_15,
60-
.macCatalyst_15:
61-
"macosx15.5"
59+
case .macOS_26,
60+
.macCatalyst_15:
61+
"macosx26.1"
6262

6363
case .watchOS_11:
6464
"watchsimulator"

Sources/AsyncQueue/ActorQueue.swift

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public final class ActorQueue<ActorType: Actor>: @unchecked Sendable {
102102
fileprivate struct ActorTask: Sendable {
103103
init(
104104
executionContext: ActorType,
105-
task: @escaping @Sendable (isolated ActorType) async -> Void
105+
task: @escaping @Sendable (isolated ActorType) async -> Void,
106106
) {
107107
self.executionContext = executionContext
108108
self.task = task
@@ -152,7 +152,7 @@ extension Task {
152152
public init<ActorType: Actor>(
153153
priority: TaskPriority? = nil,
154154
on actorQueue: ActorQueue<ActorType>,
155-
operation: @Sendable @escaping (isolated ActorType) async -> Success
155+
operation: @Sendable @escaping (isolated ActorType) async -> Success,
156156
) where Failure == Never {
157157
let delivery = Delivery<Success, Failure>()
158158
let semaphore = Semaphore()
@@ -163,7 +163,7 @@ extension Task {
163163
delivery.execute({ @Sendable executionContext in
164164
await delivery.sendValue(operation(executionContext))
165165
}, in: executionContext, priority: priority)
166-
}
166+
},
167167
)
168168
actorQueue.taskStreamContinuation.yield(task)
169169
self.init(priority: priority) {
@@ -172,7 +172,7 @@ extension Task {
172172
await semaphore.signal()
173173
return await delivery.getValue()
174174
},
175-
onCancel: delivery.cancel
175+
onCancel: delivery.cancel,
176176
)
177177
}
178178
}
@@ -207,7 +207,7 @@ extension Task {
207207
public init<ActorType: Actor>(
208208
priority: TaskPriority? = nil,
209209
on actorQueue: ActorQueue<ActorType>,
210-
operation: @escaping @Sendable (isolated ActorType) async throws -> Success
210+
operation: @escaping @Sendable (isolated ActorType) async throws -> Success,
211211
) where Failure == any Error {
212212
let delivery = Delivery<Success, Failure>()
213213
let semaphore = Semaphore()
@@ -222,7 +222,7 @@ extension Task {
222222
await delivery.sendFailure(error)
223223
}
224224
}, in: executionContext, priority: priority)
225-
}
225+
},
226226
)
227227
actorQueue.taskStreamContinuation.yield(task)
228228
self.init(priority: priority) {
@@ -231,7 +231,7 @@ extension Task {
231231
await semaphore.signal()
232232
return try await delivery.getValue()
233233
},
234-
onCancel: delivery.cancel
234+
onCancel: delivery.cancel,
235235
)
236236
}
237237
}
@@ -266,7 +266,7 @@ extension Task {
266266
public init(
267267
priority: TaskPriority? = nil,
268268
on actorQueue: ActorQueue<MainActor>,
269-
operation: @MainActor @escaping () async -> Success
269+
operation: @MainActor @escaping () async -> Success,
270270
) where Failure == Never {
271271
let delivery = Delivery<Success, Failure>()
272272
let semaphore = Semaphore()
@@ -277,7 +277,7 @@ extension Task {
277277
delivery.execute({ @Sendable executionContext in
278278
await delivery.sendValue(operation())
279279
}, in: executionContext, priority: priority)
280-
}
280+
},
281281
)
282282
actorQueue.taskStreamContinuation.yield(task)
283283
self.init(priority: priority) {
@@ -286,7 +286,7 @@ extension Task {
286286
await semaphore.signal()
287287
return await delivery.getValue()
288288
},
289-
onCancel: delivery.cancel
289+
onCancel: delivery.cancel,
290290
)
291291
}
292292
}
@@ -321,7 +321,7 @@ extension Task {
321321
public init(
322322
priority: TaskPriority? = nil,
323323
on actorQueue: ActorQueue<MainActor>,
324-
operation: @escaping @MainActor () async throws -> Success
324+
operation: @escaping @MainActor () async throws -> Success,
325325
) where Failure == any Error {
326326
let delivery = Delivery<Success, Failure>()
327327
let semaphore = Semaphore()
@@ -336,7 +336,7 @@ extension Task {
336336
await delivery.sendFailure(error)
337337
}
338338
}, in: executionContext, priority: priority)
339-
}
339+
},
340340
)
341341
actorQueue.taskStreamContinuation.yield(task)
342342
self.init(priority: priority) {
@@ -345,7 +345,7 @@ extension Task {
345345
await semaphore.signal()
346346
return try await delivery.getValue()
347347
},
348-
onCancel: delivery.cancel
348+
onCancel: delivery.cancel,
349349
)
350350
}
351351
}

0 commit comments

Comments
 (0)