You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Relax redis peer dependency to allow redis@^5 (in peerOptionalDependencies) #11528
The current peerOptionalDependencies entry for redis in TypeORM v0.3.23 is:
"redis": "^3.1.1 || ^4.0.0"
This blocks installation with [email protected] under strict npm resolution (e.g. npm v7+), even though Redis is only required when using TypeORM's cache feature.
Why this matters
Many users rely on [email protected] directly (e.g. for Streams, Pub/Sub, etc.) and don't use TypeORM's Redis integration at all. Still, installation fails unless using --legacy-peer-deps.
This restriction creates unnecessary friction for setups where TypeORM and Redis are both used — independently.
Suggested fix
Relax the peerOptional range in package.json:
"redis": "^3.1.1 || ^4.0.0 || ^5.0.0"
Or ideally:
"redis": "*"
...since it's an optional peer and not a hard requirement.
Activity
alumni commentedon Jun 15, 2025
Feel free to create a PR that adds v5 to the list of accepted versions.
One thing though: the v5 client introduces some breaking changes: https://github.com/redis/node-redis/releases/tag/redis%405.0.0 - would the
RedisQueryResultCachestill work? The first thing that I see it's different islegacyMode. So the breaking changes would need to be taken care of.fix: replace deprecated fs.rmdir with fs.rm for directory removal
feat: add Redis 5 support to cache implementation
feat(11528): add Redis 5.x support with backward compatibility wite p…
feat(11528): add Redis 5.x support with backward compatibility wite p…