@dpkrn/nodetunnel 1.0.10 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,63 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project are documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [Unreleased]
8
+
9
+ Nothing unreleased yet.
10
+
11
+ ## [1.0.10] - 2026-04-12
12
+
13
+ ### Changed
14
+
15
+ - Expanded README with clearer coverage of what nodetunnel does and how to use it.
16
+
17
+ ## [1.0.9] - 2026-04-12
18
+
19
+ ### Added
20
+
21
+ - Makefile with `pkg` (publish) and `test` targets for maintainers.
22
+ - Contributor Covenant Code of Conduct.
23
+ - Local traffic inspector: HTTP UI plus WebSocket streaming of request/response logs (via `ws`).
24
+ - Structured logging store for tunneled HTTP exchanges.
25
+
26
+ ### Changed
27
+
28
+ - Refactor of the published tunnel package layout and dependencies.
29
+ - Clearer logging during tunnel setup and while forwarding requests.
30
+
31
+ ## [1.0.8] - 2026-04-12
32
+
33
+ ### Changed
34
+
35
+ - Maintenance release (version alignment).
36
+
37
+ ## [1.0.7] - 2026-04-12
38
+
39
+ ### Changed
40
+
41
+ - Default tunnel server host set to `clickly.cv`.
42
+ - Public URL string returned by the tunnel client updated for consistency with the server.
43
+ - Tunnel handshake and messaging updated (connection UUID and success-line formatting for the assigned URL).
44
+
45
+ ## [1.0.4] - 2026-04-03
46
+
47
+ ### Added
48
+
49
+ - Node.js tunnel library: expose a local HTTP server through a gotunnel/yamux-compatible remote (`startTunnel` and related APIs).
50
+
51
+ ## [1.0.2] - 2026-04-03
52
+
53
+ ### Added
54
+
55
+ - Initial `@dpkrn/nodetunnel` package scaffold.
56
+
57
+ [Unreleased]: https://github.com/DpkRn/nodetunnel/compare/v1.0.10...HEAD
58
+ [1.0.10]: https://github.com/DpkRn/nodetunnel/compare/v1.0.9...v1.0.10
59
+ [1.0.9]: https://github.com/DpkRn/nodetunnel/compare/v1.0.8...v1.0.9
60
+ [1.0.8]: https://github.com/DpkRn/nodetunnel/compare/v1.0.7...v1.0.8
61
+ [1.0.7]: https://github.com/DpkRn/nodetunnel/compare/v1.0.4...v1.0.7
62
+ [1.0.4]: https://github.com/DpkRn/nodetunnel/compare/v1.0.2...v1.0.4
63
+ [1.0.2]: https://github.com/DpkRn/nodetunnel/releases/tag/v1.0.2
@@ -4,6 +4,7 @@ import { startTunnel } from "../../pkg/tunnel/tunnel.js";
4
4
 
5
5
  const app = express();
6
6
  app.set("etag", false);
7
+ app.use(express.json());
7
8
  const PORT = process.env.PORT || 8080;
8
9
  /** Random id per process — if this doesn’t match your terminal on each restart, another process is bound to the port. */
9
10
  const INSTANCE = Math.random().toString(36).slice(2, 10);
@@ -26,6 +27,20 @@ app.get("/", async (req, res) => {
26
27
  res.send("Backend is running");
27
28
  });
28
29
 
30
+ /**
31
+ * POST echo: path params (`:category`, `:itemId`), query string, and JSON body.
32
+ * Example: POST /test/widgets/42?verbose=1&tag=a with body `{"name":"x"}`
33
+ */
34
+ app.post("/test/:category/:itemId", (req, res) => {
35
+ console.log("server received request");
36
+ console.log("req.body",req.body);
37
+ res.status(200).json({
38
+ pathParams: req.params,
39
+ query: req.query,
40
+ body: req.body,
41
+ });
42
+ });
43
+
29
44
  app.listen(PORT, async () => {
30
45
  console.log(`listening on http://localhost:${PORT}`);
31
46
  try {