files-sdk@3.1.3
Patch Changes
-
def54c4: Bound native bulk deletes by the constructor
signalandtimeoutslice by slice. With either set,delete([...])on an adapter with a native bulk primitive (S3 and the S3-compatible adapters on theaws-sdkclient, Azure, Supabase, UploadThing, FTP, SFTP, the R2 Workers binding) now goes out in slices of up to 1000 keys, one at a time, each under its own timeout, instead of running the whole batch under one timeout.A slice the signal or timeout cuts off ends the delete: its keys and those of the slices not yet sent are reported in
errorsinstead of rejecting the whole call, and the keys earlier slices deleted stay inresults. No further slice reaches the adapter, so a cut-off slice that is still running never overlaps the next. A slice that fails outright after the first reports only its own keys, and the next slice still goes out. A first slice that fails outright still rejects the call, as before. -
def54c4: Batch bulk deletes through the R2 Workers binding (
files-sdk/r2).delete([...])in binding and hybrid mode now passes up to 1000 keys to eachR2Bucket.delete()call instead of making one call per key, with a repeated key sent once. A failed call is reported on every key in its batch, as with the other native bulk deletes.