Skip to content

v0.6.0-RC1

Latest
Compare
Choose a tag to compare
@nryanov nryanov released this 31 Jul 20:20
· 103 commits to master since this release
699e5e5

New features

  • Update RateLimiter api (#73): now you can use acquireS methods to get not only boolean flag, but also a limiter state:
  /**
   * @param limit - max available tokens
   * @param remaining - remaining tokens
   * @param isAllowed - is current request allowed
   * @param reset - epoch seconds at which rate limit resets
   * @param resetAfter - total time (in seconds) of when the current rate limit bucket will reset
   * @param key - bucket
   */
  final case class State(
    limit: Long,
    remaining: Long,  // (not including the current acquired token)
    isAllowed: Boolean,
    reset: Long,
    resetAfter: Long,
    key: String
  )

Dependencies update

  • Update lettuce-core to 6.1.4.RELEASE (#61)
  • Update aerospike-client to 5.1.5.1 (#67)
  • Update redisson to 3.16.1 (#70)
  • Update cats-effect to 2.5.2 (#74)
  • Update cats-effect to 3.2.1 (#75)
  • Update zio, zio-streams to 1.0.10 (#72)