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 for cache_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 to Gemfile 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)