All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
This is an npm only release to fix the bundling of the package (7.0.0 was not the production bundle but the dev bundle).
- A file that encountered an error doesn't return
1for its progress anymore. Instead it will return the progress at which it stopped uploading. - If a chunk encountered an error in the upload, it is now automatically retried in the final check.
- Instead of reacting to
chunkErrororfileErrorevents to manually retry such chunks, you should wait for thefailedevent. - The
failedevent indicates that Resumable couldn't upload some files, even in the final check. After that you might instruct the user to retry the upload or try to perform your own retries.
- Instead of reacting to
- Add debug request parameters (#51)
- A
failedevent is now fired when Resumable is finished but some files couldn't be uploaded (#52) - Add
chunkStuckTimeoutoption (#53)
- Retry errored chunks in final check (#52)
When an upload is cancelled, the file list is now completely removed. This was always explained like this in the readme, but the code didn't do it. So this is technically a small bug fix, but for anyone who relied on the previous behavior, it's a breaking change.
- Fix cancellation of uploads (#48)
- The option
prioritizeFirstAndLastChunkswas removed with #46- If you rely on this option, you unfortunately have to stay on an older version for now. We also are happy to get a PR that brings it back based on the current code architecture.
- Add
undefinedas a possible return type for function based onfind(#45)
- Make upload of many files more efficient and robust (#46)
- Remove
prioritizeFirstAndLastChunksoption (#46)
- Fix broken npm package release (no changes since v4.0.2)
- Fix file validation for duplicate files (#39)
- Bump npm dependencies (#40)
- Fix setTimeout callback without proper context (#36)
Unique identifiers by default do not use the relative path anymore. This means that there is no support for files with the same name from different subfolders when dropping a folder directly.
- Unify generation of unique identifier for resumable files (#31)
- (#25) Many class properties and some functions are
privatenow and can't be accessed from the outside anymore. While these are technically breaking changes, there shouldn't have been any use cases for using those properties/functions. This does not affect any of the options you can provide to the Resumable constructor. Those did not change. All usable (not private) functions/properties are documented in the readme. The following class properties/functions are affected:Resumablemain class:- Properties that are not readable and not writable anymore:
clearInput,dragOverClass,fileCategories,defaultFileCategory,fileTypes,fileTypeErrorCallback,_generateUniqueIdentifier,maxFileSize,maxFileSizeErrorCallback,maxFiles,maxFilesErrorCallback,minFileSize,minFileSizeErrorCallback,prioritizeFirstAndLastChunk,fileValidationErrorCallback,simultaneousUploads - Functions that can't be called from the outside anymore:
checkUploadComplete()
- Properties that are not readable and not writable anymore:
ResumableFileclass:- Properties that are not writable anymore, but can still be read:
file,fileName,size,relativePath,uniqueIdentifier,fileCategory,chunks - Functions that can't be called from the outside anymore:
bootstrap()
- Properties that are not writable anymore, but can still be read:
ResumableChunkclass:- Properties that are not readable and not writable anymore:
chunkNumberParameterName,chunkSizeParameterName,currentChunkSizeParameterName,totalSizeParameterName,typeParameterName,identifierParameterName,fileCategoryParameterName,fileNameParameterName,relativePathParameterName,totalChunksParameterName,throttleProgressCallbacks,query,headers,method,uploadMethod,testMethod,parameterNamespace,testChunks,maxChunkRetries,chunkRetryInterval,permanentErrors,withCredentials,xhrTimeout,chunkFormat,setChunkTypeFromFile,target,testTarget - Functions that can't be called from the outside anymore:
setCustomHeaders(),test()
- Properties that are not readable and not writable anymore:
- Add optional verbose logging (#27)
- Let all events from files and chunks bubble up and make them accessible for users (#20)
- Update readme (#24)
- Make class properties and some functions private and add getters for some of the properties (see breaking changes) (#25)
- Using the new
setFileTypesfunction you can now set the allowed file types at runtime (#8) - Files that are added to the Resumable object are now always part of a file category (#11)
- Resumable can still be used as before, without any extra handling of file categories. Internally the "default file category" will be used for all files then.
- Some new construction options were added to support file categories (see docs for full explanation):
fileCategoryParameterNamefileCategoriesdefaultFileCategory
- Many functions now support optionally passing in a file category (always defaulting to the "default file category")
- Calling
handleDropEventdoes not remove thedragOverClassanymore from the event target (#10)- This does not affect the function of
assignDropandunassignDrop, they still handle thedragOverClass
- This does not affect the function of
- Documentation is now up-to-date again (see Readme)
- Licensing texts has been updated to now include the participation of PCT (Point Cloud Technology) in this project
This is the first version after we (Point Cloud Technology) started to maintain and modify this project.
- Removed member
resumableObjfromResumableFileclass (#1) errorCountis not provided to a function passed asfileTypeErrorCallbackanymore (#1)- Some events have been removed (but will be re-added with version 2.2.0, see PR #20) (#1)
- No Internet Explorer support anymore (#2)
- File validators can now be added with the new
addFileValidatorfunction (#1)
- Codebase is now split up into multiple files (instead of defining all classes in one big file) (#1)
- Codebase now uses TypeScript instead of vanilla JavaScript (#1)
This was the last version before we (Point Cloud Technology) forked the original repo. This is the state of the main branch of the original repo before we added any of our changes. The original repo didn't include a CHANGELOG file.