github remorses/playwriter playwriter@0.0.103

9 hours ago

Fixes env var leak and noisy output when auto-returning Playwright objects from the CLI.

  1. Auto-returned Playwright handles are now silently skippedawait page.goto(url) and similar single-expression code no longer prints anything when the return value is a Playwright handle (Response, Page, Browser, Request, Frame, etc.). These are programmatic references, not display data. The previous behavior also leaked every process.env variable (API keys, tokens, credentials) via util.inspect at depth 4.

    By default expression results are printed and that was the cause — now we don't print those objects which would also waste LLM context.

    To see data, explicitly return specific fields or use console.log:

    return response.url()           // prints the URL
    return response.status()        // prints 200
    console.log(response)           // prints safe summary
  2. console.log(response) now renders a clean summary (via @xmorse/playwright-core@1.59.7) — no env var dump, no 400K+ output:

    Response@response@abc123 { url: 'https://...', status: 200, statusText: 'OK', headers: [...] }
    

Fixes #82.

Don't miss a new playwriter release

NewReleases is sending notifications on new releases.