CarrierWave v2.0.0.rc Release Notes
Release Date: 2019-06-23 // almost 5 years ago-
โ Added
- ๐ Append, reorder, and remove-single-file feature for multiple file uploader(@mshibuya #2401)
- ๐ Allow retrieval of uploader index within uploaders(@mshibuya #1771)
- โ Add ability to customize downloaders(@mshibuya #1636)
- ๐ Support internationalized domain names for downloader(@mshibuya #2086)
- ๐ Support authenticated_url for Aliyun provider(@Nitrino #2381)
- ๐ Support passing options to authenticated_url for OpenStack provider(@stanhu #2377)
- ๐ Support authenticated_url for AzureRM provider(@Nitrino #2375)
- ๐ Allow custom expires_at when building an authenticated_url(@stephankaag #2397)
๐ Changed
- ๐ง Use the storage given by
storage
configuration also forcache_storage
unless explicitly specified(@mshibuya 629afecb) - ๐ Improve Fog initialization(@mshibuya #2395)
- โก๏ธ [BREAKING CHANGE] Multiple file uploader now keeps successful files on update, only discarding failed ones(@mshibuya 7db9195d)
- [BREAKING CHANGE]
#remote_#{column}_urls=
was changed to preserve precedent updates(@mshibuya 8f18a95b) #serializable_hash
now returns string for version keys(@schovi #2246)- Use the MimeMagic gem to inspect file headers for the mime type. This allows for mitigation of CVE-2016-3714, in combination with a
content_type_whitelist
(@locriani #1934) - Replace mime-types dependency with mini_mime to save memory(@bradleypriest #2292)
- Delegate MiniMagick processing to ImageProcessing gem(@janko #2298)
- ๐ฅ๏ธ Handle ActiveRecord transaction correctly, not storing or removing files on rollback(@skosh #2209)
๐ Deprecated
- ๐ง
fog_provider
configuration was deprecated and has no effect, just adding fog providers toGemfile
will load them(@mshibuya ca201ee2) - ๐
CarrierWave::Uploader::Base#sanitized_file
was deprecated, use#file
instead(@mshibuya 28190e99)
โ Removed
๐ Fixed
- ๐ Fix deleting files twice when marked for removal(@mshibuya 67800fde)
- ๐ Fix
uploader.cache!
loads entire contents of file into memory(@mshibuya #2136) - Do not trigger *_will_change! when file is not to be removed(@mshibuya #2323)
- ๐ Allow deleting all files for multiple file upload(@mshibuya #1990)
- Failing to retrieve unquoted filenames from Content-Disposition(@mshibuya #2364)
- ๐ Fix
#clean_cache!
breaking with old format of cache id(@mshibuya aab402fb) - ๐ Fix
#exists?
returning true after Fog file deletion(@mshibuya #2387) - ๐ Make
#identifier
available for a retrieved file(@mshibuya #1581) - ๐ Make cache id generation less predictable(@mshibuya #2326)
- Uploaders not being cleared when
#reload
or#initialize_dup
are overridden in model(@mshibuya #2379) - ๐ Fix
#content_type
returning false, instead of nil(@longkt90 #2384) - Preserve connection cache when eagar-loading fog(@dmitryshagin #2383)
- ๐
#recreate_versions!
ignored:from_version
when versions to recreate are given(@hedgesky #1879 #1164)