microfleet / ioredis-lock

Node distributed locking using redis
MIT License
26 stars 8 forks source link

Add ioredis v5 support #22

Open ozonep opened 6 months ago

ozonep commented 6 months ago

Fixes https://github.com/microfleet/ioredis-lock/issues/20

Main changes: 1) Updated ioredis dependency to v5 2) Fixed types to work with ioredis v5 3) Replaced bluebird with setTimeout 4) Updated Readme to mention ioredis v5 5) Updated comments that were wrong

P.S. I'm not a pnpm user, so after installing latest pnpm and updating ioredis to v5, pnpm simply decided to ignore pnpm-lock file (due to old lock file version) and updated all the deps together with ioredis... :-/ I hope that's fine.

ozonep commented 5 months ago

@AVVS Since this would require a major version bump, I can also open a PR to replace uuid with Node's randomUUID to make this package dependency-free.