Nuke v8.0-beta.2 Release Notes

Release Date: 2019-06-01 // almost 5 years ago
  • โšก๏ธ There quite a few important changes in this update. Probably the most important one is the addition of Deprecated.swift file which eases the transition from Nuke 7 to Nuke 8 which are now almost completely source compatible.

    ๐Ÿš€ > Naturally, this beta includes everything from Nuke 8.0-beta.1.

    #250 Integrate os_signpost for profiling

    โ†” Integrate os_signpost logs for measuring performance. To enable the logs set ImagePipeline.Configuration.isSignpostLoggingEnabled (static property) to true before accessing the shared pipeline.

    ๐ŸŽ With these logs, you have visibility into the image pipeline. For more information see WWDC 2018: Measuring Performance Using Logging which explains os_signpost in a great detail.

    Screenshot 2019-06-01 at 10 46 52

    #254 Improve Image Loading Extensions

    • โž• Add imageView.nk.setImage(with:) family of methods as a replacement for Nuke.loadImage(with:into:). The latter wasn't grammatically correct, that's the first. setImage(with:) methods are also more conventional. So now in order to load an image and display it in a view you would simply do this:

      imageView.nk.setImage(with: URL(string: "http://example.com/image.jpeg")!)

    • ๐Ÿ›  Future-proof Objective-C ImageDisplaying protocol by adding nuke_ prefixes to avoid clashes in Objective-C runtime

    • โž• Add WKInterfaceImage support

    Other Changes

    • 0๏ธโƒฃ Enable processing deduplication by default โ€“ #252
    • โž• Add filterURL options to ImageRequestOptions to filter unwanted query parameters when generating cache keys - #255
    • โž• Add Deprecated.swift file to ease transition from Nuke 7 to Nuke 8 - #253
    • ๐ŸŽ Implement image cost calculation in ImageCache for macOS โ€“ #236
    • โž• Add a cleaner way to set ImageTask priority using a new priority property โ€“ #251
    • โž• Add convenience func decode(data: Data) method with a default isFinal argument to ImageDecoding protocol โ€“ e3ca5e
    • DataCache will now automatically re-create its root directory if it was deleted underneath it