Skip to content

@cloudflare/sandbox@0.10.2

Choose a tag to compare

@sandy-bonk sandy-bonk released this 21 May 14:15
· 121 commits to main since this release
3b58a22

Patch Changes

  • #695 c6bf7dc Thanks @aron-cf! - Add sandbox.tunnels namespace with quick-tunnel support. Call sandbox.tunnels.get(port) to obtain a https://<words>.trycloudflare.com URL that proxies to localhost:<port> inside the sandbox. The call is idempotent: repeated calls for the same port return the same record from per-sandbox Durable Object storage. No Cloudflare account or DNS setup required.

    const tunnel = await sandbox.tunnels.get(8080);
    console.log(tunnel.url);
    // → https://random-words-here.trycloudflare.com
    
    const same = await sandbox.tunnels.get(8080);
    console.log(same.url === tunnel.url); // true
    
    await sandbox.tunnels.list();
    await sandbox.tunnels.destroy(8080); // or destroy(tunnel)
  • #691 3ca24fc Thanks @scuffi! - Add credential-less R2 bucket mounting via egress interception

  • #703 68c8b71 Thanks @aron-cf! - Fix inconsistencies in the sandbox.desktop interface between RPC and HTTP transports