feat: request deduplication, task queue, asset versioning & error tracking (#323 #325 #326 #327)#329
Merged
RUKAYAT-CODER merged 1 commit intoApr 28, 2026
Conversation
…king - fix(ci): split concatenated 'npm run build' and 'npm run lint' steps in ci.yml - feat(rinafcode#323): add src/lib/api/dedupe.ts – in-flight request deduplication cache - feat(rinafcode#323): add src/hooks/useApi.ts – data-fetching hook backed by dedupe - feat(rinafcode#325): add src/lib/queue/index.ts – TaskQueue with concurrency, exponential-backoff retry, dead-letter queue - feat(rinafcode#326): update next.config.ts – long-lived cache headers for hashed static assets, 7-day headers for /static, must-revalidate for HTML pages - feat(rinafcode#327): add src/lib/errors/index.ts – Sentry-compatible error tracking interface wired over errorReportingService Closes rinafcode#323 Closes rinafcode#325 Closes rinafcode#326 Closes rinafcode#327
|
@authenticeasy-sys Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements four performance/reliability improvements and fixes a CI workflow bug.
CI Fix
npm run buildandnpm run lintsteps were concatenated on a single line (missing newline), causing lint to never run. Split into separaterunsteps.#323 – Request Deduplication
src/lib/api/dedupe.ts– In-flight request cache. Concurrent calls with the samemethod + url + bodykey share one promise; no duplicate network requests are fired.src/hooks/useApi.ts– React hook for data fetching backed by the dedupe cache. Exposes{ data, loading, error, refetch }.#325 – Task Queues
src/lib/queue/index.ts– LightweightTaskQueueclass with configurable concurrency, exponential-backoff retry, and a dead-letter queue for exhausted jobs. Exports a sharedtaskQueuesingleton.#326 – Asset Versioning
next.config.ts– Addedheaders()returning:/_next/static/**→Cache-Control: public, max-age=31536000, immutable(Next.js already content-hashes these files)/static/**→ 7-day cache with stale-while-revalidatemust-revalidateso deployments are picked up immediately#327 – Error Tracking
src/lib/errors/index.ts– Sentry-compatible interface (init,captureException,captureMessage,addBreadcrumb,setUser) wired over the existingerrorReportingService. Swapinit()for a realSentry.init()call when the SDK is installed.Testing
Closes #323
Closes #325
Closes #326
Closes #327