Repository navigation
1.5.1
Lithium.js v1.5.1 - le small update1!1!1!
New:
• Proxy/transport registry - proxies.list(), transports.register(...), etc. Custom proxies/transports are now first-class instead of hardcoded
• npx lithium doctor - checks your install, package versions, and catches wrong transport generations before they break silently
• Structured errors (LithiumError with .code) instead of generic throws
• Events + navigation: on("navigate", ...), back() / forward() / reload() / search() / current_url() - works the same for UV and Scramjet now
• config object - config.proxy, config.transport, config.ready, etc.
• Debug mode - init_lithium({ debug: true }) for verbose [lithium debug] tracing
• Network log - network_log() / on("request", ...), basically devtools-lite for the proxied page's fetch/XHR traffic
• Header policy - block/allow specific headers, or passthrough mode to bypass filtering entirely (heads up: this only affects fetch/XHR, not <img>/<script> tag loads, no hook point for those)
• Colored console/CLI output (auto-detects TTY, respects NO_COLOR)
• middleware, wisp, quiet, strict server options
• Custom backend registration - bring your own proxy engine or transport
Changed:
• Server rewritten on top of the new registry
• Client split into per-proxy backend modules (client/backends/ultraviolet.js / scramjet.js)
Tested with 230+ checks across server/client/fixtures, all green. Full details in the README.