Improve ioredis exports to optimize bundle size
Context
To reduce bundle size and improve modularity, the IORedisStore should no longer be exported from the main index.ts of @tsed/ioredis. Instead, it should be exposed via a dedicated export path: @tsed/ioredis/cache.
Objective
Update the exports field of the @tsed/ioredis module so that:
- Consumers must import
IORedisStorefrom@tsed/ioredis/cacheinstead of the package root.
Deliverables
Subtask 1: Prepare for Transition in Ts.ED v8
- Expose
IORedisStorethrough the new export path:@tsed/ioredis/cache(TypeScript & JS). - Deprecate the export from the main
index.tsbut keep it available for backward compatibility. - Add deprecation warnings and update documentation to inform users about the new import path.
Subtask 2: Breaking Change in Ts.ED v9
- Remove
IORedisStoreexport from the package root (index.ts). - Ensure
IORedisStoreis only accessible via@tsed/ioredis/cache. - Update documentation and migration guides to reflect the breaking change.
Acceptance Criteria
- [x]
IORedisStoreis accessible via@tsed/ioredis/cachein v8 (with deprecation notice). - [x]
IORedisStoreis no longer accessible via the package root in v9.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Last task is to update documentation and prepare v9 migration note
Resolved by #3131
FYI @Romakita . It seems like ioredis is deprecated now in favor of @redis/client
https://redis.io/docs/latest/develop/clients/nodejs/migration/
Yes but in this case, I prefer de release a package @tsed/redis instead doing a migration ;)