Nuke Versions Save

Image loading system

12.7.0-beta.1

3 weeks ago

🐛 Call for Testing. This release contains some major internal changes to the core APIs. Please help with testing the newly introduced and the existing ImagePipeline APIs, and report any issues before it gets shipped.

This release contains some major improvements to the Structured Concurrency support and introduced a re-engineered ImagePipeline.

  • Add previews: AsyncStream<ImageResponse>, progress: AsyncStream<Progress>, image: PlatformImage async and reponse: ImageResponse async directly to ImageTask and deprecate AsyncImageTask. These APIs have zero cost unless you use them.
  • Add ImageTask.Event and add events: AsyncStream<Event> to ImageTask for observing all events associated with the image loading.
  • Improve the support for AsyncStream: a new stream is created every time you access the respective property to make it easier to have multiple consumers.
  • Add ImagePipelineDelegate/imageTask(:didReceiveEvent:pipeline:) and deprecate the previous methods it replaced (context: these methods were introduced in Nuke 11.0 as the initial and misguided attempt at Structured Concurrency support that tried to borrow from the URLSession API design)
  • (Internal) Rework ImagePipeline that accumulated a lot of cruft after the introduction of data tasks, Combine, Async/Await, and AsyncStream support in the previous releases.
  • Deprecate ImagePipeline/loadData(with:) and ImagePipeline/data(with:) methods that accept URL as parameters – use the ImageRequest variants instead (these are rarely used and low-level APIs that don't require convenience variants)
  • Remove @discardableResult from ImagePipeline/data(with:) async throws – it was never meant to be there
  • Rename ImageTask/progress to ImageTask/currentProgress (warning: this is a small breaking change in the API)
  • Fix some of the Strict Concurrency Checking & Swift 6 warnings preparing for the upcoming Swift releases
  • Fix documentation for AsyncImageTask/previews that was previously specifying that it was delivering the previews and the final image – it's only the previews.

12.6.0

1 month ago

Fixes

  • Fix an issue with an optimization that is supposed to skip decompression if one or more processors are applied
  • Fix a [Decompressor] Error -17102 decompressing image -- possibly corrupt console error message when using ImagePipeline.Configuration.isUsingPrepareForDisplay (disabled by default). The pipeline will now skip decompression for .png.
  • Fix https://github.com/kean/Nuke/issues/705 with integration between thumbnail options (link) and original data caching: the original data is now stored without a thumbnail key
  • Fix an issue where .storeAll and .automatic cache policies would not store the thumbnail data
  • Fix https://github.com/kean/Nuke/issues/746 an issue with ImageRequest.UserInfoKey.scaleKey not interacting correctly with coalescing
  • Fix https://github.com/kean/Nuke/issues/763 SwiftUI Warning: Accessing StateObject's object without being installed on a View when using onStart

Changes

  • Add support for initializing ImageProcessors.CoreImageFilter with CIFilter instances (fixes https://github.com/kean/Nuke/issues/758 )
  • Add support for disk cache lookup for intermediate processed images (as opposed to only final and original as before)
  • Add an optimization that loads local resources with file and data schemes quickly without using DataLoader and URLSession. If you rely on the existing behavior, this optimization can be turned off using the isLocalResourcesSupportEnabled configuration option. https://github.com/kean/Nuke/pull/779
  • Update the infrastructure for coalescing image-processing tasks to use the task-dependency used for other operations

Deprecations

  • Deprecate ImagePipeline.Configuration.dataCachingQueue and perform data cache lookups on the pipeline's queue, reducing the amount of context switching

12.5.0

2 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/kean/Nuke/compare/12.4.0...12.5.0

12.4.0

3 months ago

What's Changed

New Contributors

12.3.0

4 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/kean/Nuke/compare/12.2.0...12.3.0

12.2.0

6 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/kean/Nuke/compare/12.1.6...12.2.0

12.1.6

9 months ago
  • Improve ImageCache (memory cache) performance by 20%
  • Improve NukeExtensions performance by 5%
  • Update the code to support future visionOS releases by switching to canImport where possible

12.2.0-beta.2

9 months ago
  • Fix compilation visionOS errors on Xcode 15 Beta 6

[!WARNING]
Swift Package Manager is not supported yet. There seem to be compilation errors when adding .visionOS(.v1) to the list of the supported versions. More updates coming soon.

12.1.5

10 months ago

12.1.4

10 months ago
  • Upgrade from CommonCrypto to CryptoKit and slightly optimize how cryptographic hashes are converted to strings (used as filenames for DataCache)
  • Deprecate DataCache/isCompressionEnabled. It was initially added as a general-purpose feature used in Pulse, but it's not recommended to be used with most image formats.
  • DataCache now performs sweeps less frequently
  • Minor docs correction – https://github.com/kean/Nuke/pull/715 by @tdkn

New Contributors