Skip to content

Releases: orchetect/OTCore

1.1.9

26 Jul 23:59
Compare
Choose a tag to compare
  • Removed OTCoreTesting / OTCoreTestingXCTest modules (but kept XCTWait in OTCore).
  • Updated README
  • Formatting/cleanup

1.1.8

28 Apr 22:39
Compare
Choose a tag to compare
  • Added ArraySlice .array property

1.1.7

27 Apr 04:16
Compare
Choose a tag to compare
  • Resolved potential os_log memory leaks in Log

1.1.6

27 Feb 07:03
Compare
Choose a tag to compare
  • Added CGPoint.angle(to: CGPoint)
  • Added CGPoint.cardinalAngle(to: CGPoint)
  • Added CGPoint.distance(to: CGPoint)
  • Added CGPoint .xInverted, .yInverted, .xyInverted
  • Added BinaryFloatingPoint .degreesToRadians / .radiansToDegrees
  • Added FloatingPoint.wrapped(around:)
  • Added missing CGFloat and BinaryFloatingPoint conversion methods
  • Made String.regex* methods more flexible
    • CODE-BREAKING NOTE: regexMatches(captureGroupsFromPattern:::) now returns capture 0 instead of omitting it.

1.1.5

08 Feb 02:51
Compare
Choose a tag to compare
  • Renamed .transform{} -> T to .transformed{} -> T
  • Added .transform{} -> Self mutating func
  • Added unit tests for above

1.1.4

02 Feb 22:50
Compare
Choose a tag to compare
  • Fixed rare crashes when Data had improper memory alignment in the following Data extension methods:
    • .toInt16(from:)
    • .toUInt16(from:)
    • .toInt32(from:)
    • .toUInt32(from:)
    • .toInt64(from:)
    • .toUInt64(from:)
    • .toFloat32(from:)
    • .toDouble(from:)
  • Aggressive memory alignment unit test has been added to prevent possible regression in future

1.1.3

25 Jan 22:29
Compare
Choose a tag to compare
  • Added URL.trashOrDelete() and unit test

1.1.2

24 Jan 11:13
Compare
Choose a tag to compare

Added OTCore-Testing and OTCore-Testing-XCTest modules:

  • assert, assertionFailure, precondition, preconditionFailure, and fatalError capturing for XCTest test cases
  • XCTWait(sec:) method for synchronous wait in XCTest test cases, non- runloop blocking

1.1.1

21 Jan 08:46
Compare
Choose a tag to compare
  • Added: Comparable .isContained(in:)
  • Added: Comparable .ifContained(in:then:), .ifNotContained(in:then:)
  • Added: BinaryInteger .intExactly thru .uint64Exactly, .doubleExactly, .floatExactly
  • Added: Bool .ifTrue(T, else:T)→T, .ifTrue(T)→T?, ifFalse(T)→T?
  • Added: Equatable .transform { }, .if(:then:), .if(:then:else:)
  • Log: made properties static
  • Log: Added OSLogType.x.log(...) convenience method
  • Minor bugfixes, typo fixes, inline documentation tweaks

1.1.0

18 Jan 04:13
Compare
Choose a tag to compare

Major library refactor and overhaul:

  • Reduced imports and broadened protocol adoptions so methods are now usable on more types
  • Performance improvements
  • Bug fixes
  • Cleaned up formatting
  • Cleaned up unit tests
  • Proper README.md added