Shrine v3.4.0 Release Notes

Release Date: 2021-06-14 // about 1 year ago
    • ๐Ÿ’Ž base โ€“ Fix passing options to Shrine.Attachment on Ruby 3.0 (@lucianghinda)

    • determine_mime_type โ€“ Return correct image/svg+xml MIME type for SVGs with :fastimage analyzer (@Bandes)

    • โš  activerecord โ€“ Fix keyword argument warning when adding errors with options (@janko)

    • entity โ€“ Make Attacher#read method public (@janko)

    • entity โ€“ Reset attachment dirty tracking in Attacher#reload (@janko)

    • activerecord โ€“ Don't load the attacher on ActiveRecord::Base#reload if it hasn't yet been initialized (@janko)

    • sequel โ€“ Don't load the attacher on Sequel::Model#reload if it hasn't yet been initialized (@janko)


Previous changes from v3.3.0

    • ๐Ÿ‘ s3 - Support new Aws::S3::EncryptionV2::Client for client-side encryption (@janko)

    • derivation_endpoint โ€“ Reduce possibility of timing attacks when comparing signatures (@esparta)

    • 0๏ธโƒฃ derivatives โ€“ Avoid downloading the attached file when calling default no-op processor (@janko)

    • derivatives โ€“ Add :download processor setting for skipping downloading source file (@jrochkind, @janko)

    • derivatives โ€“ Copy non-file source IO objects into local file before passing them to the processor (@jrochkind)

    • sequel โ€“ Call Attacher#reload in Sequel::Model#reload, which keeps rest of attacher state (@janko, @jrochkind)

    • activerecord โ€“ Call Attacher#reload in ActiveRecord::Base#reload, which keeps rest of attacher state (@janko, @jrochkind)

    • ๐Ÿ“‡ add_metadata โ€“ Add :skip_nil option for excluding metadata keys whose values are nil (@renchap)

    • store_dimensions โ€“ Add :auto_extraction option for disabling automatically extracting dimensions on upload (@renchap)

    • mirroring โ€“ Forward original upload options when mirroring upload (@corneverbruggen)

    • derivation_endpoint โ€“ Apply version URL option in derivation endpoint (@janko)

    • ๐Ÿšš remove_attachment โ€“ Delete removed file if a new file was attached right after removal (@janko)

    • upload_endpoint โ€“ Fix Shrine.upload_response not working in a Rails controller (@pldavid2)

    • presign_endpoint โ€“ Add OPTIONS route that newer versions of Uppy check (@janko)

    • derivatives โ€“ Add :create_on_promote option for auto-creating derivatives on promotion (@janko)

    • ๐Ÿ‘ s3 โ€“ Add back support for client-side encryption (@janko)

    • memory โ€“ Ensure Memory#open returns content in original encoding (@jrochkind)