-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Updates for Release 0.3.0
- Loading branch information
Showing
3 changed files
with
48 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,61 @@ | ||
## Master | ||
|
||
#### Breaking | ||
- Remove unnecessary casting to `NSError` on `SessionTaskCompletion`. | ||
- `XMLNode.children` is no longer optional, defaults to empty array. | ||
- None | ||
|
||
#### Enhancements | ||
- None | ||
|
||
#### Bug Fixes | ||
- None | ||
|
||
|
||
## 0.3.0 | ||
|
||
#### Breaking | ||
- Auth shared `URLSessionClient` defaults to background operation queue. | ||
- Rename `XMLNode.value` property to `text`. | ||
- 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`. | ||
- Update `XMLNode` subscript method to return `XMLNode?`. | ||
- Add `.firstLevel` traversal for `XMLNode` to retrieve direct children only. | ||
- Remove `xmlValue()` from `XMLNode` and `XML` classes, in favor of `description`. | ||
- Update `XMLNode` and `XML` to conform to `LosslessStringConvertible` protocol. | ||
|
||
#### Enhancements | ||
- Shared `URLSessionClient` with default background operation queue. | ||
- Enhancements to `XMLNode` class: | ||
- `init` has been improved to allow passing value, attributes and/or children (optional parameters). | ||
- `value` passed can be any `CustomStringConvertible`. | ||
- `nodes(named:)` method finds an retrieves a list of descendant nodes matching the given name. | ||
- `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. | ||
- `getValue()` method retrieves the value converted to a given type that can be constructed from a string by conforming to `LosslessStringConvertible`, or `nil` if the node contains no value. | ||
- `getValue(named:)` generic method returns the value of the first descendant node matching the given name, converted to any given type that can be constructed from a string by conforming to `LosslessStringConvertible`. | ||
- `XMLNode` can be created from Swift dictionaries of `[String: CustomStringConvertible]` (aka. `XMLDictionary`). | ||
- Add optional counterparts for `getValue()` and `getValue(named:)` | ||
|
||
#### Bug Fixes | ||
- None | ||
|
||
|
||
## 0.2.0 | ||
|
||
#### Breaking | ||
- Remove unnecessary casting to `NSError` on `SessionTaskCompletion`. | ||
- `XMLNode.children` is no longer optional, defaults to empty array. | ||
|
||
#### Enhancements | ||
Enhancements to `XMLNode` class: | ||
- `init` has been improved to allow passing value, attributes and/or children (optional parameters). | ||
- `nodes(named:)` method finds an retrieves a list of descendant nodes matching the given name. | ||
- `getValue()` generic method returns the node text value, if any, converted to any given type that can be constructed from a string by conforming to `LosslessStringConvertible`. | ||
- `get(_:)` generic method returns the value of the first descendant node matching the given name, converted to any given type that can be constructed from a string by conforming to `LosslessStringConvertible`. | ||
|
||
#### Bug Fixes | ||
- None | ||
|
||
|
||
## 0.1.0 | ||
- Initial Release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters