@uppy/core
Advanced tools
Comparing version 2.1.8 to 2.1.9
# @uppy/core | ||
## 2.1.9 | ||
Released: 2022-04-27 | ||
Included in: Uppy v2.9.4 | ||
- @uppy/core: fix `TypeError` when file was removed (Antoine du Hamel / #3650) | ||
## 2.1.8 | ||
@@ -4,0 +11,0 @@ |
@@ -84,3 +84,5 @@ /** | ||
throw new Error('Extend the render method to add your plugin to a DOM element'); | ||
} // eslint-disable-next-line class-methods-use-this | ||
} // TODO: remove in the next major version. It's not feasible to | ||
// try to use plugins with other frameworks. | ||
// eslint-disable-next-line class-methods-use-this | ||
@@ -87,0 +89,0 @@ |
@@ -895,3 +895,3 @@ /* eslint-disable max-classes-per-file */ | ||
calculateProgress(file, data) { | ||
if (!this.getFile(file.id)) { | ||
if (file == null || !this.getFile(file.id)) { | ||
this.log(`Not setting progress for a file that has been removed: ${file.id}`); | ||
@@ -1785,3 +1785,3 @@ return; | ||
Uppy.VERSION = "2.1.8"; | ||
Uppy.VERSION = "2.1.9"; | ||
module.exports = Uppy; |
{ | ||
"name": "@uppy/core", | ||
"description": "Core module for the extensible JavaScript file upload widget with support for drag&drop, resumable uploads, previews, restrictions, file processing/encoding, remote providers like Instagram, Dropbox, Google Drive, S3 and more :dog:", | ||
"version": "2.1.8", | ||
"version": "2.1.9", | ||
"license": "MIT", | ||
@@ -25,3 +25,3 @@ "main": "lib/index.js", | ||
"@uppy/store-default": "^2.0.3", | ||
"@uppy/utils": "^4.0.6", | ||
"@uppy/utils": "^4.0.7", | ||
"lodash.throttle": "^4.1.1", | ||
@@ -28,0 +28,0 @@ "mime-match": "^1.0.2", |
@@ -78,2 +78,4 @@ /** | ||
// TODO: remove in the next major version. It's not feasible to | ||
// try to use plugins with other frameworks. | ||
// eslint-disable-next-line class-methods-use-this | ||
@@ -80,0 +82,0 @@ update () {} |
@@ -854,3 +854,3 @@ /* eslint-disable max-classes-per-file */ | ||
calculateProgress (file, data) { | ||
if (!this.getFile(file.id)) { | ||
if (file == null || !this.getFile(file.id)) { | ||
this.log(`Not setting progress for a file that has been removed: ${file.id}`) | ||
@@ -857,0 +857,0 @@ return |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
366549
6373
Updated@uppy/utils@^4.0.7