Skip to content

Release v0.19.1

Latest

Choose a tag to compare

@github-actions github-actions released this 30 Nov 22:32
· 3 commits to main since this release

v0.19.1

Highlights

Cache busting for static files

.static-href adds a hash of a file's content to its path, so a browser caches the file until the file changes:

$"<link rel=stylesheet href=(.static-href ./www /site.css)>"   # /site.css?v=8f3a2c1d
.static ./www $req.path

When a request's ?v= matches the file's hash, .static sends cache-control: public, max-age=31536000, immutable. Otherwise it sends no-cache.

ETags for static files

.static sends an ETag with each file, and answers If-None-Match with a 304 when the file hasn't changed. It doesn't send Last-Modified, because a git checkout on deploy resets every file's mtime.

Other changes to .static (#70):

  • Text is brotli-compressed when the client accepts it.
  • A request for several ranges gets a multipart 206. Before, it got a 416.
  • Files are streamed from disk. Before, each was read into memory first.
  • A folder requested without its trailing slash redirects to d/. Before, it redirected to //d/, which a browser reads as a host named d.

Log headers

With --log-format jsonl, the log keeps only these headers: host, user-agent, accept, content-type, content-length, content-encoding and cache-control. Query values are logged empty. Before, it kept every header, including authorization, cookie and set-cookie. --log-headers sets a different list (#68):

http-nu --log-format jsonl --log-headers host,user-agent,x-request-id :3001 ./serve.nu

Editor support

http-nu --lsp runs Nushell's language server with http-nu's commands and embedded modules loaded. An editor using it accepts use http-nu/html *, which nu --lsp reports as "Module not found". The store's commands are not loaded, as they need a store (#72). In Helix's languages.toml:

[language-server.http-nu]
command = "http-nu"
args = ["--lsp"]

[[language]]
name = "nu"
language-servers = ["http-nu"]

Client disconnects

A handler is stopped as soon as its client disconnects, including before the response has started. Before, a handler that hadn't written anything yet kept running, along with its child processes, until it produced output (#66).

New versions

v0.19.0 v0.19.1
cross-stream (xs) 0.16.0 0.16.1

In xs 0.16.1, the store commands can use another store by setting XS_ADDR. The xs 0.16.1 release notes have the details.

Other changes

  • Security updates for lz4_flex, rand and xxhash-rust (#67).
  • The README shows how to install with mise (#71).

Raw commits

  • feat: http-nu --lsp, a language server that knows http-nu's modules and commands (#72) (2026-11-30)
  • docs: install with mise (#71) (2026-11-30)
  • fix: update dependencies with open security alerts (#67) (2026-11-28)
  • feat: serve static files without ServeDir (#70) (2026-11-27)
  • feat: the log keeps only safe headers (#68) (2026-11-24)
  • fix: stop a handler as soon as its client hangs up (#66) (2026-11-19)
  • chore: bump to v0.19.1-dev (2026-11-18)