Skip to content

v3.6.0 — embeddable proxy factory

Choose a tag to compare

@vsits-proxy-builder vsits-proxy-builder released this 14 May 01:09
· 85 commits to main since this release
ac035d1

Minor release — new public API for in-process embedding.

Added

  • Embeddable proxy factory: createProxyServer() + startProxy(options) exported from claude-code-cache-fix/proxy/server (#123). Lets Node/Bun hosts run the cache-fix proxy in-process instead of forking a child via the cache-fix-proxy bin. The CLI entrypoint (node proxy/server.mjs, cache-fix-proxy server, and the wrapper's child-fork path) is preserved — auto-listen and SIGTERM/SIGINT handlers are now gated behind an import.meta.url === pathToFileURL(process.argv[1]).href main-module check, so library imports have no side effects. package.json exports adds a ./proxy/server subpath; the root entry (./preload.mjs) is unchanged. README section added documenting the new API + the "one extension registry per process" constraint. Contributed by @bilby91 (Crunchloop DAP) — thank you, Martín.

Fixed

  • startProxy().close() now also closes the file watcher (#124). The initial implementation in #123 captured the http server but discarded the handle returned by startWatcher(). Embedded hosts with watch: true (the default) that started/stopped the proxy across lifecycle iterations leaked two fs.watch handles per cycle. Four-line capture+close in startProxy().

Install

```
npm install -g claude-code-cache-fix@3.6.0
```

Full changelog: CHANGELOG.md