Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Nov 24, 2025

Bumps gofr.dev from 1.47.0 to 1.48.0.

Release notes

Sourced from gofr.dev's releases.

v1.48.0

Release v1.48.0

🚀 New Features

🔹 Unified Token-Bucket Rate Limiter for HTTP Clients

GoFr introduces a brand-new, pluggable rate limiter that works across all HTTP client calls.

Key Highlights:

  • Supports in-memory and Redis-backed stores
  • Simple drop-in integration via RateLimiterConfig or AddOption
  • Integer-only token bucket with burst support
  • Background cleanup for local buckets
  • Customizable request grouping using KeyFunc

Why this matters:

  • Ensures consistent throttling across all downstream HTTP services
  • Distributed apps can now safely rate-limit using Redis

Additional Details :

  • Default limit: 60 req/min, burst 10
  • Returns RateLimitError (429) with RetryAfter for easy handling.

📦 Improvements

🔹 HTTP Client Enhancements with Rate Limiting

  • Rate limiter now acts as an HTTP wrapper, intercepting all Get/Post/Put/Delete calls (including header variants)

  • Service key normalization improved via default keying (scheme://host)

  • Cleaner validation through RateLimiterConfig.Validate() with automatic sane defaults

🔹 SQL Operation Normalization

  • SQL operation detection now always returns UPPERCASE keywords. Improves reliability for middleware and query inspection logic.

🔹 OAuth Token URL Validation Cleanup

  • Switched to shared scheme constants (http / https). Reduces duplicated literals and improves code clarity

🐛 Bug Fixes & Small Changes

... (truncated)

Commits
  • 3c8f510 Release/v1.48.0 (#2569)
  • 54b8729 resolve linter
  • 9d4c0e4 Merge branch 'main' into release/v1.48.0
  • 7f59f57 update release version to v1.48.0
  • 84a0522 Merge branch 'main' into release/v1.48.0
  • c91ef05 Merge pull request #2561 from gofr-dev/update-grpcdocs
  • f981fdc Merge branch 'development' into update-grpcdocs
  • 2603b11 enable rate_limiter
  • 96ff9fc Merge branch 'development' into update-grpcdocs
  • 3a74770 reverted go.work.sum changes
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [gofr.dev](https://github.com/gofr-dev/gofr) from 1.47.0 to 1.48.0.
- [Release notes](https://github.com/gofr-dev/gofr/releases)
- [Commits](v1.47.0...v1.48.0)

---
updated-dependencies:
- dependency-name: gofr.dev
  dependency-version: 1.48.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Nov 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant