Skip to content

Latest commit

 

History

History
443 lines (306 loc) · 12.1 KB

CHANGELOG.md

File metadata and controls

443 lines (306 loc) · 12.1 KB

Change Log

Improvement

  • Allow instantiation and override of DefaultConstraintMaker to deserialize constraints (#414) (#416)

Chore

  • Update Swift to 5.7.0 (#419)
  • Update Xcode Version in Github Actions (#420)
  • Update Actions dependencies (#421)
  • Update Bundle (#418)
  • Lint correct (#417)

Breaking Changes

Replace Reachability framework with NWPathMonitor (#406)

Minimum version required has been updated

platforms: [
    .macOS(.v10_14),
    .iOS(.v12),
    .macCatalyst(.v13),
    .tvOS(.v12),
    .watchOS(.v5),
]
  • Dependency over Reachability has been removed and replaced with NWPathMonitor
  • WatchOS can now use NetworkConstraint

Thanks, @GianniCarlo for the contribution 🎉

Core

  • Remove empty files (#408)
  • Update copyright (#410)
  • Add test for network listener (#411)

Bug fix

Allow user to specify enqueue DispatchQueue to fix multi-thread enqueue crash

SwiftQueueManagerBuilder(creator: creator)
        .set(enqueueDispatcher: .main)

Breaking Changes

  • 'JobListener' now has 'onJobScheduled' callback (#384)

New features

  • Add Lambda Job (#382)

For simple job, instead of creating your own implementation of 'Job', you can use LambdaJob {}

Chore

  • Update Swift (#397)

Bug Fix

  • Important Fix for deserialise tasks (#363) Thanks @arthurdapaz for the contribution

Bug Fix

  • Important Fix for deserialise tasks (#363)

Chore

  • Update to Swift 5.3 (#352)
  • Bump (#364) (#365)
  • Fix copyright (#359)

Warning: This version is incompatible with 4.X

If you are using serialised task. After updating, the library will not be able to deserialised the task saved with version 4.X

New features

You can now add your own constraint dynamically

  • Dynamic constraint feature (#310)
  • Add custom constraint (#343)

Breaking Changes

  • Rename NoSerialiser to NoPersister (#341)

Chore

  • Bump Reachability (#354)

Internal changes

  • Cleanup (#342) (#347) (#353) (#356) (#357)
  • Dynamic constraint feature (#310)

Breaking Changes

  • JobBuilder method requireCharging(value: Bool) was renamed .requireCharging() (#311)
  • JobBuilder method .persist(required: true) was renamed .persist() (#312)
  • JobBuilder method .internet(atLeast: .any) is forbidden. It's already default behaviour (#329)
  • Internet constraint cannot be used if Operation is running in main thread (#329)
  • Logger jobId parameter function can be nil (#318)
  • Remove V1 serialiser (#320)
  • Remove JobCount() method that is relying on a deprecated method (#337) (#336)

New features

  • Add JobBuilder.copy() (#304)

Chore

  • Update to Swift 5.2 (#306)

Internal changes

  • Cleanup (#302) (#313) (#319) (#321) (#322) (#327) (#330)
  • Constrains refactoring (#326) (#328) (#331) (#332) (#333) (#335)

Build

  • Auto archive carthage build artifacts (#303) (#308)
  • Update dependencies (#301) (#307)

New features

Make backgroundTask available for MacOS 10.15 (#299)

Chore

Update to Swift 5.1 (#280)

Internal changes

Refactor constraints (#282) Refactor encoding (#283)

Chore

Update Reachability to 5.0.0 (#273)

New features

Add Method to query all jobs (#277) Add method to remove all task (#275)

Fix

Fix Perf: Can only have 1 unique uuid per Queue

Internal changes

Remove timeout from tests (#274) Update Copyright (#270) Remove unused (#272)

Bug Fix

  • Make all params in JobBuilder public (#266)

Breaking Changes

  • Remove Deprecated methods (#263)

Chore

Update dependencies (#262)

Breaking Changes

  • Increased minimal support to 4.1 and XCode 11 (#248) (#246)

New features

  • Experimental support of BackgroundTask API (iOS/tvOS 13+) (#252) (#251) (#254) (#257)

Enhancement

  • Stop init variable at runtime (#258)
  • Avoid object creation (#250)
  • Cleanup (#247)

New features

  • Job execution timeout constraint (#50)
  • Exponential backoff with max delay (#226)
  • Better threading configuration for Queue and Manager (#228) (#229) (230)
  • Jobs can be enqueue from manager with .enqueue(JobInfo) (#231)

New features

  • Job status listener (#217)
  • Allow a queue to run multiple jobs in parallel (#215)

Breaking changes

  • Rename synchronous to initInBackground (#213)
  • Rename group() to parallel() (#212)

Enhancement

  • Better control on running for duplicate job constraint (#219)
  • Add no logger by default (#211)

Chore

  • Swift 5 support. Source was already compatible 🙌 (#206)
  • Drop Linux support (#206)

Linux Support 🙌

  • SwiftQueue is now available on Linux (#189)

Chore

  • Bump Reachability to 4.3.0 (#190)

Bug Fix

  • Revise charging constraint implementation (#177)

Chore

  • Swift 4.2 and Xcode 10 support (#181) (#182) (#187)
  • Bump Reachability to 4.2.1 for carthage (#174)
  • Bump Reachability and change origin for SPM (#175)
  • Bump Rechability for pod #172

New features

  • Expose count inside SwiftQueueManager (#160)

Improvement

  • Change SPM dependency for reachability to original #167

Chore

  • Update copyrights (#162)
  • Bump DEPS (#161) (#163) (#165) (#168)

Breaking Changes

  • Remove deprecated methods (#156)

Fix

  • Prevent missing CFBundleVersion (#153)

Breaking Changes

  • SwiftQueueManager need to be built with SwiftQueueManagerBuilder (#126)
  • Custom serializer and switch to codable by default (#115)
  • Minimum version required is Swift 3.2
  • Add a persister by default to avoid having persist(required: true) but no persister (#119)

Improvement

  • Expose isSuspended from SwiftQueueManager (#145)
  • Revise JobInfo and make it conform to Codable protocol (#117) (#120)

New features

  • Charging constraint (#123)
  • Deserialize tasks in background (#112)
  • Add internal logger (#105)

Cleanup JobInfo structure

Fix

  • Fix constraint does not properly cancel the job and execution flow should stop (#113)
  • Execution flow does not stop immediately after a constraint not satisfied (#113)
  • Parsing error not forwarded and not reported with the logger (#121)
  • Parsing error not reported and prevent the job to be serialized (#122)

MISC

  • Update for Swift 3.3 and 4.1 (#110) (#111) (#107)
  • Add proper implementation of support compactMap (#116)

Improvement

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

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

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)

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 deserialization (#58)

Develop 1.4.0 (#52)

Breaking changes

  • Validate argument to avoid empty strings
  • Validate JSON argument

Create Limit enum

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

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)
  • Fix crash in exponential retry
  • Fix exponential retry not reset after a success run

Develop 1.3.0 Re-write 90% of the code (#22)

Breaking changes

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

Bug fix and improvements

  • Improve documentation and publish (#24)
  • Constraints should be public (#25)
  • Add assertion to validate the [String: Any] when serialize
  • Job is now immediately canceled when the deadline is reached
  • Add support for Swift Package Manager
  • Fix job retained longer after cancellation

Bug Fix

  • Job constraint error should not call onRetry
  • if Reachability throw error when starting the notifier, call onRemove
  • UniqueUUID constraint will also be checked for same name in non SwiftQueueJob
  • Fix retention issue

Project structure Changes

  • Each constraints will be defined in it's own file
  • Each job will own an instance of all the constrains

Breaking changes

  • Remove throw in Run method to avoid confusion with onError callback
  • User will need to keep a strong reference to SwiftQueueManager

Carthage

Support all targets when using carthage

New

  • Delay by TimeInterval

Improvement

  • Reschedule and run immediately when delay is set to 0

Bug fix

  • Job not delayed properly
  • Crash when delaying the job with a high value

Breaking changes

  • Add delay to retry()
  • Pause and restart will match behaviour of OperationQueue to avoid job running 2 times
  • First stable release