Skip to content

v4.0.0

Choose a tag to compare

@github-actions github-actions released this 28 Jun 22:28
Immutable release. Only release title and notes can be modified.
5889ac7

Changed

  • Breaking: @studnicky/retry replaces the retryInterceptor pipeline with a protected onRetryScheduled(context) lifecycle hook. Subclass Retry and override it to set context.delayMs (using a shipped BackoffStrategy), set context.abort to stop retrying, or mutate context.state across attempts (the hook may be async). Removed: the retryInterceptor config field and builder method, the RetryInterceptorType type, and the isRetryInterceptor guard. The package no longer depends on @studnicky/pipeline.
  • Breaking: @studnicky/batch replaces the batchConcurrent function and its hooks options object with a Batch class exposing protected lifecycle hooks (onBatchStart, onItemStart, onItemSuccess, onItemError, onItemSettled, onConcurrencySaturated, onBatchComplete). Construct with Batch.create(maxConcurrent?) and subclass to observe. Removed: batchConcurrent, BatchHooksInterface, and BatchOptionsInterface.