Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@uppy/[email protected]
Patch Changes
file.datanullable - Because for ghosts it will beundefinedand we don't have any type to distinguish ghosts from other (local) files. This caused a crash, because we didn't check forundefinedeverywhere (when trying to store a blob that wasundefined). This means we have to add null checks in some packagesisRemoteboolean:@uppy/[email protected]
Patch Changes
filenamefor /s3/multipart and /s3/params endpoints@uppy/[email protected]
Patch Changes
isRemoteboolean:@uppy/[email protected]
Patch Changes
file.datanullable - Because for ghosts it will beundefinedand we don't have any type to distinguish ghosts from other (local) files. This caused a crash, because we didn't check forundefinedeverywhere (when trying to store a blob that wasundefined). This means we have to add null checks in some packagesrestore-confirmedfromonUploadStartevent listener tostartUpload, else it would causerestore-confirmedto be triggered even if there is norecoveredStateto recover@uppy/[email protected]
Patch Changes
file.datanullable - Because for ghosts it will beundefinedand we don't have any type to distinguish ghosts from other (local) files. This caused a crash, because we didn't check forundefinedeverywhere (when trying to store a blob that wasundefined). This means we have to add null checks in some packagesisRemoteboolean:@uppy/[email protected]
Patch Changes
file.datanullable - Because for ghosts it will beundefinedand we don't have any type to distinguish ghosts from other (local) files. This caused a crash, because we didn't check forundefinedeverywhere (when trying to store a blob that wasundefined)progress.complete: if there is a post-processing step, set it totrueonce post processing is complete. If not, set it totrueonce upload has finished.Nonexistent uploaderror message if trying to upload a non-existent upload, instead of TypeErrorUppy.upload()- this fixes two bugs:#informAndEmitandthis.emit('error'))checkRequiredMetaFieldscheck errors.isRemoteboolean:namerequired on UppyFile (it is in reality always set)RestrictionErrorsometimes thrown with afileproperty that was not aUppyFile, but aFile. This would happen if someone passed aFileinstead of aMinimalRequiredUppyFileintocore.addFile(which is valid to do according to our API)postprocess-completehandler@uppy/[email protected]
Patch Changes
restore-canceledevent as it was not being used.@uppy/[email protected]
Patch Changes
restore:get-datathat would send a function as its event data (to golden retriever for it to call the function to receive data from it). Add insteadrestore:plugin-data-changedthat publishes data when it changes. This means that old versions of@uppy/transloaditare not compatible with newest version of@uppy/golden-retriever(and vice versa).state-updatehandler to trigger save to local storage and blobs, instead of doing it in various other event handlers (complete,upload-success,file-removed,file-editor:complete,file-added). this way we don't miss any state updates. also simplifies the code a lot. this fixes:anytypes in #restore filesWithBlobscompleteevent only if all files succeeded (no failed files). this allows the user to retry failed files if they get interrupted - fixes Uppy + AWS S3: 'complete' event emitted when uploads have failed causes issues with Golden Retriever #5927, closes fix: @uppy/retriever state reset on reload #5955isGhostfor non-successful files - it doesn't make sense for successfully uploaded files to be ghosted because they're already done. Uppy + Golden Retriever + aws-s3: completed files handled incorrectly on restore #5930upload-successevent handlerhandleFileUploaded: this handler will remove blobs of files that have successfully uploaded. this prevents leaking blobs when an upload with multiple files gets interrupted (but some files have uploaded successfully), because#handleUploadComplete(which normally does the cleanup) doesn't get called untill all files are complete.file-editor:completepotential race condition: it would delete and add at the same time (without first awaiting delete operation)setStatewhen restoringconstructortoload()@uppy/[email protected]
Patch Changes
file.datanullable - Because for ghosts it will beundefinedand we don't have any type to distinguish ghosts from other (local) files. This caused a crash, because we didn't check forundefinedeverywhere (when trying to store a blob that wasundefined). This means we have to add null checks in some packagesisRemoteboolean:@uppy/[email protected]
Patch Changes
getTagFiletocompanionFileToUppyFile@uppy/[email protected]
Patch Changes
file.datanullable - Because for ghosts it will beundefinedand we don't have any type to distinguish ghosts from other (local) files. This caused a crash, because we didn't check forundefinedeverywhere (when trying to store a blob that wasundefined). This means we have to add null checks in some packagesisRemoteboolean:@uppy/[email protected]
Patch Changes
restore:get-datathat would send a function as its event data (to golden retriever for it to call the function to receive data from it). Add insteadrestore:plugin-data-changedthat publishes data when it changes. This means that old versions of@uppy/transloaditare not compatible with newest version of@uppy/golden-retriever(and vice versa).restore:plugin-data-changedwhenever assembly state changesisRemoteboolean:@uppy/[email protected]
Patch Changes
file.datanullable - Because for ghosts it will beundefinedand we don't have any type to distinguish ghosts from other (local) files. This caused a crash, because we didn't check forundefinedeverywhere (when trying to store a blob that wasundefined). This means we have to add null checks in some packagesisRemoteboolean:@uppy/[email protected]
Patch Changes
file.datanullable - Because for ghosts it will beundefinedand we don't have any type to distinguish ghosts from other (local) files. This caused a crash, because we didn't check forundefinedeverywhere (when trying to store a blob that wasundefined). This means we have to add null checks in some packagesisRemoteboolean:@uppy/[email protected]
Patch Changes
file.datanullable - Because for ghosts it will beundefinedand we don't have any type to distinguish ghosts from other (local) files. This caused a crash, because we didn't check forundefinedeverywhere (when trying to store a blob that wasundefined)progress.complete: if there is a post-processing step, set it totrueonce post processing is complete. If not, set it totrueonce upload has finished.Nonexistent uploaderror message if trying to upload a non-existent upload, instead of TypeErrorUppy.upload()- this fixes two bugs:#informAndEmitandthis.emit('error'))checkRequiredMetaFieldscheck errors.isRemoteboolean:namerequired on UppyFile (it is in reality always set)RestrictionErrorsometimes thrown with afileproperty that was not aUppyFile, but aFile. This would happen if someone passed aFileinstead of aMinimalRequiredUppyFileintocore.addFile(which is valid to do according to our API)postprocess-completehandler[email protected]
Patch Changes