Skip to content

Choose a tag to compare

@github-actions github-actions released this 03 Nov 04:47
· 4 commits to main since this release
29c04e8

Minor Changes

  • feat: Added PacerProvider component and related hooks (usePacerContext, useDefaultPacerOptions) for React applications to set default configurations for all pacer utilities within a component tree (#54)

    • feat:Added AsyncRetryer class and asyncRetry function with exponential/linear/fixed backoff strategies, jitter support, timeout controls (maxExecutionTime, maxTotalExecutionTime), lifecycle callbacks (onRetry, onSuccess, onError, onLastError, onSettled, onAbort, onExecutionTimeout, onTotalExecutionTimeout), dynamic options, and built-in retry integration via asyncRetryerOptions for all async utilities (AsyncBatcher, AsyncDebouncer, AsyncQueuer, AsyncRateLimiter, AsyncThrottler) (#54)
    • feat: Added getAbortSignal() method to all async utilities (AsyncRetryer, AsyncBatcher, AsyncDebouncer, AsyncQueuer, AsyncRateLimiter, AsyncThrottler) to enable true cancellation of underlying async operations (like fetch requests) when abort() is called
    • feat: Added asyncBatcherOptions, asyncDebouncerOptions, asyncQueuerOptions, asyncRateLimiterOptions, asyncRetryerOptions, asyncThrottlerOptions, debouncerOptions, queuerOptions, rateLimiterOptions, throttlerOptions utility functions for sharing common options between different pacer utilities
    • fix: Fixed async-throtter trailing edge behavior when long executions were awaited.
    • breaking: standardized reset, cancel and abort API behaviors with consistent naming and behavior across all async utilities. Canceling no longer aborts, new dedicated abort method is provided for aborting ongoing executions.

Patch Changes