Skip to content

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

Latest

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