Skip to content

fix: rename passParams -> gateParams & rateLimit static values#43

Merged
fratzinger merged 1 commit into
mainfrom
fix/rename-gate-params-rate-limit-static-values
Jul 1, 2026
Merged

fix: rename passParams -> gateParams & rateLimit static values#43
fratzinger merged 1 commit into
mainfrom
fix/rename-gate-params-rate-limit-static-values

Conversation

@fratzinger

Copy link
Copy Markdown
Member

This pull request primarily renames the utility function and related documentation from passParams to gateParams throughout the codebase, and introduces improvements to the rateLimit hook to support static key and points options. These changes enhance clarity, consistency, and flexibility in how parameters are selected for caching and rate limiting.

Key changes:

Parameter selection utility renaming and documentation updates

  • Renamed the passParams utility and all related references, documentation, tests, and examples to gateParams for improved clarity and alignment with its purpose. This includes updates in the cache hook documentation, tests, and code comments. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14]

Rate limiting enhancements

  • Extended the rateLimit hook to accept a static string for the key option, allowing for global rate limiting across all requests to an endpoint, and a static number for the points option, enabling fixed or dynamic cost per request. [1] [2] [3] [4] [5]

Documentation improvements

  • Updated the rateLimit and cache hook documentation to clearly describe the new options and usage patterns, including examples for global rate limiting and custom points per request. [1] [2] [3] [4] [5] [6] [7]

These changes improve the developer experience by making parameter gating more explicit and flexible, and by enabling more advanced rate limiting strategies.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying feathers-utils with  Cloudflare Pages  Cloudflare Pages

Latest commit: 45ab367
Status: ✅  Deploy successful!
Preview URL: https://d4cfcdd4.feathers-utils.pages.dev
Branch Preview URL: https://fix-rename-gate-params-rate.feathers-utils.pages.dev

View logs

@fratzinger fratzinger merged commit f0324fd into main Jul 1, 2026
9 checks passed
@fratzinger fratzinger deleted the fix/rename-gate-params-rate-limit-static-values branch July 1, 2026 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant