fakeredis breaking changes
Updated December 4, 2026
On this page
Latest version 2.41.0, released November 23, 2026. Source repository
Its 2.37.1 release requires Python 3.10 or later. Python end of life dates.
fakeredis 2.40.0 breaking changes
- Signature changed
fakeredis.FakeServer.remember_scan_cursor
Was def remember_scan_cursor(self, cursor_key: tuple[Any, int], last_seen: Any) -> None; now def remember_scan_cursor(self, cursor_key: tuple[Any, int], resume_at: tuple[list[Any], int]) -> None. pypi.org - Signature changed
fakeredis.FakeServer.scan_cursors
Was scan_cursors: OrderedDict[tuple[Any, int], Any]; now scan_cursors: OrderedDict[tuple[Any, int], tuple[list[Any], int]]. pypi.org - Signature changed
fakeredis.model.AccessControlList.validate_command
Was def validate_command(self, username: bytes, client_info: bytes, fields: list[bytes]) -> None; now def validate_command(self, username: bytes, client_info: ClientInfo, fields: list[bytes]) -> None. pypi.org - Signature changed
fakeredis.model.XStream.irange
Was def irange(self, start: StreamRangeTest, stop: StreamRangeTest, reverse: bool = False) -> list[Any]; now def irange(self, start: StreamRangeTest, stop: StreamRangeTest, reverse: bool = False, count: int | None = None) -> list[Any]. pypi.org
fakeredis 2.39.0 breaking changes
- Removed
fakeredis.aioredis.async_timeout
fakeredis.aioredis.async_timeout was removed in fakeredis 2.39.0 pypi.org - Removed
fakeredis.aioredis.build_client_kwds
fakeredis.aioredis.build_client_kwds was removed in fakeredis 2.39.0 pypi.org - Removed
fakeredis.aioredis.FakeBaseConnectionMixin
fakeredis.aioredis.FakeBaseConnectionMixin was removed in fakeredis 2.39.0 pypi.org - Removed
fakeredis.aioredis.FakeServer
fakeredis.aioredis.FakeServer was removed in fakeredis 2.39.0 pypi.org - Removed
fakeredis.aioredis.lib_version
fakeredis.aioredis.lib_version was removed in fakeredis 2.39.0 pypi.org - Removed
fakeredis.aioredis.msgs
fakeredis.aioredis.msgs was removed in fakeredis 2.39.0 pypi.org - Removed
fakeredis.aioredis.RaiseErrorTypes
fakeredis.aioredis.RaiseErrorTypes was removed in fakeredis 2.39.0 pypi.org - Removed
fakeredis.aioredis.ServerType
fakeredis.aioredis.ServerType was removed in fakeredis 2.39.0 pypi.org - Removed
fakeredis.aioredis.SimpleError
fakeredis.aioredis.SimpleError was removed in fakeredis 2.39.0 pypi.org - Removed
fakeredis.aioredis.VersionType
fakeredis.aioredis.VersionType was removed in fakeredis 2.39.0 pypi.org
And 31 more in this version. Sign up to see every change
fakeredis 2.38.0 breaking changes
- Removed
fakeredis.commands_mixins.streams_mixin.StreamEntryKey
fakeredis.commands_mixins.streams_mixin.StreamEntryKey was removed in fakeredis 2.38.0 pypi.org - Removed
LCS
When emulating Dragonfly, fakeredis no longer provides LCS at all, so code calling it there will fail. github.com - Removed
redis.setresp
When emulating Dragonfly, fakeredis no longer exposes redis.setresp, so scripts calling it there will fail. github.com - Behavior changed
Scripts run with Lua 5.4 behaviour under Dragonfly emulation, including non-integral numbers returned as doubles and Redis 6-style error wrapping. github.com - Behavior changed
JSON paths under Dragonfly emulation no longer accept filter expressions, and legacy paths are wrapped like JSONPath. github.com - Behavior changed
COPY
When emulating Dragonfly, COPY no longer accepts a DB option. github.com - Behavior changed
GEORADIUS
GEORADIUS replies are now in geohash order instead of insertion order when unsorted, so code relying on the old order may see different results. github.com - Behavior changed
redis.call
Inside Lua scripts, redis.call now returns RESP2 replies whatever protocol the client negotiated, matching real Redis. github.com - Behavior changed
SORT
When emulating Dragonfly, SORT no longer supports -> hash-field patterns and no longer applies Redis' weight tie-break. github.com - Signature changed
fakeredis.aioredis.AsyncFakeSocket.bitfield
Was def bitfield(self, key: CommandItem, *args: bytes) -> list[int | None]; now def bitfield(self, key: CommandItem, *args: bytes) -> list[int | None] | None. pypi.org
And 11 more in this version. Sign up to see every change
fakeredis 2.37.1 breaking changes
- Removed
Python 3.9 is no longer supported; use Python 3.10 or later. github.com - Behavior changed
LTRIM
LTRIM now signals the key as modified on a no-op trim, so a WATCH on that key aborts the following transaction. github.com - Behavior changed
VSIM
The FILTER-EF option is now applied, so filtered VSIM queries can return fewer matches than before. github.com - Behavior changed
XPENDING
XPENDING on a missing key or unknown group now raises NOGROUP instead of returning 0 or an empty array, and no longer creates the key. github.com - Behavior changed
ZPOPMAX
Without a count, ZPOPMAX in RESP3 now returns a flat [member, score] pair instead of an array of pairs; code expecting the old shape must change. github.com - Behavior changed
ZPOPMIN
Without a count, ZPOPMIN in RESP3 now returns a flat [member, score] pair instead of an array of pairs; code expecting the old shape must change. github.com - Signature changed
fakeredis.aioredis.AsyncFakeSocket.zpopmax
Was def zpopmax(self, key: CommandItem, count: int = 1) -> List[List[bytes]]; now def zpopmax(self, key: CommandItem, count: int | None = None) -> list[Any]. pypi.org - Signature changed
fakeredis.aioredis.AsyncFakeSocket.zpopmin
Was def zpopmin(self, key: CommandItem, count: int = 1) -> List[List[bytes]]; now def zpopmin(self, key: CommandItem, count: int | None = None) -> list[Any]. pypi.org - Signature changed
fakeredis.commands_mixins.generic_mixin.BeforeAny.__eq__
Was def __eq__(self, other: Any) -> bool; now def __eq__(self, other: object) -> bool. pypi.org - Signature changed
fakeredis.commands_mixins.sortedset_mixin.AfterAny.__eq__
Was def __eq__(self, other: Any) -> bool; now def __eq__(self, other: object) -> bool. pypi.org
And 2 more in this version. Sign up to see every change
fakeredis 2.37.0 breaking changes
- Removed
fakeredis.commands_mixins.geo_mixin.UNIT_TO_M
fakeredis.commands_mixins.geo_mixin.UNIT_TO_M was removed in fakeredis 2.37.0 pypi.org - Behavior changed
GEOADD
GEOADD now raises an error for longitude/latitude pairs outside the valid range, which it previously accepted. Check coordinates before calling. github.com - Behavior changed
HEXPIRE
Calls passing a negative expiration time to HEXPIRE now raise an error. Pass a non-negative value. github.com - Behavior changed
HPEXPIRE
Calls passing a negative expiration time to HPEXPIRE now raise an error. Pass a non-negative value. github.com - Behavior changed
XNACK
XNACK now follows Redis 8.8 behavior, which may change results for existing code. Review XNACK calls against Redis 8.8. github.com - Signature changed
fakeredis.commands_mixins.list_mixin.Timeout.decode
Was @classmethod def decode(cls, value: bytes, allow_leading_whitespace: bool = False, allow_erange: bool = False, allow_empty: bool = False, crop_null: bool = False, decode_error: Optional[str] = None) -> float; now @classmethod def... pypi.org
fakeredis 2.36.2 breaking changes
- Removed
fakeredis.aioredis.FakeRedisMixin.__init__
FakeRedisMixin() was removed in fakeredis 2.36.2 pypi.org - Removed
fakeredis.aioredis.FakeRedisMixin.from_url
FakeRedisMixin.from_url was removed in fakeredis 2.36.2 pypi.org - Behavior changed
SINTERCARD
SINTERCARD now rejects a negative LIMIT value, so code that passed a negative LIMIT will get an error and must pass a non-negative LIMIT. github.com - Behavior changed
ZINTERCARD
ZINTERCARD now rejects a negative LIMIT value, so code that passed a negative LIMIT will get an error and must pass a non-negative LIMIT. github.com - Signature changed
fakeredis.aioredis.FakeRedis
Was class FakeRedis(FakeRedisMixin, redis_async.Redis); now class FakeRedis(FakeAsyncRedisMixin, redis_async.Redis). pypi.org - Signature changed
fakeredis.aioredis.FakeRedis.from_url
Was @classmethod def from_url(cls, url: str, **kwargs: Any) -> FakeRedisMixin; now @classmethod def from_url(cls, url: str, **kwargs: Any) -> 'FakeAsyncRedisMixin'. pypi.org - Signature changed
fakeredis.aioredis.FakeRedisMixin
Was class FakeRedisMixin; now FakeRedisMixin. pypi.org - Signature changed
fakeredis.FakeAsyncRedis
Was class FakeRedis(FakeRedisMixin, redis_async.Redis); now class FakeRedis(FakeAsyncRedisMixin, redis_async.Redis). pypi.org - Signature changed
fakeredis.FakeRedisConnection.__init__
Was def __init__(*args: Any, **kwargs: Any) -> None; now def __init__(self, *args: Any, version: VersionType = (7, 0), server_type: ServerType = 'redis', server: Optional[FakeServer] = None, client_class: Type[redis.Redis] = redis.Redis... pypi.org
Older versions
4 older versions, each with its first changes. Sign up to see every change
Show 4 older versions
fakeredis 2.36.1 breaking changes
- Removed
fakeredis.aioredis.convert_args_kwargs
fakeredis.aioredis.convert_args_kwargs was removed in fakeredis 2.36.1 pypi.org - Behavior changed
Database
Database now uses identity-based __hash__ and __eq__ instead of the previous unstable hash. Code that compares or hashes Database objects may see different results. github.com
And 3 more in this version.
fakeredis 2.36.0 breaking changes
- Removed
fakeredis.aioredis.Self
fakeredis.aioredis.Self was removed in fakeredis 2.36.0 pypi.org - Removed
fakeredis.commands_mixins.acl_mixin.ClientInfo
fakeredis.commands_mixins.acl_mixin.ClientInfo was removed in fakeredis 2.36.0 pypi.org
And 97 more in this version.
fakeredis 2.0.0 breaking changes
- Removed
aioredis is no longer supported separately from redis-py; this applies to redis-py versions 4.1.2 and below. Use redis-py's built-in asyncio support instead. github.com - Removed
fakeredis.aioredis.create_connection
fakeredis.aioredis.create_connection was removed in fakeredis 2.0.0 pypi.org
And 11 more in this version.
fakeredis 1.0 breaking changes
- Removed
fakeredis.basestring
fakeredis.basestring was removed in fakeredis 1.0 pypi.org - Removed
fakeredis.byte_to_int
fakeredis.byte_to_int was removed in fakeredis 1.0 pypi.org
And 149 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.