Skip to content

v2.0.0-next.129

Pre-release
Pre-release

Choose a tag to compare

@seanspeaks seanspeaks released this 24 Nov 21:12
1db342c

🎉 This release contains work from a new contributor! 🎉

Thank you, Cursor Agent (@cursoragent), for all your work!

Release Notes

feat(core): defer rate-limited queue messages through a RATE_LIMITED event (#657)

  • Upgrade @friggframework/core and @friggframework/devtools together, and redeploy. Devtools grants the IAM actions and switches on the scheduler; core does the deferral.
  • The queue worker no longer sleeps for a hinted rate limit. Before, a 429 with Retry-After or a classified limit could wait in process (up to 60 s with #656). Now the message is deferred at once and the handler runs again from the start at retryAt. So:
    • handlers must be idempotent (they already must be, delivery is at least once);
    • every deferral counts toward FRIGG_QUEUE_MAX_DEFERRALS (30). A job with many calls that keeps hitting a short burst limit can reach the cap and fail; keep each message's work small, or raise the cap;
    • a handler that catches every error now sees a RateLimitError that the Requester used to retry in process. Rethrow it.
      A 429 with no hint keeps the fixed backOff ladder, as before.
  • A rate-limited 4xx is no longer discarded. A provider limit signalled with a 403 is now deferred.
  • Optional: an integration can define a RATE_LIMITED event handler, and a module can add userHints text and links to its static rateLimit. New env var: FRIGG_QUEUE_RATE_LIMIT_PROBE_MS.

🤖 Generated with Claude Code

feat(core): honour Retry-After and let API modules declare rate limits (#656)

  • An app changes behaviour only after it upgrades @friggframework/core and redeploys. A module that declares nothing keeps its behaviour, except that a 429 with Retry-After now waits as long as the header says when that fits the caller's budget, and throws RateLimitError when it does not.
  • Upgrade @friggframework/core before an API module uses static rateLimit or RateLimitError.

🤖 Generated with Claude Code


🚀 Enhancement

  • @friggframework/core
    • fix(core): address the #656 rate-limit review follow-ups #740 (@d-klotz)
    • feat(core): honour Retry-After and let API modules declare rate limits #656 (@d-klotz)
  • @friggframework/core, @friggframework/devtools
    • feat(core): defer rate-limited queue messages through a RATE_LIMITED event #657 (@d-klotz)

🐛 Bug Fix

  • docs(adr): ADR-049 rate-limit awareness #655 (@d-klotz)
  • ci: fix MongoDB replica-set flake + add Cloud Agent environment.json #734 (@cursoragent @seanspeaks)
  • docs(adr): ADR-070 MCP gateway, ADR-071 bring your own MCP server #738 (@claude @seanspeaks)
  • @friggframework/core, @friggframework/devtools
  • @friggframework/admin-scripts, @friggframework/core, @friggframework/devtools, @friggframework/eslint-config, @friggframework/prettier-config, @friggframework/schemas, @friggframework/serverless-plugin, @friggframework/test, @friggframework/ui
    • fix(deps): bump stale security overrides and express/body-parser ranges #728 (@d-klotz)
    • docs(adr): ADR-048 structured logging #652 (@d-klotz)

Authors: 4