|
1 | | -# 3.0.0 |
2 | | - |
3 | | -## Breaking Changes |
4 | | - |
5 | | -### Events |
6 | | - - Events are distincts from hooks. |
7 | | - - Recognized events and hooks are now lower-snake-case (case-sensitive). |
8 | | - - Hooks are "file-added", "files-added", "files-submitted". "filter-file" is a filtering hook. |
9 | | - - Events are passed a native CustomEvent. IE: |
10 | | - v2: `flow.on('fileRemoved', (file) => { ... });` |
11 | | - v3: `flow.on('file-removed', ({detail: [file]}) => { ... });` |
12 | | - |
13 | | -### Other |
14 | | - - FlowFile does not run bootstrap() upon instanciation. This must be done manually (or rely on *addFile* functions). |
15 | | - |
16 | | -# 2.0.0 |
17 | | - |
18 | | -## Features |
19 | | - |
20 | | - - All code follows Google javascript style guide |
21 | | - - Target url can be provided with query string |
22 | | - - Events **fileAdded** and **filesAdded** can prevent file from being added to $.files list by |
23 | | - returning false. Custom validators can be ran here. |
24 | | - - **ResumableFile.getType()** and **ResumableFile.getExtension()** helper methods added. Can be |
25 | | - used for custom validation. |
26 | | - - **fileProgress** and **progress** events are always asynchronous. |
27 | | - - **ResumableFile.pause()** and **ResumableFile.resume()** methods for single file pausing and |
28 | | - resuming. |
29 | | - - **filesSubmitted** event added. Can be used to start file upload. Event is thrown then files are |
30 | | - added to queue. |
31 | | - - **progressCallbacksInterval** parameter added. Minimum interval between callbacks execution in |
32 | | - milliseconds. |
33 | | - - **averageSpeed** and **currentSpeed** parameters added for `ResumableFile`. These params |
34 | | - accuracy can be adjusted with `speedSmoothingFactor` and `progressCallbacksInterval` parameters. |
35 | | - - **timeRemaining** method added for `ResumableFile`. Returns remaining time to upload in seconds. Accuracy is based on average speed. |
36 | | - - **sizeUploaded** method added for `ResumableFile`. Returns size uploaded in bytes. |
37 | | - - **singleFile** parameter added. Then enabled, uploaded file will replace current one. |
38 | | - |
39 | | -## Breaking Changes |
40 | | - - **Resumable** was renamed to **Flow** |
41 | | - - **ResumableFile.fileName** parameter renamed to **ResumableFile.name** |
42 | | - - **Resumable.getOpt** method dropped, use Resumable.opts parameter instead if needed. |
43 | | - - **Resumable.maxFiles**, **Resumable.minFileSize**, **Resumable.maxFileSize**, |
44 | | - **Resumable.fileType** validators dropped. Use **fileAdded** and **filesAdded** events for |
45 | | - custom validation. |
46 | | - - **fileProgress** and **progress** events are not thrown on ResumableFile.abort() and ResumableFile.cancel() methods execution. |
47 | | - - **cancel** event was removed. Event was always called after **Resumable.cancel()** function. |
48 | | - - **fileAdded**, **filesAdded** events are thrown before file is added to upload queue. This means |
49 | | - that calling **Resumable.upload()** method in these events will not start uploading current |
50 | | - files. To start upload use **filesSubmitted** event instead. |
51 | | - - **throttleProgressCallbacks** parameter was replaced with **progressCallbacksInterval** and it |
52 | | - is now measured in milliseconds. |
| 1 | +# 3.0.0 |
| 2 | + |
| 3 | +## Breaking Changes |
| 4 | + |
| 5 | +### Events |
| 6 | + - Events are distincts from hooks. |
| 7 | + - Recognized events and hooks are now lower-snake-case (case-sensitive). |
| 8 | + - Hooks are "file-added", "files-added", "files-submitted". "filter-file" is a filtering hook. |
| 9 | + - Events are passed a native CustomEvent. IE: |
| 10 | + v2: `flow.on('fileRemoved', (file) => { ... });` |
| 11 | + v3: `flow.on('file-removed', ({detail: [file]}) => { ... });` |
| 12 | + |
| 13 | +### Other |
| 14 | + - FlowFile does not run bootstrap() upon instanciation. This must be done manually (or rely on *addFile* functions). |
| 15 | + |
| 16 | +# 2.0.0 |
| 17 | + |
| 18 | +## Features |
| 19 | + |
| 20 | + - All code follows Google javascript style guide |
| 21 | + - Target url can be provided with query string |
| 22 | + - Events **fileAdded** and **filesAdded** can prevent file from being added to $.files list by |
| 23 | + returning false. Custom validators can be ran here. |
| 24 | + - **ResumableFile.getType()** and **ResumableFile.getExtension()** helper methods added. Can be |
| 25 | + used for custom validation. |
| 26 | + - **fileProgress** and **progress** events are always asynchronous. |
| 27 | + - **ResumableFile.pause()** and **ResumableFile.resume()** methods for single file pausing and |
| 28 | + resuming. |
| 29 | + - **filesSubmitted** event added. Can be used to start file upload. Event is thrown then files are |
| 30 | + added to queue. |
| 31 | + - **progressCallbacksInterval** parameter added. Minimum interval between callbacks execution in |
| 32 | + milliseconds. |
| 33 | + - **averageSpeed** and **currentSpeed** parameters added for `ResumableFile`. These params |
| 34 | + accuracy can be adjusted with `speedSmoothingFactor` and `progressCallbacksInterval` parameters. |
| 35 | + - **timeRemaining** method added for `ResumableFile`. Returns remaining time to upload in seconds. Accuracy is based on average speed. |
| 36 | + - **sizeUploaded** method added for `ResumableFile`. Returns size uploaded in bytes. |
| 37 | + - **singleFile** parameter added. Then enabled, uploaded file will replace current one. |
| 38 | + |
| 39 | +## Breaking Changes |
| 40 | + - **Resumable** was renamed to **Flow** |
| 41 | + - **ResumableFile.fileName** parameter renamed to **ResumableFile.name** |
| 42 | + - **Resumable.getOpt** method dropped, use Resumable.opts parameter instead if needed. |
| 43 | + - **Resumable.maxFiles**, **Resumable.minFileSize**, **Resumable.maxFileSize**, |
| 44 | + **Resumable.fileType** validators dropped. Use **fileAdded** and **filesAdded** events for |
| 45 | + custom validation. |
| 46 | + - **fileProgress** and **progress** events are not thrown on ResumableFile.abort() and ResumableFile.cancel() methods execution. |
| 47 | + - **cancel** event was removed. Event was always called after **Resumable.cancel()** function. |
| 48 | + - **fileAdded**, **filesAdded** events are thrown before file is added to upload queue. This means |
| 49 | + that calling **Resumable.upload()** method in these events will not start uploading current |
| 50 | + files. To start upload use **filesSubmitted** event instead. |
| 51 | + - **throttleProgressCallbacks** parameter was replaced with **progressCallbacksInterval** and it |
| 52 | + is now measured in milliseconds. |
0 commit comments