Fix:
- Relax Ruby version constraint to allow Ruby 3.2.
Feature:
-
Add configuration for setting defaults. E.g.:
GraphAttack.configure do |config| # config.threshold = 15 # config.interval = 60 # config.on = :ip # config.redis_client = Redis.new end
Feature:
- Skip throttling when rate limited field is nil (#19)
- If your app relied on
Redis.current
, please provide aredis_client
option explicitly, sinceRedis.current
is deprecated and will be removed in Redis 5.
Feature:
- Add support to custom rate limited context key with the
on:
option.
Breaking changes:
- Drop support for GraphQL legacy schema, please use GraphQL::Ruby's class-based syntax exclusively.
Feature:
- Support Ruby 3.
Feature:
- New GraphAttack::RateLimit extension to be used in GraphQL::Ruby's class-based syntax.
Feature:
- Add
redis_client
option to provide a custom Redis client.
First release!