http-nu 0.17.2

The surprisingly performant, Nushell-scriptable, cross.stream-powered, Datastar-ready HTTP server that fits in your back pocket.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# v0.17.1

## Highlights

- **`to sse` emits a `comment` field as an SSE comment line.** A record with a `comment` key now renders a `: text` line ahead of any `event` / `id` / `retry` / `data` lines. SSE comments are ignored by the browser but keep idle connections alive through proxies, so a handler can ship `{comment: "hb"}` as a heartbeat without patching the DOM. Empty (`Value::Nothing`) comments are skipped, matching how the other fields behave.

- **`value_to_json` no longer panics on types without a JSON analogue.** Dates, durations, filesizes, binary, closures, and similar values now fall back to their string rendering instead of hitting a `todo!()`. A record carrying a timestamp or duration field can be returned straight to an HTTP/JSON response without crashing the handler. The `data`-line JSON path (`value_to_bytes`) inherits the same fallback.

- **nu2048 example**: the splash page credits Datastar with the animated rocket; changelog link fixed.

## Raw commits

* fix: render unsupported value_to_json types as strings instead of panicking (2026-06-07)
* feat: emit an SSE comment line from a record's comment field (2026-06-07)
* feat(2048): splash credits Datastar with the animated rocket (2026-06-07)
* docs: fix nu2048 changelog link (trailing slash) (2026-06-07)
* chore: bump to v0.17.1-dev (2026-06-07)