Factory 3.0.0 in develop branch #315
hmlongco
announced in
Announcements
Replies: 1 comment
-
|
FWIW I suspect that macros will NOT be part of the release. Swift has issues with defining actor context in a macro, which means that you'd be unable to create definitions of objects that require @mainactor or other actors. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
A Factory 3.0.0 pre-release is now in the develop branch. It's been checked on Xcode 26 and Swift 6.2.
Note that there are breaking changes between 3.0.0 and 2.5.0.
Mostly they're for the better.
FactoryKit
As mentioned in 2.5.0, the Factory library has been removed. Projects must import FactoryKit.
Other Changes
Macros
I'm still testing possible addition of Swift macros, but at this point in time I'm starting to believe too many limitations may exist in Swift 6.2's implementation. Don't count on them.
MainActor
Other than the FactoryKit change, the other breaking change could be in factories that defined services or other types that relied on @mainactor.
Solution? Simply add
@MainActorto the definition.Prior versions of Factory required the following, rather ugly definition.
Sorry about that.
Beta Was this translation helpful? Give feedback.
All reactions