@rails/activestorage 6.1.3-2 → 6.1.4-3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/CHANGELOG.md +0 -276
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rails/activestorage",
3
- "version": "6.1.3-2",
3
+ "version": "6.1.4-3",
4
4
  "description": "Attach cloud and local files in Rails applications",
5
5
  "main": "app/assets/javascripts/activestorage.js",
6
6
  "files": [
package/CHANGELOG.md DELETED
@@ -1,276 +0,0 @@
1
- ## Rails 6.1.3.2 (May 05, 2021) ##
2
-
3
- * No changes.
4
-
5
-
6
- ## Rails 6.1.3.1 (March 26, 2021) ##
7
-
8
- * Marcel is upgraded to version 1.0.0 to avoid a dependency on GPL-licensed
9
- mime types data.
10
-
11
- *George Claghorn*
12
-
13
-
14
- ## Rails 6.1.3 (February 17, 2021) ##
15
-
16
- * No changes.
17
-
18
-
19
- ## Rails 6.1.2.1 (February 10, 2021) ##
20
-
21
- * No changes.
22
-
23
-
24
- ## Rails 6.1.2 (February 09, 2021) ##
25
-
26
- * No changes.
27
-
28
-
29
- ## Rails 6.1.1 (January 07, 2021) ##
30
-
31
- * Fix S3 multipart uploads when threshold is larger than file.
32
-
33
- *Matt Muller*
34
-
35
-
36
- ## Rails 6.1.0 (December 09, 2020) ##
37
-
38
- * Change default queue name of the analysis (`:active_storage_analysis`) and
39
- purge (`:active_storage_purge`) jobs to be the job adapter's default (`:default`).
40
-
41
- *Rafael Mendonça França*
42
-
43
- * Implement `strict_loading` on ActiveStorage associations.
44
-
45
- *David Angulo*
46
-
47
- * Remove deprecated support to pass `:combine_options` operations to `ActiveStorage::Transformers::ImageProcessing`.
48
-
49
- *Rafael Mendonça França*
50
-
51
- * Remove deprecated `ActiveStorage::Transformers::MiniMagickTransformer`.
52
-
53
- *Rafael Mendonça França*
54
-
55
- * Remove deprecated `config.active_storage.queue`.
56
-
57
- *Rafael Mendonça França*
58
-
59
- * Remove deprecated `ActiveStorage::Downloading`.
60
-
61
- *Rafael Mendonça França*
62
-
63
- * Add per-environment configuration support
64
-
65
- *Pietro Moro*
66
-
67
- * The Poppler PDF previewer renders a preview image using the original
68
- document's crop box rather than its media box, hiding print margins. This
69
- matches the behavior of the MuPDF previewer.
70
-
71
- *Vincent Robert*
72
-
73
- * Touch parent model when an attachment is purged.
74
-
75
- *Víctor Pérez Rodríguez*
76
-
77
- * Files can now be served by proxying them from the underlying storage service
78
- instead of redirecting to a signed service URL. Use the
79
- `rails_storage_proxy_path` and `_url` helpers to proxy an attached file:
80
-
81
- ```erb
82
- <%= image_tag rails_storage_proxy_path(@user.avatar) %>
83
- ```
84
-
85
- To proxy by default, set `config.active_storage.resolve_model_to_route`:
86
-
87
- ```ruby
88
- # Proxy attached files instead.
89
- config.active_storage.resolve_model_to_route = :rails_storage_proxy
90
- ```
91
-
92
- ```erb
93
- <%= image_tag @user.avatar %>
94
- ```
95
-
96
- To redirect to a signed service URL when the default file serving strategy
97
- is set to proxying, use the `rails_storage_redirect_path` and `_url` helpers:
98
-
99
- ```erb
100
- <%= image_tag rails_storage_redirect_path(@user.avatar) %>
101
- ```
102
-
103
- *Jonathan Fleckenstein*
104
-
105
- * Add `config.active_storage.web_image_content_types` to allow applications
106
- to add content types (like `image/webp`) in which variants can be processed,
107
- instead of letting those images be converted to the fallback PNG format.
108
-
109
- *Jeroen van Haperen*
110
-
111
- * Add support for creating variants of `WebP` images out of the box.
112
-
113
- *Dino Maric*
114
-
115
- * Only enqueue analysis jobs for blobs with non-null analyzer classes.
116
-
117
- *Gannon McGibbon*
118
-
119
- * Previews are created on the same service as the original blob.
120
-
121
- *Peter Zhu*
122
-
123
- * Remove unused `disposition` and `content_type` query parameters for `DiskService`.
124
-
125
- *Peter Zhu*
126
-
127
- * Use `DiskController` for both public and private files.
128
-
129
- `DiskController` is able to handle multiple services by adding a
130
- `service_name` field in the generated URL in `DiskService`.
131
-
132
- *Peter Zhu*
133
-
134
- * Variants are tracked in the database to avoid existence checks in the storage service.
135
-
136
- *George Claghorn*
137
-
138
- * Deprecate `service_url` methods in favour of `url`.
139
-
140
- Deprecate `Variant#service_url` and `Preview#service_url` to instead use
141
- `#url` method to be consistent with `Blob`.
142
-
143
- *Peter Zhu*
144
-
145
- * Permanent URLs for public storage blobs.
146
-
147
- Services can be configured in `config/storage.yml` with a new key
148
- `public: true | false` to indicate whether a service holds public
149
- blobs or private blobs. Public services will always return a permanent URL.
150
-
151
- Deprecates `Blob#service_url` in favor of `Blob#url`.
152
-
153
- *Peter Zhu*
154
-
155
- * Make services aware of configuration names.
156
-
157
- *Gannon McGibbon*
158
-
159
- * The `Content-Type` header is set on image variants when they're uploaded to third-party storage services.
160
-
161
- *Kyle Ribordy*
162
-
163
- * Allow storage services to be configured per attachment.
164
-
165
- ```ruby
166
- class User < ActiveRecord::Base
167
- has_one_attached :avatar, service: :s3
168
- end
169
-
170
- class Gallery < ActiveRecord::Base
171
- has_many_attached :photos, service: :s3
172
- end
173
- ```
174
-
175
- *Dmitry Tsepelev*
176
-
177
- * You can optionally provide a custom blob key when attaching a new file:
178
-
179
- ```ruby
180
- user.avatar.attach key: "avatars/#{user.id}.jpg",
181
- io: io, content_type: "image/jpeg", filename: "avatar.jpg"
182
- ```
183
-
184
- Active Storage will store the blob's data on the configured service at the provided key.
185
-
186
- *George Claghorn*
187
-
188
- * Replace `Blob.create_after_upload!` with `Blob.create_and_upload!` and deprecate the former.
189
-
190
- `create_after_upload!` has been removed since it could lead to data
191
- corruption by uploading to a key on the storage service which happened to
192
- be already taken. Creating the record would then correctly raise a
193
- database uniqueness exception but the stored object would already have
194
- overwritten another. `create_and_upload!` swaps the order of operations
195
- so that the key gets reserved up-front or the uniqueness error gets raised,
196
- before the upload to a key takes place.
197
-
198
- *Julik Tarkhanov*
199
-
200
- * Set content disposition in direct upload using `filename` and `disposition` parameters to `ActiveStorage::Service#headers_for_direct_upload`.
201
-
202
- *Peter Zhu*
203
-
204
- * Allow record to be optionally passed to blob finders to make sharding
205
- easier.
206
-
207
- *Gannon McGibbon*
208
-
209
- * Switch from `azure-storage` gem to `azure-storage-blob` gem for Azure service.
210
-
211
- *Peter Zhu*
212
-
213
- * Add `config.active_storage.draw_routes` to disable Active Storage routes.
214
-
215
- *Gannon McGibbon*
216
-
217
- * Image analysis is skipped if ImageMagick returns an error.
218
-
219
- `ActiveStorage::Analyzer::ImageAnalyzer#metadata` would previously raise a
220
- `MiniMagick::Error`, which caused persistent `ActiveStorage::AnalyzeJob`
221
- failures. It now logs the error and returns `{}`, resulting in no metadata
222
- being added to the offending image blob.
223
-
224
- *George Claghorn*
225
-
226
- * Method calls on singular attachments return `nil` when no file is attached.
227
-
228
- Previously, assuming the following User model, `user.avatar.filename` would
229
- raise a `Module::DelegationError` if no avatar was attached:
230
-
231
- ```ruby
232
- class User < ApplicationRecord
233
- has_one_attached :avatar
234
- end
235
- ```
236
-
237
- They now return `nil`.
238
-
239
- *Matthew Tanous*
240
-
241
- * The mirror service supports direct uploads.
242
-
243
- New files are directly uploaded to the primary service. When a
244
- directly-uploaded file is attached to a record, a background job is enqueued
245
- to copy it to each secondary service.
246
-
247
- Configure the queue used to process mirroring jobs by setting
248
- `config.active_storage.queues.mirror`. The default is `:active_storage_mirror`.
249
-
250
- *George Claghorn*
251
-
252
- * The S3 service now permits uploading files larger than 5 gigabytes.
253
-
254
- When uploading a file greater than 100 megabytes in size, the service
255
- transparently switches to [multipart uploads](https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html)
256
- using a part size computed from the file's total size and S3's part count limit.
257
-
258
- No application changes are necessary to take advantage of this feature. You
259
- can customize the default 100 MB multipart upload threshold in your S3
260
- service's configuration:
261
-
262
- ```yaml
263
- production:
264
- service: s3
265
- access_key_id: <%= Rails.application.credentials.dig(:aws, :access_key_id) %>
266
- secret_access_key: <%= Rails.application.credentials.dig(:aws, :secret_access_key) %>
267
- region: us-east-1
268
- bucket: my-bucket
269
- upload:
270
- multipart_threshold: <%= 250.megabytes %>
271
- ```
272
-
273
- *George Claghorn*
274
-
275
-
276
- Please check [6-0-stable](https://github.com/rails/rails/blob/6-0-stable/activestorage/CHANGELOG.md) for previous changes.