Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use peer dependency for Redis and cast the object to prevent conflict #129

Merged
merged 5 commits into from
Dec 5, 2024

Conversation

ytkimirti
Copy link
Contributor

@ytkimirti ytkimirti commented Oct 28, 2024

We decided to cast the incoming redis object for the config after problems with #125.

The config redis client is just a shell that has only 2 commands. So there are no conflicts when providing your own redis client in the config.

The client object is then cast into the original redis client internally.

Copy link

vercel bot commented Oct 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ratelimit-with-vercel-kv ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 3, 2024 8:20am

@ytkimirti ytkimirti changed the title fix: use peer dep instead Use peer dependency for Redis and cast the object to prevent conflict Dec 3, 2024
@ytkimirti ytkimirti marked this pull request as ready for review December 4, 2024 12:14
@CahidArda CahidArda merged commit 942fb8d into main Dec 5, 2024
7 of 8 checks passed
@CahidArda CahidArda deleted the use-peer-dep branch December 5, 2024 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants