Changelog History
Page 8
-
v5.0.0-beta3 Changes
August 30, 2018๐ See all tickets marked for the 5.0.0 release
๐ Features
- Minimum progress interval config for
SDWebImageDownloader
#2415 #2437 1d8454d - ๐ Feature disk cache migration from 4.x #2417 #2433
- โ Add
SDImageFormatHEIF
representmif1
&&msf1
brands #2423 (imported from 4.4.3) - โ Add default
HTTP User-Agent
for specific system #2409 (imported from 4.4.3) - Replace
valueForKey
withobjectForKey
when access NSDictionary #2399 - ๐ Improved unit tests #2438 #2434
- โจ Enhanced contributing guide #2416
- Adopt all the protocol APIs which contains getter value to use property instead, to make the API easy to use or Swift user #2452
- โ Remove
sd_setAnimationImagesWithURLs
API, because its cause ambiguity, behave not consistently and have rare use case #2459 - ๐ Improved
SDAnimatedImage
protocol withinitWithData:scale:options:
#2453 - Extra args for
SDSetImageBlock
(addedcacheType
andimageURL
) #2449
๐ Fixes
- Fix that using
NS_TYPED_ENUM
onSDImageFormat
cause the existing Swift API (sd_UTTypeFromImageFormat
) naming changed #2413 - ๐ Fix that downloader options about image decoding is not correctly set #2414
- ๐ Make download receive response notification only dispatch to specific observer #2426
- ๐ Fix a race condition during progressive animation load in
SDAnimatedImageView
#2435 - ๐ Fix the bug that
SDWebImageContextCacheKeyFilter
wrongly be used as cache serializer and cause crash #2451 - ๐ Fix resource key invalid when clean cached disk file #2462
- โ Add no expiration file support of disk cache #2461
- Minimum progress interval config for
-
v5.0.0-beta2 Changes
July 31, 2018๐ See all tickets marked for the 5.0.0 release
๐ Features
- โ Add
SDImageCoderWebImageContext
coder option, which allow custom coder plugin, to receive the context option from top-level API #2405 - ๐ Updated all existing diagrams for 5.0 release + added new ones (small detailed diagrams for the most important components) #2407
๐ Fixes
- ๐ Fix nullable key for
sd_imageLoadOperationForKey
#2389 - Replace
__bridge_transfer
with__bridge
when convert fromCFStringRef
toNSString
#2392 - Rename
sd_UTTypeFromSDImageFormat
tosd_UTTypeFromImageFormat
#2395 - Change
SDImageFormat
to useNS_TYPED_EXTENSIBLE_ENUM
instead of fixed enum, to allow custom coder plugins to extend it #2400
- โ Add
-
v5.0.0-beta Changes
July 17, 2018๐ See all tickets marked for the 5.0.0 release
Infrastructure
- the new requirements are iOS 8.0+ and macOS 10.10+ #2147
- Xcode 9+
Backwards incompatible changes
โก๏ธ See the 5.0 Migration Guide for a list of comprehensive changes and the way to update your code
๐ Features
- ๐จ Introduce
SDAnimatedImageView
,SDAnimatedImage
and refactor the way we handle animated images #2140 - โ Added APNG support via dedicated coder
SDImageAPNGCoder
#2149 - ๐จ Refactored
SDWebImageDownloader
configs, separated them into a dedicatedSDWebImageDownloaderConfig
object #2263 - ๐จ Refactored the way we work with the scale factor #2266
- Created request and response modifier #2261
- ๐จ Refactor Cache Path API #2276
- ๐จ Refactor custom cache serializer & headers filter for request level #2280
- ๐จ Refactor cache - Support custom memory cache & disk cache #2282
- ๐จ Refactor cache - Support custom web cache #2278
- ๐จ Refactor - custom image loader - Supports loader protocol #2256
๐ Use
SDWebImageAvoidDecodeImage
to allow user to control force decode feature for individual image request #2283๐
SDImageCache
supports disk cache writing options. SeeSDImageCacheConfig diskCacheWritingOptions
#2148SDImageCache
now usesNSData writeToFile:options:error
instead ofNSFileManager createFileAtPath:contents:attributes
#2148๐ Moved
SDImageCache maxMemoryCost
andSDImageCache maxMemoryCountLimit
toSDImageCacheConfig
#2151โ Added
SDImageCache diskImageDataExistsWithKey:
synchronous method #2151Moved
UIImage sd_imageLoopCount
andUIImage isGIF
(and renamed tosd_isAnimated
) toUIImage+Metadata
category, removed the outdated methods #2152๐ Move context and other type definitions to a separate header (
SDWebImageDefine
) to allow to be included without dependency #2188Pass
context
arg from the top level APIs to the bottom level APIs to allow specify logic in the future #2189 d6a3e2c c24c3d3๐จ Refactor the image indicator by creating
SDWebImageIndicator
andSDWebImageProgressIndicator
protocols and two concrete classes that implement activity and progress indicators for both UIKit and AppKit #2185 46b62cf๐จ Refactor the implementation of
SDWebImagePrefetcher
so it behaves more like a "shared instance" object, similar to other platform classes. Each instance will manage its own list of urls. #2191 1efc247 92f3d2c bc164d6๐จ Refactored and enhanced the way we allow image transformations. Switched from a single delegate method to composition of
SDImageTransformer
#2219๐ API style refactoring - #2250
- Use property instead of setters and getters to make the property available in Swift
- Use class property with the correct name instead of
+(instanceType)sharedInstance
in singleton to make it more easy to use in Swift. The generated interface should be simpleopen class var shared { get }
- Add all nullability annotation to avoid any
AnyObject!
implicitly unwrapped optionals (Except thatnull_resettable
) - Add all Core Foundation Ownership using
CF_RETURNS_RETAINED
for Get Rule andCF_RETURNS_NOT_RETAINED
for Create Rule to avoid anyUnmanaged
CF value - Change all key for Dictionary with
NS_STRING_ENUM
to make it easy to use in Swift with dot syntax - Change all global value type which represent enum with
NS_TYPED_ENUM
to make it easy to use in Swift with dot syntax
โ Remove the extra calculation of image orientation for ImageIO coder & Fix macOS image orientation #2271
Added
SDWebImageError
(defined asNS_ERROR_ENUM
) to group all our errors together #2290โ Added tests for macOS
โ Add the
SDWebImageContextStoreCacheType
context option to specify target cache type when the image is downloaded by manager and will store to cache #2360๐ Feature watchOS
WKInterfaceImage
withsd_setImageWithURL
#2331โ Add options to specify query cache sync/async behavior #2312
๐ Fixes
SDWebImageManager loadImageWithURL:options:progress:completed:
changed thecompleted
param requirement fromnullable
tononnull
#2164
-
v4.4.8 Changes
December 27, 2019๐ Fixes
- ๐ Fix the issue that "There may be no complete callback when download the picture of the local path" #2916
- ๐ Fix the crash when using NSCache delegate with SDMemoryCache default implementation on dealloc #2899
- ๐ Fix the thread safe issue with Downloader and DownloaderOperation during cancel #2903
-
v4.4.7 Changes
June 05, 2019 -
v4.4.6 Changes
February 26, 2019๐ See all tickets marked for the 4.4.6 release
๐ Fixes
- ๐ Fix the unused user header search path warning for CocoaPods 1.6.0. #2622
- ๐ Fix that WebP with custom ICC Profile will randomly crash, because
CGColorSpaceCreateWithICCProfile
does not copy the ICC data pointer #2621 - ๐ Fix the issue when WebP contains the ICC Profile with colorSpace other than RGB, which cause the CGImageCreate failed #2627
Project
- โก๏ธ Update the libwebp dependency to support using 1.0 version and above #2625
๐ Performances
- ๐ Nil imageData before decode process to free memory #2624
-
v4.4.5 Changes
January 31, 2019๐ See all tickets marked for the 4.4.5 release
๐ Fixes
- โช Revert the modular framework, try to fix some user's install issue when using SDWebImage in prefix header #2604
- ๐ Fix wrong decompression scale calculation #2608
- ๐ Fix shouldDecode check when image format is GIF #2606
- ๐ Fix modify data pointer if webp image scaled down #2607
-
v4.4.4 Changes
January 26, 2019๐ See all tickets marked for the 4.4.4 release
๐ Fixes
- ๐ Fix memory cache image cost miscalculation for 4.x #2486
- ๐ Fix background download for 4.x #2570
- ๐ Fix race condition for creation of download operation when isCancelled is YES but isFinished is NO #2574
- ๐ Fix the current image cost (pixels) for FLAnimatedImage #2558
- ๐ Fix the FLAnimatedImage compatible code issue by introduce a private API #2588
- ๐ Fix that WebP image with ICC Profile does not show color correctly, should use the profile colorspace instead of device colorspace #2585
- ๐ Fix potential memory leaks for ICCP && optimize ICCP handler #2596
- ๐ Fix that WebP decoder in master branch, does not consider the global
shouldDecompressImages
config and always do pre-draw for static WebP images #2592 - ๐ Fix rare crash when NSMapTable empty keys #2556
- Retain operation when post download related notifications (Hopefully fix, but if you face crash, please open a issue) #2576
๐ Performances
- Prioritize SDWebImageDownloaderHighPriority if operation already exists #2575
Project
- Let SD can be imported using static library by CocoaPods using
DEFINES_MODULE
#2549
-
v4.4.3 Changes
November 25, 2018๐ See all tickets marked for the 4.4.3 release
๐ Fixes
- โช Revert the hack code for
FLAnimatedImage
, because of theFLAnimatedImage
initializer method blocks the main queue #2441 - ๐ Fix extention long length of file name #2516 6c6d848
- ๐ Fix resource key invalid when clean cached disk file #2463
- ๐ Fix the test case
testFLAnimatedImageViewSetImageWithURL
because of remote resource is not available #2450 - โ Add default
HTTP User-Agent
for specific system #2409 - โ Add
SDImageFormatHEIF
representmif1
&&msf1
brands #2423 - โ remove
addProgressCallback
, addcreateDownloaderOperationWithUrl
#2336 - ๐ Fix the bug when
FLAnimatedImageView
firstly show one EXIF rotation JPEGUIImage
, later animated GIFFLAnimatedImage
will also be rotated #2406 - Replace
SDWebImageDownloaderOperation
withNSOperation<SDWebImageDownloaderOperationInterface>
to make generic #2397 - ๐ Fix wrong image cache type when disk and memory cache missed #2529
- ๐ Fix FLAnimatedImage version check issue for custom property
optimalFrameCacheSize
&&predrawingEnabled
#2543
๐ Performances
- โ Add autoreleasepool to release autorelease objects in advance when using GCD for 4.x #2475
- โก๏ธ Optimize when scale = 1 #2520
๐ Docs
- โก๏ธ Updated URLs after project was transfered to SDWebImage organization #2510 f9d05d9
- Tidy up spacing for
README.md
#2511 - โ Remove versioneye from README #2424
- โช Revert the hack code for
-
v4.4.2 Changes
July 18, 2018๐ See all tickets marked for the 4.4.2 release
๐ Features
- Ability to change the clear cache option
SDImageCacheConfig.diskCacheExpireType
#2357 - โ Add option to enable or disable weak memory cache for
SDImageCache
viaSDImageCacheConfig.shouldUseWeakMemoryCache
#2379 - โ Add cache control for
FLAnimatedImage
, this allow user to disable memory cache for associatedFLAnimatedImage
instance #2378 - โ Add
diskImageDataForKey:
sync API forSDImageCache
to directly get the image data from disk #2391
๐ Fixes
-
SDWebImageManager.runningOperations
type changed fromArray
toSet
#2382 - Keep the information about image's original compressed format #2390
- ๐ Fix
FLAnimatedImageView+WebCache
delayed draw due to #2047 which is now reverted #2393 - Check for nullable key when cancel image load operation #2386
- Replace
__bridge_transfer
with__bridge
when convert fromCFStringRef
toNSString
#2394
- Ability to change the clear cache option