Skip to content

Version 0.12.0

Choose a tag to compare

@SDGGiesbrecht SDGGiesbrecht released this 14 Oct 09:51
· 456 commits to master since this release
588c61f

Breaking Changes

  • As part of adoption of CaseIterable:
    • IterableEnumeration has been dropped. Use CaseIterable instead.
    • The related requirements of some protocols have changed. See the respective documentation.
      • OrderedEnumeration
      • InputLocalization
      • EnumerationCalendarComponent
    • All types which used to conform to IterableEnumeration have switched to CaseIterable.
  • As part of adoption of Swift’s own new randomization API:
    • The Randomizer protocol has been removed. Use RandomNumberGenerator instead.
      • PseudorandomNumberGenerator and CyclicalNumberGenerator now conform to RandomNumberGenerator and are structures instead of classes.
        • PseudorandomNumberGenerator no longer has a defaultGenerator. Use SystemRandomNumberGenerator() instead.
      • Randomization of the following types and protocols has been removed. Use the Standard Library’s API instead.
        • Bool (but falseRandomizerValue and trueRandomizerValue remain)
        • IntFamily
        • UInt
        • FloatFamily
        • Collection
      • Randomization of the following types has been altered to follow the pattern of the Standard Library’s API.
        • RangeReplaceableCollection
        • Measurement
    • Randomization has been sunk lower in the protocol hierarchy.
      • Randomization is a new conformance requirement of some protocols:
        • WholeArithmetic
      • RandomizableNumber and testRandomizableNumberConformance have been removed.
    • testRandomizerConformance has been replaced with testRandomNumberGeneratorConformance.
  • ¬= has been removed. Use toggle().
  • Postfix −= has been removed. Use negate().
  • Several obscure parts of the FloatFamily API that were no longer needed have been removed (ln2, init(_: Exponent).