Skip to content

v1.2.0

Choose a tag to compare

@github-actions github-actions released this 03 Jan 21:43
· 86 commits to main since this release
v1.2.0
4a2ab28

What's New

Features

  • Go v2 Module Path - Updated module path to github.com/felixgeelhaar/fortify/v2 for proper Go semantic import versioning (#5)
  • OnAllow Callback - Added OnAllow callback to rate limiter config for tracking allowed requests (#3)

Documentation

  • Added comprehensive per-key rate limiting examples:
    • Global, per-method, per-client, and combined limiting patterns
    • Dynamic key extraction with KeyFunc
  • Documented event callbacks (OnAllow, OnLimit) for observability
  • Documented Metrics interface implementation

Other Changes

  • Updated GitHub Actions to latest versions
  • Updated Go version to 1.24
  • Fixed CI benchmark workflow

Migration

Update your imports to use the /v2 suffix:

```go
// Before
import "github.com/felixgeelhaar/fortify/ratelimit"

// After
import "github.com/felixgeelhaar/fortify/v2/ratelimit"
```

Coverage

  • 84.8% test coverage (passes 80% threshold)

Full Changelog: v1.1.2...v1.2.0