@uppy/core
Advanced tools
Comparing version 3.0.1 to 3.0.2
# @uppy/core | ||
## 3.0.2 | ||
Released: 2022-09-25 | ||
Included in: Uppy v3.1.0 | ||
- @uppy/audio,@uppy/aws-s3-multipart,@uppy/aws-s3,@uppy/box,@uppy/companion-client,@uppy/companion,@uppy/compressor,@uppy/core,@uppy/dashboard,@uppy/drag-drop,@uppy/drop-target,@uppy/dropbox,@uppy/facebook,@uppy/file-input,@uppy/form,@uppy/golden-retriever,@uppy/google-drive,@uppy/image-editor,@uppy/informer,@uppy/instagram,@uppy/locales,@uppy/onedrive,@uppy/progress-bar,@uppy/provider-views,@uppy/react,@uppy/redux-dev-tools,@uppy/remote-sources,@uppy/screen-capture,@uppy/status-bar,@uppy/store-default,@uppy/store-redux,@uppy/svelte,@uppy/thumbnail-generator,@uppy/transloadit,@uppy/tus,@uppy/unsplash,@uppy/url,@uppy/utils,@uppy/vue,@uppy/webcam,@uppy/xhr-upload,@uppy/zoom: add missing entries to changelog for individual packages (Antoine du Hamel / #4092) | ||
- @uppy/core: Fix `Restrictor` counts ghost files against `maxNumberOfFiles` (Andrew McIntee / #4078) | ||
- @uppy/core: fix types (Antoine du Hamel / #4072) | ||
## 3.0.1 | ||
@@ -17,2 +26,3 @@ | ||
- @uppy/core,@uppy/dashboard,@uppy/status-bar: Style tweaks: use all: initial + other resets (Artur Paikin / #3983) | ||
- Switch to ESM | ||
@@ -19,0 +29,0 @@ ## 3.0.0-beta.4 |
@@ -46,6 +46,10 @@ /* eslint-disable max-classes-per-file, class-methods-use-this */ | ||
if (maxNumberOfFiles && files.length + 1 > maxNumberOfFiles) { | ||
throw new RestrictionError(`${this.i18n('youCanOnlyUploadX', { | ||
smart_count: maxNumberOfFiles | ||
})}`); | ||
if (maxNumberOfFiles) { | ||
const nonGhostFiles = files.filter(f => !f.isGhost); | ||
if (nonGhostFiles.length + 1 > maxNumberOfFiles) { | ||
throw new RestrictionError(`${this.i18n('youCanOnlyUploadX', { | ||
smart_count: maxNumberOfFiles | ||
})}`); | ||
} | ||
} | ||
@@ -52,0 +56,0 @@ |
@@ -25,3 +25,3 @@ let _Symbol$for, _Symbol$for2; | ||
const packageJson = { | ||
"version": "3.0.1" | ||
"version": "3.0.2" | ||
}; | ||
@@ -28,0 +28,0 @@ import locale from './locale.js'; |
{ | ||
"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": "3.0.1", | ||
"version": "3.0.2", | ||
"license": "MIT", | ||
@@ -25,4 +25,4 @@ "main": "lib/index.js", | ||
"@transloadit/prettier-bytes": "0.0.9", | ||
"@uppy/store-default": "^3.0.1", | ||
"@uppy/utils": "^5.0.1", | ||
"@uppy/store-default": "^3.0.2", | ||
"@uppy/utils": "^5.0.2", | ||
"lodash.throttle": "^4.1.1", | ||
@@ -29,0 +29,0 @@ "mime-match": "^1.0.2", |
@@ -36,4 +36,7 @@ /* eslint-disable max-classes-per-file, class-methods-use-this */ | ||
if (maxNumberOfFiles && files.length + 1 > maxNumberOfFiles) { | ||
throw new RestrictionError(`${this.i18n('youCanOnlyUploadX', { smart_count: maxNumberOfFiles })}`) | ||
if (maxNumberOfFiles) { | ||
const nonGhostFiles = files.filter(f => !f.isGhost) | ||
if (nonGhostFiles.length + 1 > maxNumberOfFiles) { | ||
throw new RestrictionError(`${this.i18n('youCanOnlyUploadX', { smart_count: maxNumberOfFiles })}`) | ||
} | ||
} | ||
@@ -40,0 +43,0 @@ |
@@ -363,4 +363,4 @@ import * as UppyUtils from '@uppy/utils' | ||
use<TOptions, TInstance extends UIPlugin | BasePlugin>( | ||
pluginClass: new (uppy: this, opts: TOptions) => TInstance, | ||
use<TOptions extends PluginOptions, TInstance extends UIPlugin | BasePlugin<TOptions>>( | ||
pluginClass: new (uppy: this, opts?: TOptions) => TInstance, | ||
opts?: TOptions | ||
@@ -367,0 +367,0 @@ ): this |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
368721
6407
Updated@uppy/store-default@^3.0.2
Updated@uppy/utils@^5.0.2