Skip to content

v2.0.0 – Configurable Deadlock Retrier & Logging Overhaul

Latest

Choose a tag to compare

@Ahed92Wakim Ahed92Wakim released this 20 Oct 18:03
· 4 commits to main since this release
96ee0ca

Breaking

  • Replaced DBTransactionRetryHelper::transactionWithRetry() with the new MysqlDeadlocks\RetryHelper\Services\DeadlockTransactionRetrier::runWithRetry(). Update imports/usages accordingly.
  • Package config now lives under config/mysql-deadlock-retry.php; publish it with php artisan vendor:publish --tag=mysql-deadlock-retry-config if you rely on defaults.

Highlights

  • Added first-class configuration for retry counts, base delay, and log file naming, all overridable via env vars.
  • Introduced DeadlockTransactionRetrier service with exponential backoff, jitter, request-aware logging context, and container-exposed transaction labels.
  • Delivered dedicated helpers (DeadlockLogWriter, TraceFormatter, BindingStringifier) for consistent instrumentation and easier extension.
  • Updated README with usage samples, configuration guidance, and package badges.

Maintenance

  • Switched the test suite to Pest and broadened coverage for retry scenarios, logging behaviour, and jitter math.
  • Refreshed GitHub Actions workflow, coding standards config, and development dependencies.

What's Changed

New Contributors

Full Changelog: 1.3.1...2.0.0