Skip to content

Version 0.8.0

Choose a tag to compare

@SDGGiesbrecht SDGGiesbrecht released this 10 Apr 02:05
· 519 commits to master since this release
7c89a28

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:
    try Shell.default.run(command: ...) { print($0.replacingOccurrences(of: ..., with: ...)) }
  • 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.
  • Low quality localizations have been dropped.