Skip to content

Releases

v0.3.1

Choose a tag to compare

@github-actions github-actions released this 21 Nov 12:07
8e86106
  • 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); the PublicVisibility mutator is off and default values in parameter lists are ignored. No src/ changes.

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 15 Oct 18:38
754fa06
  • Add CompiledPipeline::call(..., ?Context $context): every layer obeys a rasuvaeff/context budget (#11). The context is checked before anything starts; retry runs withContext(); a ContextAwareBulkhead caps its slot wait by the budget; the callback receives the context (only when one is given). fallback is skipped only when this call's context is cancelled; its expiry, and everything without a context, still reach the fallback. Rejection::is() stays false for context exceptions.

  • Add ContextOutcome::ignoring(): wraps a breaker isFailure so 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 and rasuvaeff/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.yml workflow: a pushed v* tag on a master commit with green PHP * checks now gets a GitHub Release with its CHANGELOG section. Releases for v0.1.0–v0.2.1 were backfilled.

v0.2.1

Choose a tag to compare

@rasuvaeff rasuvaeff released this 10 Oct 11:21
3c59586
  • Fix Rejection::is() (and so onRejected()) treating a StorageFailure raised while recording the outcome of a callback that already ran as "rejected without an attempt". Only admit and the rejected-path snapshot failures are rejections now; a recordOutcome failure passes through unmapped, so a caller does not re-queue a non-idempotent call that already reached the downstream (#8).

v0.2.0

Choose a tag to compare

@rasuvaeff rasuvaeff released this 10 Oct 11:21
807284d
  • Pipeline::onRejected(\Closure(\Throwable): \Throwable): map a rejection (CircuitOpenException, BulkheadFullException, the breaker's StorageFailure) to a domain exception once per pipeline; runs outermost, before fallback; other exceptions pass through untouched (#3).
  • CompiledPipeline::call() is generic (@template T): Psalm infers the result type from the callback, no @var at call sites (#3).
  • Pipeline::bulkhead() accepts any Rasuvaeff\Bulkhead\Bulkhead and Pipeline::circuitBreaker() any Rasuvaeff\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; RetryExhausted is never a rejection (#5).
  • Requires rasuvaeff/retry ^1.3, rasuvaeff/circuit-breaker ^1.3, rasuvaeff/bulkhead ^1.3, and psr/clock ^1.0.

v0.1.0

Choose a tag to compare

@rasuvaeff rasuvaeff released this 10 Oct 11:21
00b1003
  • Initial release: Pipeline builder → immutable CompiledPipeline composing rasuvaeff/retry, rasuvaeff/circuit-breaker, and rasuvaeff/bulkhead with 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 on CircuitOpenException, the breaker's StorageFailure, 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 fallback receiving 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.