unstale

npm / @opentunnel/client

@opentunnel/client

What changed in @opentunnel/client 0.6, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-28.

1 breaking12 new APIs and options3 behavior and defaults1 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.9 on npm

@opentunnel/client 0.617 changes

Breaking changes 1

  • The CLI and Rust client tunnel the bridge through HTTP or HTTPS proxies using CONNECT; SOCKS proxies now stop the tunnel with an error instead of being bypassed.

    0.6.1release notes

New APIs and options 12

  • A proxy option on create and OpenTunnelClient.layer sets the proxy for both API calls and the bridge, regardless of the environment.

    0.6.1release notes

  • A new checking-certificate stage is reported by ensure progress updates.

    0.6.0release notes

  • The new onEvent option lets callers observe route-conflict events before connect resolves.

    0.6.0release notes

  • connection.urls maps each route to its public URL.

    0.6.0release notes

  • ensure({ onProgress }) reports progress, beginning with the checking-certificate stage.

    0.6.0release notes

  • isValidRouteName is now exported.

    0.6.0release notes

  • The protocol package now exports Names.LABEL_PATTERN.

    0.6.0release notes

  • The protocol package now exports Names.publicHostname.

    0.6.0release notes

  • publicUrl is now exported.

    0.6.0release notes

  • ROOT_ROUTE is now exported.

    0.6.0release notes

  • A new event reports each route conflict; it can be observed before connect resolves using the onEvent option.

    0.6.0release notes

  • ROUTE_LABEL_PATTERN is now exported.

    0.6.0release notes

Behavior and default changes 3

  • The bridge WebSocket now follows the API proxy settings: HTTPS_PROXY for wss://, HTTP_PROXY for ws://, then ALL_PROXY, except for hosts in NO_PROXY.

    0.6.1release notes

  • Setting onRouteConflict to "fail" makes connect reject with code "route_conflict" instead of retrying.

    0.6.0release notes

  • connect({ signal }) cancels an attach in progress, including certificate work it started, and rejects with the signal's reason.

    0.6.0release notes

Fixes and other changes 1

  • Fatal attach errors now carry their code on OpenTunnelClientError.code.

    0.6.0release notes