Skip to content

Release 0.3.0

Compare
Choose a tag to compare
@eneko eneko released this 09 Aug 17:27
· 120 commits to main since this release

Breaking

  • Auth shared URLSessionClient defaults to background operation queue.
  • Update URLSessionClient to return HTTPURLResponse for easy retrieval of HTTP status codes.
  • Changes on XMLNode:
    • Rename value property to text.
    • Update XMLNode subscript method to return XMLNode?.
    • Add .firstLevel traversal for XMLNode to retrieve direct children only.
    • Remove xmlValue() in favor of description.
    • Conform to LosslessStringConvertible protocol.
    • Rename value() to getValue().
    • Rename get(named:) to getValue(named:).
  • Changes on XML:
    • Remove xmlValue() in favor of description.
    • Conform to LosslessStringConvertible protocol.
  • Remove XMLNodeIndex.

Enhancements

  • Shared URLSessionClient with default background operation queue.
  • Enhancements to XMLNode class:
    • value passed to init can be any CustomStringConvertible.
    • node(named:) retrieves the first descendant found with the given name and throws an exception if no matches found.
    • XMLNode can be created from Swift dictionaries of [String: CustomStringConvertible] (aka. XMLDictionary).
    • Add optional counterparts for getValue() and getValue(named:)

Bug Fixes

  • None