csvalpha / amber-api

https://csvalpha.nl
MIT License
4 stars 4 forks source link

chore(deps): update dependency redis to v5 #380

Open renovate[bot] opened 1 year ago

renovate[bot] commented 1 year ago

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
redis (changelog) '~> 4.8', '>= 4.8.1' -> '~> 5.3' age adoption passing confidence

Release Notes

redis/redis-rb (redis) ### [`v5.3.0`](https://redirect.github.com/redis/redis-rb/blob/HEAD/CHANGELOG.md#530) [Compare Source](https://redirect.github.com/redis/redis-rb/compare/v5.2.0...v5.3.0) - Fix the return type of `hgetall` when used inside a `multi` transaction which is itself inside a pipeline. ### [`v5.2.0`](https://redirect.github.com/redis/redis-rb/blob/HEAD/CHANGELOG.md#520) [Compare Source](https://redirect.github.com/redis/redis-rb/compare/v5.1.0...v5.2.0) - Now require Ruby 2.6 because `redis-client` does. - Eagerly close subscribed connection when using `subscribe_with_timeout`. See [#​1259](https://redirect.github.com/redis/redis-rb/issues/1259). - Add `exception` flag in `pipelined` allowing failed commands to be returned in the result array when set to `false`. ### [`v5.1.0`](https://redirect.github.com/redis/redis-rb/blob/HEAD/CHANGELOG.md#510) [Compare Source](https://redirect.github.com/redis/redis-rb/compare/v5.0.8...v5.1.0) - `multi` now accept a `watch` keyword argument like `redis-client`. See [#​1236](https://redirect.github.com/redis/redis-rb/issues/1236). - `bitcount` and `bitpos` now accept a `scale:` argument on Redis 7+. See [#​1242](https://redirect.github.com/redis/redis-rb/issues/1242) - Added `expiretime` and `pexpiretime`. See [#​1248](https://redirect.github.com/redis/redis-rb/issues/1248). ### [`v5.0.8`](https://redirect.github.com/redis/redis-rb/blob/HEAD/CHANGELOG.md#508) [Compare Source](https://redirect.github.com/redis/redis-rb/compare/v5.0.7...v5.0.8) - Fix `Redis#without_reconnect` for sentinel clients. Fix [#​1212](https://redirect.github.com/redis/redis-rb/issues/1212). - Add `sentinel_username`, `sentinel_password` for sentinel clients. Bump `redis-client` to `>=0.17.0`. See [#​1213](https://redirect.github.com/redis/redis-rb/issues/1213) ### [`v5.0.7`](https://redirect.github.com/redis/redis-rb/blob/HEAD/CHANGELOG.md#507) [Compare Source](https://redirect.github.com/redis/redis-rb/compare/v5.0.6...v5.0.7) - Fix compatibility with `redis-client 0.15.0` when using Redis Sentinel. Fix [#​1209](https://redirect.github.com/redis/redis-rb/issues/1209). ### [`v5.0.6`](https://redirect.github.com/redis/redis-rb/blob/HEAD/CHANGELOG.md#506) [Compare Source](https://redirect.github.com/redis/redis-rb/compare/v5.0.5...v5.0.6) - Wait for an extra `config.read_timeout` in blocking commands rather than an arbitrary 100ms. See [#​1175](https://redirect.github.com/redis/redis-rb/issues/1175). - Treat ReadOnlyError as ConnectionError. See [#​1168](https://redirect.github.com/redis/redis-rb/issues/1168). ### [`v5.0.5`](https://redirect.github.com/redis/redis-rb/blob/HEAD/CHANGELOG.md#505) [Compare Source](https://redirect.github.com/redis/redis-rb/compare/v5.0.4...v5.0.5) - Fix automatic disconnection when the process was forked. See [#​1157](https://redirect.github.com/redis/redis-rb/issues/1157). ### [`v5.0.4`](https://redirect.github.com/redis/redis-rb/blob/HEAD/CHANGELOG.md#504) [Compare Source](https://redirect.github.com/redis/redis-rb/compare/v5.0.3...v5.0.4) - Cast `ttl` argument to integer in `expire`, `setex` and a few others. ### [`v5.0.3`](https://redirect.github.com/redis/redis-rb/blob/HEAD/CHANGELOG.md#503) [Compare Source](https://redirect.github.com/redis/redis-rb/compare/v5.0.2...v5.0.3) - Add `OutOfMemoryError` as a subclass of `CommandError` ### [`v5.0.2`](https://redirect.github.com/redis/redis-rb/blob/HEAD/CHANGELOG.md#502) [Compare Source](https://redirect.github.com/redis/redis-rb/compare/v5.0.1...v5.0.2) - Fix `Redis#close` to properly reset the fork protection check. ### [`v5.0.1`](https://redirect.github.com/redis/redis-rb/blob/HEAD/CHANGELOG.md#501) [Compare Source](https://redirect.github.com/redis/redis-rb/compare/v5.0.0...v5.0.1) - Added a fake `Redis::Connections.drivers` method to be compatible with older sidekiq versions. ### [`v5.0.0`](https://redirect.github.com/redis/redis-rb/blob/HEAD/CHANGELOG.md#500) [Compare Source](https://redirect.github.com/redis/redis-rb/compare/v4.8.1...v5.0.0) - Default client timeout decreased from 5 seconds to 1 second. - Eagerly and strictly cast Integer and Float parameters. - Allow to call `subscribe`, `unsubscribe`, `psubscribe` and `punsubscribe` from a subscribed client. See [#​1131](https://redirect.github.com/redis/redis-rb/issues/1131). - Use `MD5` for hashing server nodes in `Redis::Distributed`. This should improve keys distribution among servers. See [#​1089](https://redirect.github.com/redis/redis-rb/issues/1089). - Changed `sadd` and `srem` to now always return an Integer. - Added `sadd?` and `srem?` which always return a Boolean. - Added support for `IDLE` paramter in `xpending`. - Cluster support has been moved to a `redis-clustering` companion gem. - `select` no longer record the current database. If the client has to reconnect after `select` was used, it will reconnect to the original database. - Better support Float timeout in blocking commands. See [#​977](https://redirect.github.com/redis/redis-rb/issues/977). - `Redis.new` will now raise an error if provided unknown options. - Removed positional timeout in blocking commands (`BLPOP`, etc). Timeout now must be passed as an option: `r.blpop("key", timeout: 2.5)` - Removed `logger` option. - Removed `reconnect_delay_max` and `reconnect_delay`, you can pass precise sleep durations to `reconnect_attempts` instead. - Require Ruby 2.5+. - Removed the deprecated `queue` and `commit` methods. Use `pipelined` instead. - Removed the deprecated `Redis::Future#==`. - Removed the deprecated `pipelined` and `multi` signature. Commands now MUST be called on the block argument, not the original redis instance. - Removed `Redis.current`. You shouldn't assume there is a single global Redis connection, use a connection pool instead, and libaries using Redis should accept a Redis instance (or connection pool) as a config. E.g. `MyLibrary.redis = Redis.new(...)`. - Removed the `synchrony` driver. - Removed `Redis.exists_returns_integer`, it's now always enabled.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR was generated by Mend Renovate. View the repository job log.

codecov[bot] commented 3 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 99.92%. Comparing base (3b8686e) to head (4469674).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## staging #380 +/- ## ======================================== Coverage 99.92% 99.92% ======================================== Files 203 203 Lines 2708 2708 ======================================== Hits 2706 2706 Misses 2 2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

renovate[bot] commented 1 week ago

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

The artifact failure details are included below:

File name: Gemfile.lock
Fetching gem metadata from https://rubygems.org/........
Resolving dependencies...

Could not find compatible versions

Because sidekiq >= 6.5.6, < 7.0.0.beta1 depends on redis >= 4.5.0, < 5
  and Gemfile depends on redis ~> 5.3,
  sidekiq >= 6.5.6, < 7.0.0.beta1 cannot be used.
So, because Gemfile depends on sidekiq >= 6.5.12, < 7.A,
  version solving has failed.
lodewiges commented 1 week ago

requires https://github.com/csvalpha/amber-api/pull/445