Repository navigation
fix: address audit findings (router guards, platforms, example, CI, docs) - #20
Merged
Merged
Conversation
…rs on macOS - push/replacePath/present return Bool and log rejections via os.Logger - maxDepth clamped on every assignment (negative value crashed replacePath) - initialPath truncated to maxDepth; sheet and cover mutually exclusive - macOS shows covers as sheets instead of silently ignoring them - send returns its Task so callers can await ordering - declare tvOS 17 / watchOS 10 / visionOS 1; drop redundant StrictConcurrency flag - remove @unchecked Sendable and public Collection/Array helpers (breaking) - container reuses navigationRouter modifier; fix flaky send test, add guard tests
…st before release
…example, add CHANGELOG
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Fixes the findings from the 2026-11-02 audit (logic, specs, platform support, integration).
Library
push,replacePath,present(sheet:),present(cover:)returnBool(@discardableResult) and log rejections throughos.Logger, instead of failing silently.maxDepthis clamped to>= 1on every assignment. Assigning a negative value previously crashedreplacePath(prefix(-1)).initialPathis truncated tomaxDepth.dismiss()cleared an invisible cover before popping).send(_:)returns itsTaskso callers can await ordering.Package.swiftdeclares tvOS 17 / watchOS 10 / visionOS 1 (README already advertised them); redundantStrictConcurrencyflag removed.@unchecked Sendableand the publicCollection.subscript(safe:)/Array.removeLastSafe()helpers.BaseNavigationContainerreuses thenavigationRoutermodifier (removes duplicated#ifbranches).Example app: removed ~380 lines of unused v1 views that would trap if built (no environment injection), moved to Swift 6 mode, fixed the actor-isolation warning in
AsyncLabView.CI:
macos-26with latest stable Xcode, pinned SwiftLint 0.65.1, iOS job fails when no simulator exists instead of passing on build-only, new tvOS/watchOS/visionOS and example-app build jobs. Release workflow accepts tags with or withoutvand runs tests first.Docs: fixed the deep-link parsing example (
myapp://detail/42returned[]), modifier/toolbar placement, v1urlHandlerretain cycle, undefined example types, migration guide; addedCHANGELOG.md.Motivation & Context
Library is used as a base across several apps; silent rejections, a reachable crash, and platforms promised but not declared made integration unreliable.
Types of changes
Breaking: public
subscript(safe:)/removeLastSafe()removed. Because the mutating methods now returnBool, generic single-expression closures likeMainActor.run { router.push(x) }warn about an unused result (callawait router.push(x)instead). Both are listed inCHANGELOG.md.Checklist:
swift test).Verification
swift test: 24 tests, 0 failures (macOS).xcodebuild teston iPhone simulator: pass.swiftc(platform runtimes not installed locally — new CI jobs cover real builds).swiftlint --strict: clean. Example app builds in Swift 6 mode with 0 warnings.Not verified
macos-26runner availability and preinstalled tvOS/watchOS/visionOS platforms are assumptions).