Repository navigation
Releases
v0.3.0 — Mock tab, throttle, cache-clear + security hardening
✨ Features
- 🎭 Mock tab / request overrides — override any request (matched by URL substring or API label): return a mock response (status + body) with no backend, or rewrite the outgoing request body before it hits the server. Toggleable rules; mocked rows get a
MOCKbadge. - 🐢 Throttle slider — add 0–5000 ms of artificial latency to every fetch.
- 🧹 Cache-clear button — wipe
localStorage,sessionStorage, Cache Storage & service workers in one click. - New API:
addOverride,updateOverride,removeOverride,clearOverrides,getOverrides,subscribeOverrides,setThrottle,getThrottle,clearBrowserCache; newOverrideRuletype.
🔒 Security hardening
- URL secrets redacted — secret query params (
access_token,api_key,signature, …) anduser:pass@userinfo are stripped from the stored/displayed URL. - Plain-text bodies scrubbed — JWTs,
Bearer …tokens, and urlencoded secret pairs masked in non-JSON bodies. - Disabled in production —
installFetchLoggerandmountFetchLoggerPanelno-op entirely in a production build unlessallowInProduction: true. NewisProductionBlocked()helper. Behaviour change: apps running the logger in production must set this flag. - Redaction is display-only — the real network request is sent untouched.
- Source maps no longer published (tarball 100.8 kB → 38.5 kB).
Full changelog: https://github.com/jasimvkarim/fetchlogger/blob/main/CHANGELOG.md
v0.2.0 — Copy Debug Report
Copy Debug Report
The flagship feature: one click turns any captured request into a complete, paste-ready bug report —
FetchLogger Debug Report
Method: POST
URL: /api/login
Status: 401
Duration: 342ms
Request Body:
...
Response Body:
...
Console Errors:
...
Testers can paste this straight into a ticket. Secrets are auto-redacted, console errors are included.
- New 'copy report' button in the request detail view.
- New API:
buildDebugReport(log, options?)to generate it programmatically. - README: added a 'Built for mobile & QA debugging' section.
v0.1.9
- With openOnActivity, the panel now starts fully closed as a small pill (and on page load), then auto-opens on the first request/console entry.
- The close (✕) button minimizes back to the pill and snaps it to the configured corner (e.g. bottom-right), even if you'd dragged the panel elsewhere.
v0.1.8 — openOnActivity
New option openOnActivity: the panel starts collapsed and auto-expands the first time a request or console entry is captured — so it stays out of the way until there's something to see, and you don't have to click to open it.
v0.1.7
UX: clicking a Network/Console tab (count) now also expands the panel, so the collapsed counts aren't a dead end.
v0.1.6 — draggable panel
The panel can be dragged again: grab the header and move it anywhere; it stays within the viewport. Clicking the header still toggles collapse (drag is detected by movement, so clicks aren't swallowed).
v0.1.5 — tidy long URLs
Long request URLs in the detail view now clamp to two lines with a 'show more' / 'show less' toggle, so the panel header stays compact. Copy-url still grabs the full URL.
v0.1.4 — copy buttons
Quality-of-life: one-click copy.
- Copy the request body and response body from the detail view.
- Copy the request URL from the detail bar.
- Copy any console line from the Console tab.
- Each button flips to 'copied ✓' for a moment; works in non-secure contexts via a fallback.
v0.1.3 — console capture
The panel is now a full in-page debug console.
- Console tab: captures console.log / info / warn / error / debug alongside the Network tab. Switch between them in the panel header.
- New API: installConsoleLogger / subscribeConsole / getConsoleLogs / clearConsoleLogs (use the data without the UI).
- Options: captureConsole (default true), maxConsoleLogs, levels.
- Non-destructive — your real console still works; errors keep their stack traces.
v0.1.2 — security hardening
Security hardening release.
- Auto-redaction: values under secret-looking keys (token, password, authorization, apiKey, secret, cookie…) are masked to «redacted» before being stored or shown. Opt out with
autoRedact: false. redact(log)hook: strip/mask anything else (e.g. tokens in URLs) before display.- Production warning: one-time console.warn if installed in a production build; silence with
silenceProductionWarning: true. - Body size cap:
maxBodyChars(default 20000) truncates very large bodies. - README Security section added.
No data ever leaves the browser; logs remain in-memory only.