Repository navigation
v2.1.1 - Security & Rate Limit Fixes
Summary
Fixes a security leak, removes dead code, and resolves Cloudflare Workers stalled HTTP response issues that caused rate limit exhaustion.
What Changed
Security & code quality (code-review-fixes)
- Fixed security leak: Removed
generateAuthInstructionsparameter that acceptedbaseUrlfrom env, replaced with config constant to prevent URL injection - Removed dead code: Cleaned up unused variables and functions flagged by linter
- Lint fixes: Prefixed unused params with
_, usedconstfor non-reassigned variables
Rate limiting & stalled responses (fix/rate-limiting-stalled-responses)
- Fixed stalled HTTP responses:
ResponseErrornow consumes the response body (await response.text()) before throwing, preventing Cloudflare Workers from holding unconsumed response bodies that cause deadlocks when the concurrent in-flight response limit is reached - Always use in-memory filtering: Single-query searches now use the cached complete collection + in-memory filtering (same as mood-expanded queries), instead of paginating the entire collection via API. This eliminates unnecessary API calls for the most common search path.
Commits
eff4182Fix lint errors: prefix unused param, use const for non-reassigned variableebba3bdNew skills6735bd4Fix security leak, remove dead code, and move hardcoded URL to config2867029Fix stalled HTTP responses and always use in-memory filtering for searches