Adds poolingEnabled to listener builders, allowing the endpoint to pool with other endpoints with the same host/port/binding
- Fix
traffic_policynaming forngrok.forward
- Rename
policytotraffic_policy - Fix quickstart example in README
- Add Microsoft Visual C++ Redistributable requirement for Windows to documentation
- Add
rootCasto session builder androot_castongrok.forward. Setting this tohostwill use the host's trusted certificates to connect for the ngrok session. - Add
session_ca_certandserver_addrtongrok.forward, which correspond to the same functions in the session builder.
- Add
verifyUpstreamTlsto listener builders andverify_upstream_tlstongrok.forward. Setting this to false will skip verification of the upstream application's TLS certificate.
- Add
appProtocol(string)to the labeled listener builder. Setting this to "http2" will enable HTTP/2 support to the backend application.
- Add
appProtocol(string)to http listener builder, andapp_protocol: stringas angrok.forward()argument. Setting this to "http2" will enable HTTP/2 support to the backend application.
- Add policy support to Listener builders and
ngrok.forward
- Move to
ngrok.forwardfromngrok.connect, keeping an alias. - Rename to
ngrok-javascript. - Smaller number of files packaged.
ngrok.connectnow returns the fullListenerobject.
- Add
allowUserAgentanddenyUserAgentoptions to HTTP listeners. - Add
clientIdandclientSecretoptions to OAuth.
- Fix for windows pipe pathing.
- Add
listen_and_forwardandlisten_and_serveto listener builders. - Update to latest version of underlying rust library, allowing TLS backends.
- Flattened
listener.forwardPipe()andlistener.forwardTcp()intolistener.forward(). Determination will be made based onaddrinput. - Add
ngrok.listeners()andsession.listeners()to get a list of current non-closed listeners for the process or session, respectively. - Add
errorCodefield to thrown errors, where possible. - More heuristics for automatic unix socket file placement.
- Connect heuristic improved for strings parseable as numbers.
- Cleanly return from a listener forward call after a
session.close().
consoleLogreturn signature.
- Add
Session.clientInfo(). - Rename to
ngrok-nodejs.
- Clean shutdown when run from npm.
- Unblock Svelte postinstall script.
- Move to a single listener type for simplicity.
- Documentation updates.
- Added
ngrok.connect(Config),ngrok.authtoken(), andngrok.disconnect(url). - Examples cleanup.
- Now have examples for Express, Fastify, Hapi, Koa, Nest.js, Next.js, Remix, Svelte, and Vue.
- Add
prettierauto code formatting.
- Bump
ngrok-rustto0.11.3. - Migrate
ca_certto the upstream call inngrok-rust.
- Added
ca_cert,handle_heartbeat, andhandle_disconnectionto Session.
- Added Session.close().
- Cleanly shutdown when listen is called with a pre-configured listener.
- Cleanly shutdown on all platforms when there are callbacks registered.
- Child client versioning support.
- Support for named pipes on Windows.
- Support callbacks for logging, include console.log and Winston handlers.
- Can now pass listeners directly to net.Server.listen().
- Clean shutdown on SIGINT after ngrok.listen(server).
- Typedoc generation of documentation.
- Improved memory management, removing need to keep NodeJS from garbage collecting certain objects.
- Support callbacks for remote operations (stop, restart, update).
- Typescript support for getSocket and listen.
- Initial public release.