Skip to content

Releases: DenTelezhkin/Swarm

0.3.0

19 Apr 14:53
Compare
Choose a tag to compare
Releasing version 0.3.0.

0.2.0

01 Feb 16:14
Compare
Choose a tag to compare

Breaking

  • Spider protocol no longer requires init(url:) initializer, url parameter is passed in request(url:completion:) method instead.
  • URLSessionSpider now has init() method without parameters.

Added

  • Linux support
  • ScrappableURL.userInfo property for storing values or objects related to this scrappable URL
  • Swarm.cooldown property, that allows to customize how cooldown is executed. For example, when using Swarm from Vapor app, which itself uses SwiftNIO for scheduling tasks, cooldown property can be setup in following way:
swarm.cooldown = { interval, closure in
    eventLoop.scheduleTask(in: TimeAmount.seconds(Int64(interval)), closure)
}

Changed

  • Absence of response and data is now treated as failure for network request ( request timeout ), and request is retried configuration.delayedRequestRetries times after configuration.delayedRetryDelay

Fixed

  • Action log for previous requests is now properly stored, thus allowing correct number of request retries.

0.1.0

13 Jan 13:29
Compare
Choose a tag to compare
Releasing version 0.1.0.