Skip to content

Releases: lucas34/SwiftQueue

1.6.1

17 Apr 01:55
cc74a23
Compare
Choose a tag to compare

Improvement

  • Fix compatibility with Swift 3.2 (#100)
  • Fix warning for Swift 4.1 (#102)

1.6.0

21 Mar 10:35
58c19c2
Compare
Choose a tag to compare

Breaking Changes

  • Change JobCreator.create signature (#94)
    • Return type is no longer optional
    • SwiftQueueManager only accept 1 single JobCreator
    • This is to avoid unregistered handler or scheduling job with no JobCreator associates
    • The user will have to deal with unknown handler on his side
  • Origin error is now forward to completion block (#88)
  • Change signature of Limit(Int) to Limit(Double)

Fix

  • Delay not waiting for the remaining time (#99)
  • Deadline now cancel the job properly (#98)
  • Fix calling done after termination will remove the lastError (#97)
  • Breaking support for Swift 3.2 (#75)

Improvement

  • Avoid crash when scheduling a terminated job (#92)
  • Performance issue when overriding a job (#73)

Misc

  • Update documentation

1.5.0

01 Feb 03:21
f00b92b
Compare
Choose a tag to compare

Breaking Changes

  • Change Error type to follow enum pattern (#68)
    • TaskAlreadyExist -> SwiftQueueError.Duplicate
    • DeadlineError -> SwiftQueueError.Deadline
    • Canceled -> SwiftQueueError.Canceled

Improvement

  • Performance improvement in for-loops

Internal changes

  • SwiftQueue has been renamed SqOperationQueue
  • SwiftQueueJob -> SqOperation
  • JobBuilder has moved to its own class
  • SwiftQueue.swift reference all public protocols

Misc

  • Support BUCK build

Other changes

  • Remove unavailable methods (#71)
    • func retry(Int)
    • func periodic(Int, TimeInterval)

1.4.1

22 Jan 08:02
8a7d29a
Compare
Choose a tag to compare

Bug fix

  • Fix an issue where a periodic job will not be re-scheduled (#63)
  • Validate dictionary args only if persistence is required (#61)

Other changes

  • Make unavailable methods crash if called (#64)
  • Raise warning if something went wrong during the deserialisation (#58)

1.4.0

12 Jan 14:59
fd9a0cb
Compare
Choose a tag to compare

Develop 1.4.0 (#55)

Breaking changes

  • Validate argument to avoid empty strings
  • Validate JSON argument

Create Limit enum

  • JobBuilder.retry(Limit)
  • JobBuilder.periodic(Limit, TimeInterval)

1.3.2

09 Jan 10:16
457e751
Compare
Choose a tag to compare

New features

  • Allow overriding previous job for SingleInstance constraint (#38)
  • Add cancel with uuid (#42)

Bug fix and improvements

  • Fix Swiftlint warnings (#36)
  • Fix readme documentation (#40)

Misc

Setup danger (#31)
Support travis cache builds (#39)

1.3.1

22 Dec 05:45
081e4f0
Compare
Choose a tag to compare
  • Fix crash in exponential retry.
  • Fix exponential retry not reset after a success run

1.3.0

15 Dec 02:59
e61ae5c
Compare
Choose a tag to compare

Develop 1.3.0 (#22)

Re-write 90% of the code.

Breaking changes

  • Scheduling a job without a creator will throw an error (Assertion)
  • #20 Replace Any params type to [String: Any]
  • #26 Callback result now use enum to avoid passing nil error as success
  • #32 onRemove will foward JobCompletion
  • Remove delay(inSecond) use delay(time) instead

Bug fix and improvements

  • #24 Improve documentation and publish
  • #25 Constraints should be public
  • Add assertion to validate the [String: Any] when serialise

1.2.3

30 Nov 10:19
Compare
Choose a tag to compare

Job is now immediately canceled when the deadline is reached

1.2.2

23 Nov 07:03
Compare
Choose a tag to compare
  • Add support for Swift Package Manager.