Shrine v3.4.0 Release Notes
Release Date: 2021-06-14 // almost 4 years ago-
๐
base
โ Fix passing options toShrine.Attachment
on Ruby 3.0 (@lucianghinda)determine_mime_type
โ Return correctimage/svg+xml
MIME type for SVGs with:fastimage
analyzer (@Bandes)โ
activerecord
โ Fix keyword argument warning when adding errors with options (@janko)entity
โ MakeAttacher#read
method public (@janko)entity
โ Reset attachment dirty tracking inAttacher#reload
(@janko)activerecord
โ Don't load the attacher onActiveRecord::Base#reload
if it hasn't yet been initialized (@janko)sequel
โ Don't load the attacher onSequel::Model#reload
if it hasn't yet been initialized (@janko)
Previous changes from v3.3.0
-
๐
s3
- Support newAws::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
โ CallAttacher#reload
inSequel::Model#reload
, which keeps rest of attacher state (@janko, @jrochkind)activerecord
โ CallAttacher#reload
inActiveRecord::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
โ Applyversion
URL option in derivation endpoint (@janko)๐
remove_attachment
โ Delete removed file if a new file was attached right after removal (@janko)upload_endpoint
โ FixShrine.upload_response
not working in a Rails controller (@pldavid2)presign_endpoint
โ AddOPTIONS
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
โ EnsureMemory#open
returns content in original encoding (@jrochkind)