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

fix(community): bump @upstash/ratelimit version #6832

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

CahidArda
Copy link
Contributor

Bumping Upstash Ratelimit version to benefit from the number of improvements we have made.

Copy link

vercel bot commented Sep 17, 2024

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

Name Status Preview Comments Updated (UTC)
langchainjs-docs ✅ Ready (Inspect) Visit Preview Sep 20, 2024 6:45pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
langchainjs-api-refs ⬜️ Ignored (Inspect) Sep 20, 2024 6:45pm

@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. auto:improvement Medium size change to existing code to handle new use-cases labels Sep 17, 2024
@jacoblee93
Copy link
Collaborator

jacoblee93 commented Sep 17, 2024

Flagging that this will break existing users for people using yarn (which doesn't automatically install peer deps) but your call

@@ -148,7 +148,7 @@ class UpstashRatelimitHandler extends BaseCallbackHandler {
_name?: string
): Promise<void> {
if (this.tokenRatelimit) {
const remaining = await this.tokenRatelimit.getRemaining(this.identifier);
const { remaining } = await this.tokenRatelimit.getRemaining(this.identifier);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May be some way to make this backwards compatible and allow "^1.1.3 || ^2.0.3" in deps above

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed the code so that it works in both versions.

I didn't understand how the package.json should be updated, can you explain a bit more?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@CahidArda I just pushed up a commit allowing those versions

@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. and removed size:XS This PR changes 0-9 lines, ignoring generated files. labels Sep 19, 2024
@bracesproul bracesproul changed the title Bump upstash ratelimit fix(community): bump @upstash/ratelimit version Sep 20, 2024
@dosubot dosubot bot added the lgtm PRs that are ready to be merged as-is label Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto:improvement Medium size change to existing code to handle new use-cases lgtm PRs that are ready to be merged as-is size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants