Skip to content

Releases: utopia-php/lock

0.3.1

Choose a tag to compare

@utopia-php-monorepo utopia-php-monorepo released this 21 Aug 15:14
  • fix(lock): jitter the distributed acquire backoff

Changes: utopia-php/monorepo@lock/0.3.0...lock/0.3.1

0.3.0

Choose a tag to compare

@utopia-php-monorepo utopia-php-monorepo released this 12 Aug 06:55
  • feat(lock): let a lease refresh on another connection

Changes: utopia-php/monorepo@lock/0.2.4...lock/0.3.0

0.2.5

Choose a tag to compare

@abnegate abnegate released this 12 Aug 11:31

Full Changelog: 0.2.4...0.2.5

0.2.4

Choose a tag to compare

@utopia-php-monorepo utopia-php-monorepo released this 05 Aug 09:21
  • feat(lock): expose the lease token so a write can be conditional on it
  • docs: centralize CODE_OF_CONDUCT and CONTRIBUTING at the monorepo root
  • docs: enforce documentation style with Vale
  • ci: redirect mirror issues
  • ci: reuse mirror redirect workflow

Changes: utopia-php/monorepo@lock/0.2.3...lock/0.2.4

0.2.3

Choose a tag to compare

@utopia-php-monorepo utopia-php-monorepo released this 26 Jun 10:51
  • refactor: apply baseline rector to packages that lacked a config
  • build: hoist baseline rector + phpstan configs to the root

Changes: utopia-php/monorepo@lock/0.2.2...lock/0.2.3

0.2.2

Choose a tag to compare

@utopia-php-monorepo utopia-php-monorepo released this 20 Jun 09:51
  • refactor(monorepo): simplify absorb/sync flows (-635 LoC)
  • Pin all workflow actions to SHAs with ratchet, enforce in CI

Changes: utopia-php/monorepo@lock/0.2.1...lock/0.2.2

0.2.1

Choose a tag to compare

@utopia-php-monorepo utopia-php-monorepo released this 10 Jun 15:58

First release cut from the utopia-php monorepo.

0.2.0

Choose a tag to compare

@abnegate abnegate released this 24 Apr 10:48
49317c9

What's New

  • Breaking: lock classes moved from Utopia\Lock\Lock\* to Utopia\Lock\*.
    Users on 0.1.0 must update imports:

    • Utopia\Lock\Lock\MutexUtopia\Lock\Mutex
    • Utopia\Lock\Lock\SemaphoreUtopia\Lock\Semaphore
    • Utopia\Lock\Lock\FileUtopia\Lock\File
    • Utopia\Lock\Lock\DistributedUtopia\Lock\Distributed

    The Utopia\Lock\Lock interface and Utopia\Lock\Exception hierarchy are unchanged.

0.1.0

Choose a tag to compare

@abnegate abnegate released this 24 Apr 10:31
b16171c

What's New

Initial release.

  • Utopia\Lock\Lock interface with acquire, tryAcquire, release, withLock.
  • Utopia\Lock\Lock\Mutex — Swoole coroutine mutex backed by Swoole\Coroutine\Channel(1).
  • Utopia\Lock\Lock\Semaphore — Swoole coroutine semaphore with a configurable permit count.
  • Utopia\Lock\Lock\Fileflock() based file lock (LOCK_EX or LOCK_SH), cooperates with Swoole's runtime hooks.
  • Utopia\Lock\Lock\Distributed — Redis SET NX EX lock with Lua-atomic release and refresh, fractional-second timeouts, optional logger.
  • Utopia\Lock\Exception base exception and Utopia\Lock\Exception\Contention thrown when withLock times out.