Skip to content

Version 0.9.0

Choose a tag to compare

@SDGGiesbrecht SDGGiesbrecht released this 22 Apr 01:47
· 501 commits to master since this release
876df6c

Breaking Changes

  • Fixed spelling of the SDGCornerstoneTestUtilities product.
  • UserFacingText<L> has been made generic. UserFacing<StrictString, L> is equivalent to the old, but other elements can now be used in place of StrictString, such as images or mark‐up .
  • Collection search operations have been extracted to their own protocols, SearchableCollection and BidirectionalSearchableCollection.
    • Ordered collections conform to these wherever their elements are Equatable: Array, Data, String, etc.
    • Unordered collections do not conform and no longer have misleading access to search methods: Set, Dictionary, BijectiveMapping, etc.
  • Operators may require additional import statements to use. (A compiler bug prevents modules from exporting operators from another module. Originally, SDGCornerstone modules redeclared them as a workaround. Unfortunately this led to definition conflicts. With the exception of the SDGCornerstone module—which is not expected to be imported alongside its particular components—, the duplicate declarations have been removed. Until the compiler bug is fixed, the module where the operator is originally declared must now be imported as well.)
  • LineIndex has been renamed to LineViewIndex.
  • RealArithmetic has additional conformance requirements.
  • Minor API nuances have changed due to the application of new Swift 4.1 features:
    • Conditional conformances replace operator overloads (such as ≠ with arrays).
    • Some new protocol constraints were added which the compiler could not previously handle.

New Features

  • Resolution of SemanticMarkup to other formats:
    • Rich text as NSAttributedString: richText(font:)
    • HTML: html()
  • N‐ary mathematical operations for use with any Sequence type.
  • Better support for logging, reflection and playground display.

Bug Fixes

  • SDGXCTestUtilities is now properly vended as a product.