Skip to content

chore(deps): bump hammer from 7.5.1 to 7.6.0 - #294

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/hex/hammer-7.6.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/hex/hammer-7.6.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 28, 2026 •

Copy link
Copy Markdown

Bumps hammer from 7.5.1 to 7.6.0.

Changelog

Sourced from hammer's changelog.

7.6.0 - 2026-11-20

  • Fix LeakyBucket (ETS and Atomic backends) and TokenBucket (Atomic backend) returning a flat {:deny, 1000}; they now return the real time in milliseconds until the hit would be allowed, as the ETS TokenBucket has since 7.5.0. The leaky buckets count in whole seconds, so their value runs to the second boundary at which the bucket has leaked enough. Behaviour change: the value is no longer always 1000. It can be much larger (e.g. up to 144000 for a bucket 144 over capacity at leak_rate: 1) or smaller (down to 1 when the next second is about to start). Code that converts it to a retry-after header should round up and floor at 1 second. A rate of 0 still answers {:deny, 1000}. (#221)
  • Fix LeakyBucket (ETS and Atomic backends) allowing a hit whenever the level was below capacity, whatever its cost, so a bucket could be filled to capacity - 1 + cost. A hit is now allowed only if the level after it stays within capacity, as the moduledoc always said and as the Mnesia backend does. Behaviour change: hits with cost > 1 that used to overfill the bucket are now denied; hits with cost: 1 behave as before. A cost larger than capacity is never allowed. (#222)
  • use Hammer, backend: :atomic, algorithm: :sliding_window now raises an ArgumentError saying that sliding window is not available for the Atomic backend and pointing to the ETS backend. It already failed at compile time, but with an unhelpful "could not load module" error. The error for an unknown Atomic algorithm now says "algorithm" rather than "backend" and no longer lists :sliding_window. (#222)
  • Fix Atomic FixWindowPerKey hanging on a key forever. Resetting an expired window took a lock in the key's atomic; a process killed while holding it (for example a request process shut down mid-call) left the lock behind, and every later hit or inc on that key spun on it without returning. An expired window is now replaced by a fresh atomic, so there is no lock. A lock left behind by 7.5.1 or earlier is treated as an expired window. (#222)
  • Fix TokenBucket ETS backend letting far more than refill_rate through. The refill clock advanced by a whole number of milliseconds, rounded down, so part of each elapsed stretch was credited again on the next hit. At refill_rate: 600 a caller hitting in a tight loop got about 1000 hits per second, and above 1000 tokens per second, where a token is worth less than a millisecond, the clock did not move at all and the limiter was effectively off (over a million hits in half a second at refill_rate: 1500, capacity: 10). Present since 7.5.0. The clock now advances by the exact time credited. (#222)
  • Fix Atomic TokenBucket refilling in whole seconds, which capped sustained throughput at capacity tokens per second when refill_rate > capacity and delivered tokens in a lump at each second boundary. It now refills by the millisecond and keeps fractions of a token, so its {:deny, ms} value is exact to the millisecond (e.g. 19 at refill_rate: 55). Buckets held in memory across a hot code upgrade start over full. (#222)
  • Fix LeakyBucket (ETS and Atomic backends) raising the level, and TokenBucket ETS backend taking tokens away, when the stored clock was ahead of the caller's. That happens when a concurrent hit reads the time later or the wall clock steps back; the negative elapsed time was applied as a negative leak or refill. It now counts as no time elapsed, and a TokenBucket (both backends) that denies in that state includes the time until the stored clock is reached in its {:deny, ms} value, since nothing refills before then. (#222)
Commits
  • bf2952b chore: Release 7.6.0 (#223)
  • f59ba27 build(deps): bump dialyxir 1.4.8 -> 1.4.9 (#220)
  • b9b5ebe fix: bucket deny waits, token bucket over-admission and Atomic gaps (#222)
  • 265d9c6 build(deps-dev): bump dialyxir from 1.4.8 to 1.4.9 (#218)
  • 69c7477 build: pin toolchain to Elixir 1.20.5 / OTP 29.1.2 (#217)
  • efe5fe7 build(deps): bump igniter, ex_ast, req, sourceror, spitfire, nimble_options, ...
  • See full diff 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 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)

📌 TL;DR

This PR updates the hammer dependency from version 7.5.1 to 7.6.0 in the project's lock file. This is a routine dependency maintenance update to ensure the project uses the latest stable release of the rate-limiting library.

🎯 Type of Change

  • 🚀 New feature
  • 🐛 Bugfix
  • 🧹 Refactor
  • ⚡ Performance
  • 📚 Documentation
  • ⚙️ CI / Configuration

🔍 Changes Walkthrough

File Summary of Changes
mix.lock Updated the hammer package entry from version 7.5.1 to 7.6.0, including the new checksum and dependency metadata.

📊 Architectural Flow

(Omitted: This change is a dependency version bump with no architectural or workflow modifications.)

Bumps [hammer](https://github.com/ExHammer/hammer) from 7.5.1 to 7.6.0.
- [Changelog](https://github.com/ExHammer/hammer/blob/master/CHANGELOG.md)
- [Commits](ExHammer/hammer@v7.5.1...v7.6.0)

---
updated-dependencies:
- dependency-name: hammer
  dependency-version: 7.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file elixir Pull requests that update elixir code labels Nov 28, 2026

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Code review skipped — your organization has no extra usage available to pay for this review.

If your organization's extra usage balance is empty, an organization admin can add extra usage credits at claude.ai/admin-settings/usage. If its monthly spend limit was reached, an admin can raise it on the same page. If neither applies, contact Anthropic support.

Once extra usage is available, someone with write access to this repository can comment @claude review on this pull request to trigger a review.

@coderabbitai

coderabbitai Bot commented Nov 28, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2c5b3528-e9da-40a6-a63c-8954990beded

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-28T17:47:09.722924Z
We couldn’t complete this review. Comment @codex review to try again.
9898a8e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

dos[bot]
dos Bot approved these changes Nov 28, 2026

@dos dos Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⏱️ Code Review completed (1 eligible files · 2,660 chars · 1 model call(s) · 1 PR unit(s))

Whole diff with bounded context at base 5996278 / head 9898a8e.

✅ CLEAN_PASS: Complete diff reviewed

This branch has not been deployed

No deployments
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 elixir Pull requests that update elixir code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants