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.
Issue Link
Fixes #82
Overview of Changes
.version("6")
rather than.v6
in the Package.swift, because Xcode 15 and earlier don't know about.v6
Scope
was marked asSendable
. There's no reason it can't be, and without being explicitly Sendable it complained about thestatic let
s.Store.Wrapper
is now explicitly@MainActor
. Key paths are not necessarily sendable, and it's only meant to be called in views (= on the main actor) anyways.Synchronizer
now explicitly inheritsSendable
. There's no way to correctly implement it with a non-sendable type anyways.ErrorCheckMode
conforms toBitwiseCopyable
. This wasn't strictly necessary, but non-public enums with no payloads do this implicitly, and we aren't going to add any payloads (as indicated by the comment inside the enum), so there's no reason not to add it.Anything you want to highlight?
N/A
Test Plan
The automated tests should pass in both Xcode 15 and 16, and Dependiject itself should compile without errors or warnings in both.