New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@rails/activestorage

Package Overview
Dependencies
Maintainers
12
Versions
132
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rails/activestorage - npm Package Compare versions

Comparing version 6.0.3 to 6.0.4

47

CHANGELOG.md

@@ -0,1 +1,48 @@

## Rails 6.0.4 (June 15, 2021) ##
* The Poppler PDF previewer renders a preview image using the original
document's crop box rather than its media box, hiding print margins. This
matches the behavior of the MuPDF previewer.
*Vincent Robert*
## Rails 6.0.3.7 (May 05, 2021) ##
* No changes.
## Rails 6.0.3.6 (March 26, 2021) ##
* Marcel is upgraded to version 1.0.0 to avoid a dependency on GPL-licensed
mime types data.
*George Claghorn*
## Rails 6.0.3.5 (February 10, 2021) ##
* No changes.
## Rails 6.0.3.4 (October 07, 2020) ##
* No changes.
## Rails 6.0.3.3 (September 09, 2020) ##
* No changes.
## Rails 6.0.3.2 (June 17, 2020) ##
* No changes.
## Rails 6.0.3.1 (May 18, 2020) ##
* [CVE-2020-8162] Include Content-Length in signature for ActiveStorage direct upload
## Rails 6.0.3 (May 06, 2020) ##

@@ -2,0 +49,0 @@

2

package.json
{
"name": "@rails/activestorage",
"version": "6.0.3",
"version": "6.0.4",
"description": "Attach cloud and local files in Rails applications",

@@ -5,0 +5,0 @@ "main": "app/assets/javascripts/activestorage.js",

@@ -13,3 +13,3 @@ # Active Storage

A key difference to how Active Storage works compared to other attachment solutions in Rails is through the use of built-in [Blob](https://github.com/rails/rails/blob/master/activestorage/app/models/active_storage/blob.rb) and [Attachment](https://github.com/rails/rails/blob/master/activestorage/app/models/active_storage/attachment.rb) models (backed by Active Record). This means existing application models do not need to be modified with additional columns to associate with files. Active Storage uses polymorphic associations via the `Attachment` join model, which then connects to the actual `Blob`.
A key difference to how Active Storage works compared to other attachment solutions in Rails is through the use of built-in [Blob](https://github.com/rails/rails/blob/main/activestorage/app/models/active_storage/blob.rb) and [Attachment](https://github.com/rails/rails/blob/main/activestorage/app/models/active_storage/attachment.rb) models (backed by Active Record). This means existing application models do not need to be modified with additional columns to associate with files. Active Storage uses polymorphic associations via the `Attachment` join model, which then connects to the actual `Blob`.

@@ -16,0 +16,0 @@ `Blob` models store attachment metadata (filename, content-type, etc.), and their identifier key in the storage service. Blob models do not store the actual binary data. They are intended to be immutable in spirit. One file, one blob. You can associate the same blob with multiple application models as well. And if you want to do transformations of a given `Blob`, the idea is that you'll simply create a new one, rather than attempt to mutate the existing one (though of course you can delete the previous version later if you don't need it).

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc