v4.0.0
Immutable
release. Only release title and notes can be modified.
Changed
- Breaking:
@studnicky/retryreplaces theretryInterceptorpipeline with a protectedonRetryScheduled(context)lifecycle hook. SubclassRetryand override it to setcontext.delayMs(using a shippedBackoffStrategy), setcontext.abortto stop retrying, or mutatecontext.stateacross attempts (the hook may be async). Removed: theretryInterceptorconfig field and builder method, theRetryInterceptorTypetype, and theisRetryInterceptorguard. The package no longer depends on@studnicky/pipeline. - Breaking:
@studnicky/batchreplaces thebatchConcurrentfunction and itshooksoptions object with aBatchclass exposing protected lifecycle hooks (onBatchStart,onItemStart,onItemSuccess,onItemError,onItemSettled,onConcurrencySaturated,onBatchComplete). Construct withBatch.create(maxConcurrent?)and subclass to observe. Removed:batchConcurrent,BatchHooksInterface, andBatchOptionsInterface.