Skip to content

Version 10.0.0

Choose a tag to compare

@SDGGiesbrecht SDGGiesbrecht released this 23 Aug 22:19
· 44 commits to master since this release
3dfcc12

Breaking Changes

  • The Pattern protocol has been overhauled so that patterns can return custom match types capable of carrying additional information. The standard patterns now return details of their composition and not just the overall match.
    • As a consequence of the type system, differing SearchableCollection types can no longer be used as patterns in each other directly, and must now be wrapped in a LiteralPattern first. For the most part, this simply means adjusting call sites from x.matches(for: y) to x.matches(for: y.literal()).
  • Many types now conform to Sendable, in a few cases this restricts closures accepted by initializers to those that are @Sendable.
  • Collation tailoring now uses a result builder, allowing the compiler to catch some developer errors at compile time instead of at runtime. The changes are mostly source‐compatible, but a few call signatures have been altered slightly.

New Features

  • ExternalProcess can filter out standard error.
  • testFileConvertible can undo line ending changes caused by source control.

Bug Fixes

  • Requires Swift 5.6 (but older toolchains will not resolve to this version).
  • The DUCET used by the root collation has been updated.