Shrine 3.11.0
Security
FileSystem#delete_prefixednow raises aShrine::Errorwhen the given prefix resolves outside of the storage directory, the same way otherFileSystemmethods do. Previously, a prefix such as"../"would cause files outside of the storage directory to be deleted.
Performance improvements
-
S3#urlnow builds public URLs with the:hostoption directly from the object key, without first generating the S3 URL viaAws::S3::Object#public_url. This makes generating such URLs 3-7x faster and significantly reduces allocations.s3.url("image.jpg", host: "https://cdn.example.com") # faster
Backwards compatibility
-
Shrine now requires Ruby 3.3 or later.
-
When using
S3withforce_path_style: trueand an endpoint whose host contains the bucket name, public URLs generated with:hostno longer include the bucket name in the path, consistent with other path-style URLs.