Repository navigation
Releases
v0.3.1
- Allow
rasuvaeff/context^0.4 and ^0.5. - Mutation testing now counts code the tests execute but do not name in
#[Covers](infection --threads=max --with-uncovered); thePublicVisibilitymutator is off and default values in parameter lists are ignored. Nosrc/changes.
v0.3.0
-
Add
CompiledPipeline::call(..., ?Context $context): every layer obeys arasuvaeff/contextbudget (#11). The context is checked before anything starts; retry runswithContext(); aContextAwareBulkheadcaps its slot wait by the budget; the callback receives the context (only when one is given).fallbackis skipped only when this call's context is cancelled; its expiry, and everything without a context, still reach the fallback.Rejection::is()staysfalsefor context exceptions. -
Add
ContextOutcome::ignoring(): wraps a breakerisFailureso a context exception is never a failure — the pipeline cannot change your breaker's classification itself. -
Requires
rasuvaeff/bulkhead^1.4,rasuvaeff/context^0.3 andrasuvaeff/retry^1.6.2 (Retry::withContext(), the first retry that installs next to context 0.3). -
CI: experimental PHP 8.6 job (RC, tests only, not required).
-
Add the
release.ymlworkflow: a pushedv*tag on a master commit with greenPHP *checks now gets a GitHub Release with its CHANGELOG section. Releases for v0.1.0–v0.2.1 were backfilled.
v0.2.1
- Fix
Rejection::is()(and soonRejected()) treating aStorageFailureraised while recording the outcome of a callback that already ran as "rejected without an attempt". Onlyadmitand the rejected-pathsnapshotfailures are rejections now; arecordOutcomefailure passes through unmapped, so a caller does not re-queue a non-idempotent call that already reached the downstream (#8).
v0.2.0
Pipeline::onRejected(\Closure(\Throwable): \Throwable): map a rejection (CircuitOpenException,BulkheadFullException, the breaker'sStorageFailure) to a domain exception once per pipeline; runs outermost, beforefallback; other exceptions pass through untouched (#3).CompiledPipeline::call()is generic (@template T): Psalm infers the result type from the callback, no@varat call sites (#3).Pipeline::bulkhead()accepts anyRasuvaeff\Bulkhead\BulkheadandPipeline::circuitBreaker()anyRasuvaeff\CircuitBreaker\CircuitBreakerInterface, so decorators and test stubs can replace the leaves (#4).- New
Rejection::is()/Rejection::retryAfter(): tell "rejected without an attempt" from a downstream failure and get a relative retry hint;RetryExhaustedis never a rejection (#5). - Requires
rasuvaeff/retry^1.3,rasuvaeff/circuit-breaker^1.3,rasuvaeff/bulkhead^1.3, andpsr/clock^1.0.
v0.1.0
- Initial release:
Pipelinebuilder → immutableCompiledPipelinecomposingrasuvaeff/retry,rasuvaeff/circuit-breaker, andrasuvaeff/bulkheadwith the correct nesting order (retry(circuitBreaker(bulkhead(callback)))— bulkhead innermost, slot held only while the callback runs) and the exception glue built in (retry stops onCircuitOpenException, the breaker'sStorageFailure, and — by default —BulkheadFullException). ->breakerOutsideRetry(): the whole retry loop as one breaker outcome (documented trade-off vs the per-attempt default).->retryOnBulkheadFull(): opt back into retrying after saturation when a slot should free within the backoff window.- Optional outermost
fallbackreceiving the terminal exception of whichever layer gave up; terminal exceptions of the leaves surface unchanged. - Every layer optional; an empty pipeline is a plain call.