You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
The key has expired.
Breaking Changes
Swift 4.1
initialize(...) has been removed. Set ProcessInfo.applicationIdentifier instead. (The other arguments are no longer needed and have been removed.)
UserFacingText has been split into UserFacingText (with no arguments) and UserFacingDynamicText (with arguments).
Preferences has been renamed PreferenceSet and no longer supports subclassing. Individual preferences have been changed from Shared<PropertyListValue?> to Shared<Preference>, a new type which supports any Codable value.
PropertyListValue and PropertyList, which are no longer necessary for preferences, have been removed.
OperationQueue extensions have been removed. Use Dispatch’s equivalents instead:
foreground → DispatchQueue.main
background → DispatchQueue.global(qos: ...)
start → async
finish → sync
Shell has been refactored and no longer prints automatically. Live printing and redaction can still be easily achieved:
String index conversions incapable of failure no longer have optional return values.
ConditionalPattern(condition:) has been shortened to ConditionalPattern(_:)
Randomization and text conversion has been extracted from numeric protocols into RandomizableNumber and TextConvertibleNumber.
Supplied Codable conformances (CodableVia...) have been simplified; the distinct EncodableVia... and DecodableVia... halves have been removed.
SDGCornerstone has been split into several modules. While import SDGCornerstone will still work as before, code that references modules as namespaces will need to be updated: SDGCornerstone.StrictString → SDGText.StrictString, etc.
New Features
Generic difference analysis (similar to git diff) between collections: a.difference(from: b).
SDGCornerstoneTestUtilities and SDGXCTestUtilities are new modules. They provide tools to help test code which uses SDGCornerstone.
Type resolution has been improved when passing literals to pattern matching methods, reducing the number of situations where types must be specified explicitly.
Bug Fixes
Many functions and methods can now be inlined across module boundaries, allowing the compiler to optimize better, especially by specializing generics in client modules. Performance has thereby been improved as much as tenfold in some parts of the API.