Download Latest Version v1.0.0-beta.4 source code.tar.gz (3.0 MB)
Email in envelope

Get an email when there's a new version of DaloyJS

Home / v0.39.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-06-17 1.8 kB
v0.39.0 source code.tar.gz 2026-06-17 2.7 MB
v0.39.0 source code.zip 2026-06-17 3.4 MB
Totals: 3 Items   6.1 MB 0

Added

  • Redoc is now a third built-in OpenAPI docs UI, alongside Scalar (default) and Swagger UI. Set docs: { ui: "redoc" } on the App constructor to render Redoc at /docs, and pass Redoc options through docs.redoc (forwarded to Redoc.init). A new redocHtml helper is exported from @daloyjs/core/docs for manual mounting, with matching RedocConfiguration and RedocHtmlOptions types. Because Redoc spins up a blob: Web Worker for search, the auto-mounted /docs CSP widens with worker-src 'self' blob: for ui: "redoc" only — Scalar and Swagger UI keep the tighter default.

Fixed

  • otelTracing now follows the OTel HTTP semantic conventions for server.address/server.port. The span attribute server.address previously carried the host with its port (e.g. api.example.com:8443); it now holds the bare hostname and the port is emitted separately as the numeric server.port, so traces line up with conformant backends.
  • httpMetrics no longer drives the in-flight gauge negative on OPTIONS preflight. A CORS preflight handled by the framework's preflightHooks (when no OPTIONS route is registered) calls onSend without a prior onRequest, so the gauge is now only balanced — and request/duration metrics recorded — when a matching onRequest actually ran for that request.

Documentation

  • Added runnable observability example stacks: an OpenTelemetry tracing demo wired to Jaeger over OTLP, and a Prometheus + Grafana metrics integration stack.

create-daloy is a lockstep 0.39.0 bump: every template now pins @daloyjs/core@^0.39.0 (jsr:@daloyjs/daloy@^0.39.0 for the Deno template).

Full changelog: https://github.com/daloyjs/daloy/compare/v0.38.3...v0.39.0

Source: README.md, updated 2026-06-17