Skip to content

Commit 2e1f5fd

Browse files
authored
Merge pull request #53 from ngrok/bob/0.5.0
0.5.0
2 parents 10ec511 + f17f5e5 commit 2e1f5fd

38 files changed

+264
-234
lines changed

CHANGELOG.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.5.0:
2+
3+
* Add `NgrokSession.clientInfo()`
4+
* Rename to `ngrok-nodejs`
5+
16
## 0.4.1:
27

38
* Clean shutdown when run from npm
@@ -20,8 +25,8 @@
2025

2126
## 0.1.1:
2227

23-
* Bump `ngrok-rs` to `0.11.3`.
24-
* Migrate `ca_cert` to the upstream call in `ngrok-rs`.
28+
* Bump `ngrok-rust` to `0.11.3`.
29+
* Migrate `ca_cert` to the upstream call in `ngrok-rust`.
2530

2631
## 0.1.0:
2732

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
# Contributing to ngrok-js
1+
# Contributing to ngrok-nodejs
22

3-
Thank you for deciding to contribute to ngrok-js!
3+
Thank you for deciding to contribute to ngrok-nodejs!
44

55
## Reporting a bug
66

7-
To report a bug, please [open a new issue](https://github.com/ngrok/ngrok-js/issues/new) with clear reproduction steps. We will triage and investigate these issues at a regular interval.
7+
To report a bug, please [open a new issue](https://github.com/ngrok/ngrok-nodejs/issues/new) with clear reproduction steps. We will triage and investigate these issues at a regular interval.
88

99
## Contributing code
1010

1111
Bugfixes and small improvements are always appreciated!
1212

13-
For any larger changes or features, please [open a new issue](https://github.com/ngrok/ngrok-js/issues/new) first to discuss whether the change makes sense. When in doubt, it's always okay to open an issue first.
13+
For any larger changes or features, please [open a new issue](https://github.com/ngrok/ngrok-nodejs/issues/new) first to discuss whether the change makes sense. When in doubt, it's always okay to open an issue first.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
edition = "2021"
3-
name = "ngrok-js"
4-
version = "0.4.1"
3+
name = "ngrok-nodejs"
4+
version = "0.5.0"
55

66
[lib]
77
crate-type = ["cdylib"]

README.md

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
[npm-badge]: https://img.shields.io/npm/v/@ngrok/ngrok.svg
99
[npm-url]: https://www.npmjs.com/package/@ngrok/ngrok
1010
[mit-badge]: https://img.shields.io/badge/license-MIT-blue.svg
11-
[mit-url]: https://github.com/ngrok/ngrok-rs/blob/main/LICENSE-MIT
11+
[mit-url]: https://github.com/ngrok/ngrok-rust/blob/main/LICENSE-MIT
1212
[apache-badge]: https://img.shields.io/badge/license-Apache_2.0-blue.svg
13-
[apache-url]: https://github.com/ngrok/ngrok-rs/blob/main/LICENSE-APACHE
14-
[ci-badge]: https://github.com/ngrok/ngrok-js/actions/workflows/ci.yml/badge.svg
15-
[ci-url]: https://github.com/ngrok/ngrok-js/actions/workflows/ci.yml
13+
[apache-url]: https://github.com/ngrok/ngrok-rust/blob/main/LICENSE-APACHE
14+
[ci-badge]: https://github.com/ngrok/ngrok-nodejs/actions/workflows/ci.yml/badge.svg
15+
[ci-url]: https://github.com/ngrok/ngrok-nodejs/actions/workflows/ci.yml
1616

1717
**Note: This is beta-quality software. Interfaces may change without warning.**
1818

@@ -35,15 +35,15 @@ npm install @ngrok/ngrok
3535

3636
# Documentation
3737

38-
A quickstart guide and a full API reference are included in the [ngrok-js API documentation](https://ngrok.github.io/ngrok-js/).
38+
A quickstart guide and a full API reference are included in the [ngrok-nodejs API documentation](https://ngrok.github.io/ngrok-nodejs/).
3939

4040
# Quickstart
4141

4242
After you've installed the package, you'll need an Auth Token. Retrieve one on the
4343
[Auth Token page of your ngrok dashboard](https://dashboard.ngrok.com/get-started/your-authtoken)
4444

45-
There are multiple examples in [the /examples directory](https://github.com/ngrok/ngrok-js/tree/main/examples).
46-
A minimal use-case looks like [the following](https://github.com/ngrok/ngrok-js/blob/main/examples/ngrok-http-minimum.js):
45+
There are multiple examples in [the /examples directory](https://github.com/ngrok/ngrok-nodejs/tree/main/examples).
46+
A minimal use-case looks like [the following](https://github.com/ngrok/ngrok-nodejs/blob/main/examples/ngrok-http-minimum.js):
4747

4848
```jsx
4949
var ngrok = require("@ngrok/ngrok");
@@ -56,7 +56,7 @@ async function create_tunnel() {
5656
}
5757
```
5858

59-
or [with the 'connect' convenience function](https://github.com/ngrok/ngrok-js/blob/main/examples/ngrok-connect-minimal.js):
59+
or [with the 'connect' convenience function](https://github.com/ngrok/ngrok-nodejs/blob/main/examples/ngrok-connect-minimal.js):
6060

6161
```jsx
6262
const ngrok = require("@ngrok/ngrok");
@@ -69,36 +69,36 @@ ngrok.connect({addr: 8080, authtoken_from_env: true}).then((url) => {
6969

7070
Degit can be used for cloning and running an example directory like this:
7171
```bash
72-
npx degit github:ngrok/ngrok-js/examples/<example> <folder-name>
72+
npx degit github:ngrok/ngrok-nodejs/examples/<example> <folder-name>
7373
cd <folder-name>
7474
npm i
7575
```
7676
For example:
7777
```bash
78-
npx degit github:ngrok/ngrok-js/examples/express express && cd express && npm i
78+
npx degit github:ngrok/ngrok-nodejs/examples/express express && cd express && npm i
7979
```
8080

8181

8282
## Frameworks
83-
* [Express](https://expressjs.com/) - [Quickstart Example](https://github.com/ngrok/ngrok-js/blob/main/examples/express/ngrok-express-quickstart.js), [Configuration Example](https://github.com/ngrok/ngrok-js/blob/main/examples/express/ngrok-express.js)
84-
* [Fastify](https://www.fastify.io/) - [Example](https://github.com/ngrok/ngrok-js/blob/main/examples/fastify/ngrok-fastify.js)
85-
* [Hapi](https://hapi.dev/) - [Example](https://github.com/ngrok/ngrok-js/blob/main/examples/hapi/ngrok-hapi.js)
86-
* [Koa](https://koajs.com/) - [Example](https://github.com/ngrok/ngrok-js/blob/main/examples/koa/ngrok-koa.js)
87-
* [Nest.js](https://nestjs.com/) - [Example main.ts](https://github.com/ngrok/ngrok-js/blob/main/examples/nestjs/src/main.ts)
88-
* [Next.js](https://nextjs.org/) - [Example next.config.js](https://github.com/ngrok/ngrok-js/blob/main/examples/nextjs/next.config.js) loading [ngrok.config.js](https://github.com/ngrok/ngrok-js/blob/main/examples/nextjs/ngrok.config.js)
89-
* [Remix](https://remix.run/) - [Example remix.config.js](https://github.com/ngrok/ngrok-js/blob/main/examples/remix/remix.config.js) loading [ngrok.config.js](https://github.com/ngrok/ngrok-js/blob/main/examples/remix/ngrok.config.js)
90-
* [Svelte](https://svelte.dev/) - [Example svelte.config.js](https://github.com/ngrok/ngrok-js/blob/main/examples/svelte/svelte.config.js) (works in vite.config.js too) loading [ngrok.config.cjs](https://github.com/ngrok/ngrok-js/blob/main/examples/svelte/ngrok.config.cjs)
91-
* [Typescript](https://www.typescriptlang.org/) - [Example ts-node](https://github.com/ngrok/ngrok-js/blob/main/examples/ngrok-typescript.ts)
92-
* [Vue](https://vuejs.org/) - [Example vite.config.ts](https://github.com/ngrok/ngrok-js/blob/main/examples/vue/vite.config.ts) loading [ngrok.config.ts](https://github.com/ngrok/ngrok-js/blob/main/examples/vue/ngrok.config.ts)
93-
* [Winston](https://github.com/winstonjs/winston#readme) Logging - [Example](https://github.com/ngrok/ngrok-js/blob/main/examples/ngrok-winston.js)
83+
* [Express](https://expressjs.com/) - [Quickstart Example](https://github.com/ngrok/ngrok-nodejs/blob/main/examples/express/ngrok-express-quickstart.js), [Configuration Example](https://github.com/ngrok/ngrok-nodejs/blob/main/examples/express/ngrok-express.js)
84+
* [Fastify](https://www.fastify.io/) - [Example](https://github.com/ngrok/ngrok-nodejs/blob/main/examples/fastify/ngrok-fastify.js)
85+
* [Hapi](https://hapi.dev/) - [Example](https://github.com/ngrok/ngrok-nodejs/blob/main/examples/hapi/ngrok-hapi.js)
86+
* [Koa](https://koajs.com/) - [Example](https://github.com/ngrok/ngrok-nodejs/blob/main/examples/koa/ngrok-koa.js)
87+
* [Nest.js](https://nestjs.com/) - [Example main.ts](https://github.com/ngrok/ngrok-nodejs/blob/main/examples/nestjs/src/main.ts)
88+
* [Next.js](https://nextjs.org/) - [Example next.config.js](https://github.com/ngrok/ngrok-nodejs/blob/main/examples/nextjs/next.config.js) loading [ngrok.config.js](https://github.com/ngrok/ngrok-nodejs/blob/main/examples/nextjs/ngrok.config.js)
89+
* [Remix](https://remix.run/) - [Example remix.config.js](https://github.com/ngrok/ngrok-nodejs/blob/main/examples/remix/remix.config.js) loading [ngrok.config.js](https://github.com/ngrok/ngrok-nodejs/blob/main/examples/remix/ngrok.config.js)
90+
* [Svelte](https://svelte.dev/) - [Example svelte.config.js](https://github.com/ngrok/ngrok-nodejs/blob/main/examples/svelte/svelte.config.js) (works in vite.config.js too) loading [ngrok.config.cjs](https://github.com/ngrok/ngrok-nodejs/blob/main/examples/svelte/ngrok.config.cjs)
91+
* [Typescript](https://www.typescriptlang.org/) - [Example ts-node](https://github.com/ngrok/ngrok-nodejs/blob/main/examples/ngrok-typescript.ts)
92+
* [Vue](https://vuejs.org/) - [Example vite.config.ts](https://github.com/ngrok/ngrok-nodejs/blob/main/examples/vue/vite.config.ts) loading [ngrok.config.ts](https://github.com/ngrok/ngrok-nodejs/blob/main/examples/vue/ngrok.config.ts)
93+
* [Winston](https://github.com/winstonjs/winston#readme) Logging - [Example](https://github.com/ngrok/ngrok-nodejs/blob/main/examples/ngrok-winston.js)
9494

9595
## Tunnel Types
96-
* ngrok.connect - [ngrok.connect Minimal Example](https://github.com/ngrok/ngrok-js/blob/main/examples/ngrok-connect-minimal.js), [Full ngrok.connect Example](https://github.com/ngrok/ngrok-js/blob/main/examples/ngrok-connect-full.js)
97-
* HTTP - [ngrok.listen Example](https://github.com/ngrok/ngrok-js/blob/main/examples/ngrok-listen.js), [Minimal Example](https://github.com/ngrok/ngrok-js/blob/main/examples/ngrok-http-minimum.js), [Full Configuration Example](https://github.com/ngrok/ngrok-js/blob/main/examples/ngrok-http-full.js)
98-
* Labeled - [Example](https://github.com/ngrok/ngrok-js/blob/main/examples/ngrok-labeled.js)
99-
* TCP - [Example](https://github.com/ngrok/ngrok-js/blob/main/examples/ngrok-tcp.js)
100-
* TLS - [Example](https://github.com/ngrok/ngrok-js/blob/main/examples/ngrok-tls.js)
101-
* Windows Pipe - [Example](https://github.com/ngrok/ngrok-js/blob/main/examples/ngrok-windows-pipe.js)
96+
* ngrok.connect - [ngrok.connect Minimal Example](https://github.com/ngrok/ngrok-nodejs/blob/main/examples/ngrok-connect-minimal.js), [Full ngrok.connect Example](https://github.com/ngrok/ngrok-nodejs/blob/main/examples/ngrok-connect-full.js)
97+
* HTTP - [ngrok.listen Example](https://github.com/ngrok/ngrok-nodejs/blob/main/examples/ngrok-listen.js), [Minimal Example](https://github.com/ngrok/ngrok-nodejs/blob/main/examples/ngrok-http-minimum.js), [Full Configuration Example](https://github.com/ngrok/ngrok-nodejs/blob/main/examples/ngrok-http-full.js)
98+
* Labeled - [Example](https://github.com/ngrok/ngrok-nodejs/blob/main/examples/ngrok-labeled.js)
99+
* TCP - [Example](https://github.com/ngrok/ngrok-nodejs/blob/main/examples/ngrok-tcp.js)
100+
* TLS - [Example](https://github.com/ngrok/ngrok-nodejs/blob/main/examples/ngrok-tls.js)
101+
* Windows Pipe - [Example](https://github.com/ngrok/ngrok-nodejs/blob/main/examples/ngrok-windows-pipe.js)
102102

103103
# Async Programming
104104

@@ -135,7 +135,7 @@ Pre-built binaries are provided on NPM for the following platforms:
135135
| FreeBSD | || | |
136136
| Android | | |||
137137

138-
ngrok-js, and [ngrok-rs](https://github.com/ngrok/ngrok-rs/) which it depends on, are open source, so it may be possible to build them for other platforms.
138+
ngrok-nodejs, and [ngrok-rust](https://github.com/ngrok/ngrok-rust/) which it depends on, are open source, so it may be possible to build them for other platforms.
139139

140140
* Windows-aarch64 will be supported after the next release of [Ring](https://github.com/briansmith/ring/issues/1167).
141141

docs/assets/search.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)