@rails/activestorage 6.0.4 → 6.0.5-1

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 -278
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rails/activestorage",
3
- "version": "6.0.4",
3
+ "version": "6.0.5-1",
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,278 +0,0 @@
1
- ## Rails 6.0.4 (June 15, 2021) ##
2
-
3
- * The Poppler PDF previewer renders a preview image using the original
4
- document's crop box rather than its media box, hiding print margins. This
5
- matches the behavior of the MuPDF previewer.
6
-
7
- *Vincent Robert*
8
-
9
-
10
- ## Rails 6.0.3.7 (May 05, 2021) ##
11
-
12
- * No changes.
13
-
14
-
15
- ## Rails 6.0.3.6 (March 26, 2021) ##
16
-
17
- * Marcel is upgraded to version 1.0.0 to avoid a dependency on GPL-licensed
18
- mime types data.
19
-
20
- *George Claghorn*
21
-
22
-
23
- ## Rails 6.0.3.5 (February 10, 2021) ##
24
-
25
- * No changes.
26
-
27
-
28
- ## Rails 6.0.3.4 (October 07, 2020) ##
29
-
30
- * No changes.
31
-
32
-
33
- ## Rails 6.0.3.3 (September 09, 2020) ##
34
-
35
- * No changes.
36
-
37
-
38
- ## Rails 6.0.3.2 (June 17, 2020) ##
39
-
40
- * No changes.
41
-
42
-
43
- ## Rails 6.0.3.1 (May 18, 2020) ##
44
-
45
- * [CVE-2020-8162] Include Content-Length in signature for ActiveStorage direct upload
46
-
47
-
48
- ## Rails 6.0.3 (May 06, 2020) ##
49
-
50
- * No changes.
51
-
52
-
53
- ## Rails 6.0.2.2 (March 19, 2020) ##
54
-
55
- * No changes.
56
-
57
-
58
- ## Rails 6.0.2.1 (December 18, 2019) ##
59
-
60
- * No changes.
61
-
62
-
63
- ## Rails 6.0.2 (December 13, 2019) ##
64
-
65
- * No changes.
66
-
67
-
68
- ## Rails 6.0.1 (November 5, 2019) ##
69
-
70
- * `ActiveStorage::AnalyzeJob`s are discarded on `ActiveRecord::RecordNotFound` errors.
71
-
72
- *George Claghorn*
73
-
74
- * Blobs are recorded in the database before being uploaded to the service.
75
- This fixes that generated blob keys could silently collide, leading to
76
- data loss.
77
-
78
- *Julik Tarkhanov*
79
-
80
-
81
- ## Rails 6.0.0 (August 16, 2019) ##
82
-
83
- * No changes.
84
-
85
-
86
- ## Rails 6.0.0.rc2 (July 22, 2019) ##
87
-
88
- * No changes.
89
-
90
-
91
- ## Rails 6.0.0.rc1 (April 24, 2019) ##
92
-
93
- * Don't raise when analyzing an image whose type is unsupported by ImageMagick.
94
-
95
- Fixes #36065.
96
-
97
- *Guilherme Mansur*
98
-
99
- * Permit generating variants of BMP images.
100
-
101
- *Younes Serraj*
102
-
103
-
104
- ## Rails 6.0.0.beta3 (March 11, 2019) ##
105
-
106
- * No changes.
107
-
108
-
109
- ## Rails 6.0.0.beta2 (February 25, 2019) ##
110
-
111
- * No changes.
112
-
113
-
114
- ## Rails 6.0.0.beta1 (January 18, 2019) ##
115
-
116
- * [Rename npm package](https://github.com/rails/rails/pull/34905) from
117
- [`activestorage`](https://www.npmjs.com/package/activestorage) to
118
- [`@rails/activestorage`](https://www.npmjs.com/package/@rails/activestorage).
119
-
120
- *Javan Makhmali*
121
-
122
- * Replace `config.active_storage.queue` with two options that indicate which
123
- queues analysis and purge jobs should use, respectively:
124
-
125
- * `config.active_storage.queues.analysis`
126
- * `config.active_storage.queues.purge`
127
-
128
- `config.active_storage.queue` is preferred over the new options when it's
129
- set, but it is deprecated and will be removed in Rails 6.1.
130
-
131
- *George Claghorn*
132
-
133
- * Permit generating variants of TIFF images.
134
-
135
- *Luciano Sousa*
136
-
137
- * Use base36 (all lowercase) for all new Blob keys to prevent
138
- collisions and undefined behavior with case-insensitive filesystems and
139
- database indices.
140
-
141
- *Julik Tarkhanov*
142
-
143
- * It doesn’t include an `X-CSRF-Token` header if a meta tag is not found on
144
- the page. It previously included one with a value of `undefined`.
145
-
146
- *Cameron Bothner*
147
-
148
- * Fix `ArgumentError` when uploading to amazon s3
149
-
150
- *Hiroki Sanpei*
151
-
152
- * Add progressive JPG to default list of variable content types
153
-
154
- *Maurice Kühlborn*
155
-
156
- * Add `ActiveStorage.routes_prefix` for configuring generated routes.
157
-
158
- *Chris Bisnett*
159
-
160
- * `ActiveStorage::Service::AzureStorageService` only handles specifically
161
- relevant types of `Azure::Core::Http::HTTPError`. It previously obscured
162
- other types of `HTTPError`, which is the azure-storage gem’s catch-all
163
- exception class.
164
-
165
- *Cameron Bothner*
166
-
167
- * `ActiveStorage::DiskController#show` generates a 404 Not Found response when
168
- the requested file is missing from the disk service. It previously raised
169
- `Errno::ENOENT`.
170
-
171
- *Cameron Bothner*
172
-
173
- * `ActiveStorage::Blob#download` and `ActiveStorage::Blob#open` raise
174
- `ActiveStorage::FileNotFoundError` when the corresponding file is missing
175
- from the storage service. Services translate service-specific missing object
176
- exceptions (e.g. `Google::Cloud::NotFoundError` for the GCS service and
177
- `Errno::ENOENT` for the disk service) into
178
- `ActiveStorage::FileNotFoundError`.
179
-
180
- *Cameron Bothner*
181
-
182
- * Added the `ActiveStorage::SetCurrent` concern for custom Active Storage
183
- controllers that can't inherit from `ActiveStorage::BaseController`.
184
-
185
- *George Claghorn*
186
-
187
- * Active Storage error classes like `ActiveStorage::IntegrityError` and
188
- `ActiveStorage::UnrepresentableError` now inherit from `ActiveStorage::Error`
189
- instead of `StandardError`. This permits rescuing `ActiveStorage::Error` to
190
- handle all Active Storage errors.
191
-
192
- *Andrei Makarov*, *George Claghorn*
193
-
194
- * Uploaded files assigned to a record are persisted to storage when the record
195
- is saved instead of immediately.
196
-
197
- In Rails 5.2, the following causes an uploaded file in `params[:avatar]` to
198
- be stored:
199
-
200
- ```ruby
201
- @user.avatar = params[:avatar]
202
- ```
203
-
204
- In Rails 6, the uploaded file is stored when `@user` is successfully saved.
205
-
206
- *George Claghorn*
207
-
208
- * Add the ability to reflect on defined attachments using the existing
209
- ActiveRecord reflection mechanism.
210
-
211
- *Kevin Deisz*
212
-
213
- * Variant arguments of `false` or `nil` will no longer be passed to the
214
- processor. For example, the following will not have the monochrome
215
- variation applied:
216
-
217
- ```ruby
218
- avatar.variant(monochrome: false)
219
- ```
220
-
221
- *Jacob Smith*
222
-
223
- * Generated attachment getter and setter methods are created
224
- within the model's `GeneratedAssociationMethods` module to
225
- allow overriding and composition using `super`.
226
-
227
- *Josh Susser*, *Jamon Douglas*
228
-
229
- * Add `ActiveStorage::Blob#open`, which downloads a blob to a tempfile on disk
230
- and yields the tempfile. Deprecate `ActiveStorage::Downloading`.
231
-
232
- *David Robertson*, *George Claghorn*
233
-
234
- * Pass in `identify: false` as an argument when providing a `content_type` for
235
- `ActiveStorage::Attached::{One,Many}#attach` to bypass automatic content
236
- type inference. For example:
237
-
238
- ```ruby
239
- @message.image.attach(
240
- io: File.open('/path/to/file'),
241
- filename: 'file.pdf',
242
- content_type: 'application/pdf',
243
- identify: false
244
- )
245
- ```
246
-
247
- *Ryan Davidson*
248
-
249
- * The Google Cloud Storage service properly supports streaming downloads.
250
- It now requires version 1.11 or newer of the google-cloud-storage gem.
251
-
252
- *George Claghorn*
253
-
254
- * Use the [ImageProcessing](https://github.com/janko-m/image_processing) gem
255
- for Active Storage variants, and deprecate the MiniMagick backend.
256
-
257
- This means that variants are now automatically oriented if the original
258
- image was rotated. Also, in addition to the existing ImageMagick
259
- operations, variants can now use `:resize_to_fit`, `:resize_to_fill`, and
260
- other ImageProcessing macros. These are now recommended over raw `:resize`,
261
- as they also sharpen the thumbnail after resizing.
262
-
263
- The ImageProcessing gem also comes with a backend implemented on
264
- [libvips](http://jcupitt.github.io/libvips/), an alternative to
265
- ImageMagick which has significantly better performance than
266
- ImageMagick in most cases, both in terms of speed and memory usage. In
267
- Active Storage it's now possible to switch to the libvips backend by
268
- changing `Rails.application.config.active_storage.variant_processor` to
269
- `:vips`.
270
-
271
- *Janko Marohnić*
272
-
273
- * Rails 6 requires Ruby 2.5.0 or newer.
274
-
275
- *Jeremy Daer*, *Kasper Timm Hansen*
276
-
277
-
278
- Please check [5-2-stable](https://github.com/rails/rails/blob/5-2-stable/activestorage/CHANGELOG.md) for previous changes.