1.8.0 • Published 3 months ago

@rpldy/abort v1.8.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

Abort

Adds the capability to abort/cancel running & pending uploads

This is an internal package the uploader consumes.

Abort exposes an UploaderEnhancer that adds the abort methods to the Uploader Options.

The best place to get started is at our: React-Uploady Documentation Website

Installation

#Yarn:
  $ yarn add @rpldy/abort

#NPM:
  $ npm i @rpldy/abort

Normal vs. Fast Abort

When the number of pending/active uploads is less than the configured threshold (fastAbortThreshold param) or when the threshold is turned off (equals 0), normal abort flow will be used.

In case the threshold is configured and the item count is equal or larger, the fast abort flow will be used.

For All Abort, the threshold is compared against the total number of pending/active items For Batch Abort, the threshold is compared against the number of pending/active items in the batch.

In both cases, finished items are ignored in the comparison.

Normal

Normal flow means that every item whether its already uploading or still pending will be individually aborted and an "ITEM_ABORT" event will be fired. For abort all, "BATCH_ABORT" event will also be fired respectively.

Fast

Fast flow means that only active uploads are cancelled (typically very few as concurrent count is set to 1 by default).

Pending items are ignored and are simply removed from the queue by the uploader. For abort all, "BATCH_ABORT" events will not be fired and no "ITEM_ABORT" event will be fired for pending items.

1.8.0

3 months ago

1.8.0-rc.0

3 months ago

1.7.1

5 months ago

1.7.0

5 months ago

1.7.0-rc.1

5 months ago

1.7.0-rc.0

5 months ago

1.6.1

6 months ago

1.6.0

7 months ago

1.5.0

8 months ago

1.6.1-rc.2

6 months ago

1.6.1-rc.0

6 months ago

1.6.1-rc.1

6 months ago

1.6.0-rc.0

7 months ago

1.5.0-rc.0

8 months ago

1.5.0-rc.1

8 months ago

1.5.0-rc.2

8 months ago

1.5.0-rc.3

8 months ago

1.5.0-rc.4

8 months ago

1.5.0-rc.5

8 months ago

1.4.2-alpha.0

1 year ago

1.4.1

1 year ago

1.4.1-rc.0

1 year ago

1.4.0

1 year ago

1.4.0-rc.0

1 year ago

1.4.0-rc.1

1 year ago

1.3.1

1 year ago

1.2.0

2 years ago

1.3.0-rc.2

2 years ago

1.3.0-rc.3

1 year ago

1.3.0-rc.0

2 years ago

1.3.0-rc.1

2 years ago

1.3.0

1 year ago

1.1.0

2 years ago

1.1.0-rc.1

2 years ago

1.1.0-rc.0

2 years ago