Releases: bustoutsolutions/siesta
Releases · bustoutsolutions/siesta
Yet more SwiftPM love
SwiftPM needed a little extra love
Stay home. Wash your hands. Build a cool app.
Enhacements
- Siesta now supports Swift Package Manager. Thanks, @karlshea! (#301, #304)
- Note that because SwiftPM does not yet support dependency-provided resources, you will need to manually copy
ResourceStatusOverlay.xib
into your own project if you plan to useResourceStatusOverlay
’s default UI.
- Note that because SwiftPM does not yet support dependency-provided resources, you will need to manually copy
- Long an unofficial DIY option, Siesta now officially supports tvOS. Thanks, @omidontop! (#28, #293)
- The new
Resource.withParams()
method lets you add many query parameters at once. (#294) - The Alamofire extension now supports Alamofire 5 (#303)
- The test suite no longer uses Nocilla. This is not a user-facing enhancement, but believe me, if you are a project maintainer, you’re very happy about this. 😎🥳 (#302)
Fixes
- Build issues with recent Xcode / Swift versions fixed
Breaking Changes
Spring cleaning
Fixed
- Fixed a typo in a conditionally compiled code that could cause build failure on Swift 4.2
cancelLoadIfUnobserved(afterDelay:)
now properly pays attention to its argument. Thanks, @acecilia! (#279)
Enhacements
- Internal cleanup and testing improvements
- Added SwiftLint to test build
Breaking Changes
- Siesta now requires Swift 4.2
Swift 4.2 support
Fixes
- Siesta now compiles with Swift 4.2 / Xcode 10. It still compiles with Swift 4.1 as well. Thanks to all who flagged this. (#274, #277)
Important note: An issue in CocoaPods may prevent Siesta (and other pods) from building correctly in XCode 10 for some configurations. If your pod build fails with EXPANDED_CODE_SIGN_IDENTITY: unbound variable
, install the CocoaPods 1.6 beta using gem install cocoapods --pre
. More info here.
Memory leak plugged
Custom requests de-headached
Enhancements
- The new
RequestDelegate
API makes it much simpler to create customRequest
s. This is useful for add third-party auth libraries and adding non-network behavior (e.g. a pause) to request chains. (#254, #152) - The newly tidied logging API adds conveniences for predefined Siesta category sets, and cleans up the global namespace. (#256)
Fixes
- All warnings fixed for Swift 4.1 / Xcode 9.4. Thanks, @joaomvfsantos and @wildthink! (#244, #250, #242, #257)
- There is no longer a race condition between the persistent cache and initial calls to
loadIfNeeded()
. (#237, #255) ResourceImageView
now returns a nil resource after the URL is set to nil. (#249, #259)- Overrides for
Content-Type
in configuration ad request mutations now follow a well-defined order of precedence, and do not cause duplicate headers. Thanks, @massdonati! (#246, #247)
Breaking Changes
None.
Xcode 9.1 deprecation fixes
Swift 3.2 update
Fixes Swift 3.2 error & deprecations for users still using Swift 3. Thanks to @reversepanda for helping with this one!
Swift 4 support
Enhancements
- Swift 4 support is here! If you want to stick with Swift 3 for now, use version
1.2.x
or theswift-3
branch. - Swift 4’s
Codable
is the new, better way to handle JSON — and Siesta supports it nicely. See it in action in the example project. - To better support
Codable
, Siesta now provides a convenient way to disable its default JSON → Dictionary parsing while still preserving the built-in text and image parsing. (It was an all-or-nothing proposition before.) See #214 for details. - For those not jumping to
Codable
just yet, the SwiftyJSON support that used to be in the example project now lives inExtensions/
. - The example app now includes live in-app commentary on what Siesta is doing and why it’s interesting, making
pod try
a much more edifying experience.
Breaking Changes
None.