v3.6.0 — embeddable proxy factory
·
85 commits
to main
since this release
Minor release — new public API for in-process embedding.
Added
- Embeddable proxy factory:
createProxyServer()+startProxy(options)exported fromclaude-code-cache-fix/proxy/server(#123). Lets Node/Bun hosts run the cache-fix proxy in-process instead of forking a child via thecache-fix-proxybin. 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 animport.meta.url === pathToFileURL(process.argv[1]).hrefmain-module check, so library imports have no side effects.package.jsonexportsadds a./proxy/serversubpath; 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 bystartWatcher(). Embedded hosts withwatch: true(the default) that started/stopped the proxy across lifecycle iterations leaked twofs.watchhandles per cycle. Four-line capture+close instartProxy().
Install
```
npm install -g claude-code-cache-fix@3.6.0
```
Full changelog: CHANGELOG.md