diff --git a/CHANGELOG.md b/CHANGELOG.md index 08c7100b..bd4300a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ +## 1.6.0 + +- Updated the internal ngrok SDK +- Added support for internal endpoints + ## 1.5.0 -Adds `poolingEnabled` to listener builders, allowing the endpoint to pool with other endpoints with the same host/port/binding + +- Adds `poolingEnabled` to listener builders, allowing the endpoint to pool with + other endpoints with the same host/port/binding ## 1.4.1 @@ -9,24 +16,33 @@ Adds `poolingEnabled` to listener builders, allowing the endpoint to pool with o - Rename `policy` to `traffic_policy` - Fix quickstart example in README -- Add Microsoft Visual C++ Redistributable requirement for Windows to documentation +- Add Microsoft Visual C++ Redistributable requirement for Windows to + documentation ## 1.3.0: -- Add `rootCas` to session builder and `root_cas` to `ngrok.forward`. Setting this to `host` will use the host's trusted certificates to connect for the ngrok session. -- Add `session_ca_cert` and `server_addr` to `ngrok.forward`, which correspond to the same functions in the session builder. +- Add `rootCas` to session builder and `root_cas` to `ngrok.forward`. Setting + this to `host` will use the host's trusted certificates to connect for the + ngrok session. +- Add `session_ca_cert` and `server_addr` to `ngrok.forward`, which correspond + to the same functions in the session builder. ## 1.2.0: -- Add `verifyUpstreamTls` to listener builders and `verify_upstream_tls` to `ngrok.forward`. Setting this to false will skip verification of the upstream application's TLS certificate. +- Add `verifyUpstreamTls` to listener builders and `verify_upstream_tls` to + `ngrok.forward`. Setting this to false will skip verification of the upstream + application's TLS certificate. ## 1.1.1: -- 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 the labeled listener builder. Setting this to + "http2" will enable HTTP/2 support to the backend application. ## 1.1.0: -- Add `appProtocol(string)` to http listener builder, and `app_protocol: string` as a `ngrok.forward()` argument. Setting this to "http2" will enable HTTP/2 support to the backend application. +- Add `appProtocol(string)` to http listener builder, and `app_protocol: string` + as a `ngrok.forward()` argument. Setting this to "http2" will enable HTTP/2 + support to the backend application. ## 1.0.0: @@ -58,8 +74,10 @@ Adds `poolingEnabled` to listener builders, allowing the endpoint to pool with o ## 0.6.0: -- Flattened `listener.forwardPipe()` and `listener.forwardTcp()` into `listener.forward()`. Determination will be made based on `addr` input. -- Add `ngrok.listeners()` and `session.listeners()` to get a list of current non-closed listeners for the process or session, respectively. +- Flattened `listener.forwardPipe()` and `listener.forwardTcp()` into + `listener.forward()`. Determination will be made based on `addr` input. +- Add `ngrok.listeners()` and `session.listeners()` to get a list of current + non-closed listeners for the process or session, respectively. - Add `errorCode` field to thrown errors, where possible. - More heuristics for automatic unix socket file placement. - Connect heuristic improved for strings parseable as numbers. @@ -89,12 +107,14 @@ Adds `poolingEnabled` to listener builders, allowing the endpoint to pool with o ## 0.3.0: -- Added `ngrok.connect(Config)`, `ngrok.authtoken()`, and `ngrok.disconnect(url)`. +- Added `ngrok.connect(Config)`, `ngrok.authtoken()`, and + `ngrok.disconnect(url)`. - Examples cleanup. ## 0.2.0: -- Now have examples for Express, Fastify, Hapi, Koa, Nest.js, Next.js, Remix, Svelte, and Vue. +- Now have examples for Express, Fastify, Hapi, Koa, Nest.js, Next.js, Remix, + Svelte, and Vue. - Add `prettier` auto code formatting. ## 0.1.1: @@ -132,7 +152,8 @@ Adds `poolingEnabled` to listener builders, allowing the endpoint to pool with o ## 0.0.7: -- Improved memory management, removing need to keep NodeJS from garbage collecting certain objects. +- 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. diff --git a/Cargo.lock b/Cargo.lock index 0af1b942..af57640d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1017,7 +1017,7 @@ dependencies = [ "futures", "pin-project", "rand", - "thiserror", + "thiserror 1.0.69", "tokio", "tokio-util", "tracing", @@ -1083,9 +1083,9 @@ dependencies = [ [[package]] name = "ngrok" -version = "0.15.0" +version = "0.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26f28b76c1beb7392c760a3bfe5a854a51edbb2ddc789b10985114f10dc9f969" +checksum = "3b2d865d242cc88f2849b250154b260ed9c765f442c1e867fd539b60c1c0164a" dependencies = [ "arc-swap", "async-trait", @@ -1112,7 +1112,7 @@ dependencies = [ "rustls-pemfile", "serde", "serde_json", - "thiserror", + "thiserror 2.0.17", "tokio", "tokio-retry", "tokio-socks", @@ -1125,7 +1125,7 @@ dependencies = [ [[package]] name = "ngrok-javascript" -version = "1.5.2" +version = "1.6.0" dependencies = [ "async-trait", "aws-lc-rs", @@ -1759,7 +1759,16 @@ version = "1.0.69" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" dependencies = [ - "thiserror-impl", + "thiserror-impl 1.0.69", +] + +[[package]] +name = "thiserror" +version = "2.0.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f63587ca0f12b72a0600bcba1d40081f830876000bb46dd2337a3051618f4fc8" +dependencies = [ + "thiserror-impl 2.0.17", ] [[package]] @@ -1773,6 +1782,17 @@ dependencies = [ "syn 2.0.101", ] +[[package]] +name = "thiserror-impl" +version = "2.0.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ff15c8ecd7de3849db632e14d18d2571fa09dfc5ed93479bc4485c7a517c913" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.101", +] + [[package]] name = "thread_local" version = "1.1.8" @@ -1849,7 +1869,7 @@ checksum = "0d4770b8024672c1101b3f6733eab95b18007dbe0847a8afe341fcf79e06043f" dependencies = [ "either", "futures-util", - "thiserror", + "thiserror 1.0.69", "tokio", ] diff --git a/Cargo.toml b/Cargo.toml index 9b3e580f..02f519fc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] edition = "2021" name = "ngrok-javascript" -version = "1.5.2" +version = "1.6.0" [lib] crate-type = ["cdylib"] @@ -17,7 +17,7 @@ mio = { version = "=0.8.6" } # Default enable napi4 feature, see https://nodejs.org/api/n-api.html#node-api-version-matrix napi = { version = "2.12.1", default-features = false, features = ["napi4", "tokio_rt"] } napi-derive = "2.12.1" -ngrok = {version = "0.15.0", features = ["hyper", "axum"]} +ngrok = {version = "0.17.0", features = ["hyper", "axum"]} parking_lot = "0.12.1" regex = "1.9.5" rustls = "0.23.25" diff --git a/npm/android-arm64/package.json b/npm/android-arm64/package.json index 729f4cb6..c6030676 100644 --- a/npm/android-arm64/package.json +++ b/npm/android-arm64/package.json @@ -1,6 +1,6 @@ { "name": "@ngrok/ngrok-android-arm64", - "version": "1.5.0", + "version": "1.6.0", "os": [ "android" ], diff --git a/npm/darwin-arm64/package.json b/npm/darwin-arm64/package.json index 57a1711f..f7095dc7 100644 --- a/npm/darwin-arm64/package.json +++ b/npm/darwin-arm64/package.json @@ -1,6 +1,6 @@ { "name": "@ngrok/ngrok-darwin-arm64", - "version": "1.5.0", + "version": "1.6.0", "os": [ "darwin" ], diff --git a/npm/darwin-universal/package.json b/npm/darwin-universal/package.json index f1aa7b4d..79872d29 100644 --- a/npm/darwin-universal/package.json +++ b/npm/darwin-universal/package.json @@ -1,6 +1,6 @@ { "name": "@ngrok/ngrok-darwin-universal", - "version": "1.5.0", + "version": "1.6.0", "os": [ "darwin" ], diff --git a/npm/darwin-x64/package.json b/npm/darwin-x64/package.json index c9f71629..c41e992d 100644 --- a/npm/darwin-x64/package.json +++ b/npm/darwin-x64/package.json @@ -1,6 +1,6 @@ { "name": "@ngrok/ngrok-darwin-x64", - "version": "1.5.0", + "version": "1.6.0", "os": [ "darwin" ], diff --git a/npm/freebsd-x64/package.json b/npm/freebsd-x64/package.json index 2be47d79..b9b81b90 100644 --- a/npm/freebsd-x64/package.json +++ b/npm/freebsd-x64/package.json @@ -1,6 +1,6 @@ { "name": "@ngrok/ngrok-freebsd-x64", - "version": "1.5.0", + "version": "1.6.0", "os": [ "freebsd" ], diff --git a/npm/linux-arm-gnueabihf/package.json b/npm/linux-arm-gnueabihf/package.json index f723e63c..00c10771 100644 --- a/npm/linux-arm-gnueabihf/package.json +++ b/npm/linux-arm-gnueabihf/package.json @@ -1,6 +1,6 @@ { "name": "@ngrok/ngrok-linux-arm-gnueabihf", - "version": "1.5.0", + "version": "1.6.0", "os": [ "linux" ], diff --git a/npm/linux-arm64-gnu/package.json b/npm/linux-arm64-gnu/package.json index a4e56663..c9d66690 100644 --- a/npm/linux-arm64-gnu/package.json +++ b/npm/linux-arm64-gnu/package.json @@ -1,6 +1,6 @@ { "name": "@ngrok/ngrok-linux-arm64-gnu", - "version": "1.5.0", + "version": "1.6.0", "os": [ "linux" ], diff --git a/npm/linux-arm64-musl/package.json b/npm/linux-arm64-musl/package.json index b5a8f649..b4b9a139 100644 --- a/npm/linux-arm64-musl/package.json +++ b/npm/linux-arm64-musl/package.json @@ -1,6 +1,6 @@ { "name": "@ngrok/ngrok-linux-arm64-musl", - "version": "1.5.0", + "version": "1.6.0", "os": [ "linux" ], diff --git a/npm/linux-x64-gnu/package.json b/npm/linux-x64-gnu/package.json index f3edfa95..ee4395ec 100644 --- a/npm/linux-x64-gnu/package.json +++ b/npm/linux-x64-gnu/package.json @@ -1,6 +1,6 @@ { "name": "@ngrok/ngrok-linux-x64-gnu", - "version": "1.5.0", + "version": "1.6.0", "os": [ "linux" ], diff --git a/npm/linux-x64-musl/package.json b/npm/linux-x64-musl/package.json index ce021519..f156da5d 100644 --- a/npm/linux-x64-musl/package.json +++ b/npm/linux-x64-musl/package.json @@ -1,6 +1,6 @@ { "name": "@ngrok/ngrok-linux-x64-musl", - "version": "1.5.0", + "version": "1.6.0", "os": [ "linux" ], diff --git a/npm/win32-arm64-msvc/package.json b/npm/win32-arm64-msvc/package.json index 3550ce91..bd936393 100644 --- a/npm/win32-arm64-msvc/package.json +++ b/npm/win32-arm64-msvc/package.json @@ -1,6 +1,6 @@ { "name": "@ngrok/ngrok-win32-arm64-msvc", - "version": "1.5.0", + "version": "1.6.0", "os": [ "win32" ], diff --git a/npm/win32-ia32-msvc/package.json b/npm/win32-ia32-msvc/package.json index 2e8a60a7..2bd98315 100644 --- a/npm/win32-ia32-msvc/package.json +++ b/npm/win32-ia32-msvc/package.json @@ -1,6 +1,6 @@ { "name": "@ngrok/ngrok-win32-ia32-msvc", - "version": "1.5.0", + "version": "1.6.0", "os": [ "win32" ], diff --git a/npm/win32-x64-msvc/package.json b/npm/win32-x64-msvc/package.json index c59253e6..a19f7cf4 100644 --- a/npm/win32-x64-msvc/package.json +++ b/npm/win32-x64-msvc/package.json @@ -1,6 +1,6 @@ { "name": "@ngrok/ngrok-win32-x64-msvc", - "version": "1.5.0", + "version": "1.6.0", "os": [ "win32" ], diff --git a/package.json b/package.json index 5fac7761..05808540 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ngrok/ngrok", - "version": "1.5.2", + "version": "1.6.0", "main": "index.js", "types": "index.d.ts", "files": [