Skip to content

Version 0.11.0

Choose a tag to compare

@SDGGiesbrecht SDGGiesbrecht released this 19 Sep 13:00
· 469 commits to master since this release
dddf927

Breaking Changes

  • Swift 4.2
  • Search range arguments have been removed from all search methods. Use these methods on subsequences instead:
    let match: PatternMatch<Collection>? = collection.firstMatch(for: pattern, in: range)
    ↓
    let match: PatternMatch<Collection.SubSequence>? = collection[range].firstMatch(for: pattern)
    
    // And if the subsequence is a different type and needs to be converted back:
    let converted: PatternMatch<Collection>? = match?.in(collection)

New Features

  • Range expressions are now supported throughout the API.
  • Pattern types and SearchableCollection literal patterns both conform to a new primitive PatternProtocol, removing the need for method overloads to support each individually.
  • Localization now provides a textDirection property.