Skip to content

2.0.0

Choose a tag to compare

@orchetect orchetect released this 05 Oct 10:25
· 113 commits to main since this release

Note

This release contains various minor API changes, as well as bug fixes and other refinements. As such, it has gained a major version number bump to version 2.

A summary of the main changes can be found below.

  • OSCKitCore
    • OSCObject protocol has been removed since the only two concrete types that can possibly conform are OSCBundle or OSCMessage.
      • The protocol has been replaced a new OSCPacket enum that contains two strongly-typed cases containing either an OSCBundle or OSCMessage.
    • OSCPacket and OSCBundle: Both have a new messages property that returns an array of OSCMessages contained within the packet or bundle.
    • OSCAddressSpace: Converted class into an actor
    • OSCAddressSpace: Added new unregister(methodID:) method
    • OSCEncodeError and OSCDecodeError: Now have more idiomatic error cases
    • Throwing methods that throw a strongly-typed error are now marked as such in the method signature
  • OSCKit
    • OSCUDPServer: init: Passing nil or 0 for port parameter will now cause a random available port number to be used
      • This also fixes a bug where the localPort property was not updated if a random port was assigned
    • OSCUDPClient: init: Passing nil or 0 for localPort parameter will now cause a random available port number to be used
    • OSCTCPServer: init: Passing nil or 0 for port parameter will now cause a random available port number to be used