From 5b65b3a582c1c5cdf831b370dcbb41b5df6813cb Mon Sep 17 00:00:00 2001 From: "man8-octoflow[bot]" <317008790+man8-octoflow[bot]@users.noreply.github.com> Date: Fri, 13 Nov 2026 22:04:50 +0200 Subject: [PATCH] chore: prepare release 0.4.0 Bump __version__ to 0.4.0 and move the Unreleased changelog entries into a dated 0.4.0 section, leaving Unreleased empty. Add the missing link references so every bracketed version heading resolves: 0.4.0 and 0.3.4 compare against the previous tag, 0.3.3 points at its release page (no earlier tag exists), and Unreleased now compares from v0.4.0. Fixes #17 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Pk5H9KCpSX7PmWxKeGd9Qd --- CHANGELOG.md | 7 ++++++- src/easylimit/__init__.py | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a0f262..996f2d8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.4.0] - 2026-11-13 + ### Changed - `initial_tokens` validation error now uses user-facing wording ("cannot exceed the burst capacity of N") instead of exposing the internal `bucket_size` field name - Error message for `RateLimiter(period=...)` without `limit` now points at `limit` with a usage example instead of suggesting the deprecated `max_calls_per_second` parameter @@ -130,4 +132,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - MIT License - PyPI distribution -[Unreleased]: https://github.com/man8/easylimit/compare/v0.3.4...HEAD +[Unreleased]: https://github.com/man8/easylimit/compare/v0.4.0...HEAD +[0.4.0]: https://github.com/man8/easylimit/compare/v0.3.4...v0.4.0 +[0.3.4]: https://github.com/man8/easylimit/compare/v0.3.3...v0.3.4 +[0.3.3]: https://github.com/man8/easylimit/releases/tag/v0.3.3 diff --git a/src/easylimit/__init__.py b/src/easylimit/__init__.py index 7ae1487..e3a27e8 100644 --- a/src/easylimit/__init__.py +++ b/src/easylimit/__init__.py @@ -7,5 +7,5 @@ from .rate_limiter import CallStats, RateLimiter -__version__ = "0.3.4" +__version__ = "0.4.0" __all__ = ["RateLimiter", "CallStats"]