Skip to content

Releases

v0.3.0 — Mock tab, throttle, cache-clear + security hardening

Choose a tag to compare

@jasimvkarim jasimvkarim released this 03 Jul 13:27

✨ 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 MOCK badge.
  • 🐢 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; new OverrideRule type.

🔒 Security hardening

  • URL secrets redacted — secret query params (access_token, api_key, signature, …) and user: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 — installFetchLogger and mountFetchLoggerPanel no-op entirely in a production build unless allowInProduction: true. New isProductionBlocked() 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

Choose a tag to compare

@jasimvkarim jasimvkarim released this 09 Jun 09:59

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

Choose a tag to compare

@jasimvkarim jasimvkarim released this 09 Jun 08:29
  • 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

Choose a tag to compare

@jasimvkarim jasimvkarim released this 09 Jun 08:26

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

Choose a tag to compare

@jasimvkarim jasimvkarim released this 09 Jun 08:22

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

Choose a tag to compare

@jasimvkarim jasimvkarim released this 09 Jun 08:20

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

Choose a tag to compare

@jasimvkarim jasimvkarim released this 09 Jun 07:44

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

Choose a tag to compare

@jasimvkarim jasimvkarim released this 09 Jun 07:41

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

Choose a tag to compare

@jasimvkarim jasimvkarim released this 09 Jun 07:38

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

Choose a tag to compare

@jasimvkarim jasimvkarim released this 09 Jun 06:22

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.