| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README.md | 2026-06-16 | 3.1 kB | |
| v0.38.3 source code.tar.gz | 2026-06-16 | 2.7 MB | |
| v0.38.3 source code.zip | 2026-06-16 | 3.4 MB | |
| Totals: 3 Items | 6.0 MB | 0 | |
@daloyjs/core has no runtime changes; this is a lockstep bump alongside the
create-daloy Vercel-template fixes below, so a freshly scaffolded Vercel
project deploys cleanly.
Fixed
- The
verceltemplate now deploys cleanly on Vercel out of the box. Two issues made a freshly scaffolded Vercel project error on deploy: - Root routing. Vercel maps
api/<file>to/api/<file>, but a DaloyJS app routes at the root, so the oldapi/[...path].tsonly answered/api/*and the deployed root domain returned a Vercel 404. The template now ships a singleapi/index.tsplus avercel.jsonrewrite (/(.*)→/api) — the canonical Vercel "framework owns routing" pattern — so the app's routes (/healthz,/docs, …) are served at the site root. - Proxy posture. Vercel always proxies through its edge and sets
x-forwarded-for, so DaloyJS's production boot guard returned 500 on every request. The template now setsbehindProxy: { hops: Number(process.env.TRUST_PROXY_HOPS ?? "1") }(Vercel is one trusted edge hop; override the env var if another proxy sits in front). - The
cloudflare-workertemplate no longer 500s on deploy. Cloudflare Workers always run behind Cloudflare's edge (which setsx-forwarded-for), so the same unconfigured-proxy boot guard returned 500 on every request. The template now setsbehindProxy: { hops: 1 }(Cloudflare is one trusted edge hop). It also now enablesdocs: truefor parity with the other templates, so/docs,/openapi.json, and/openapi.yamlare served (the Scalar UI loads from a CDN, so the Worker bundle cost is negligible). - The
verceltemplate'spnpm devno longer recurses. It previously aliasedvercel dev, which Vercel rejects (vercel dev must not recursively invoke itself) because it re-reads that script as its dev command.pnpm devnow runs a local Node dev server (src/dev.ts) that serves the same app over@daloyjs/core/nodeat the site root — fast iteration with novercel devor Vercel login. - Scalar's "Try it" panel works on every deploy target. The
node-basic,bun-basic, anddeno-basictemplates previously set an OpenAPIserversURL that fell back tolocalhost, which the browser'sconnect-src 'self'CSP blocked once deployed where noPUBLIC_URL/RAILWAY_PUBLIC_DOMAINwas set (e.g. Deno Deploy). They now leaveserversunset by default so Scalar calls the origin the docs are served from (the deployed domain in production, localhost in dev); setPUBLIC_URLto pin an absolute base URL.
Security
- Pin transitive, dev-only dependencies to clear OSV advisories via pnpm
overrides:
esbuild>= 0.28.1 (GHSA-gv7w-rqvm-qjhr, GHSA-g7r4-m6w7-qqqr) andjs-yaml>= 4.2.0 (GHSA-h67p-54hq-rp68). Both are build-time only and not part of the published@daloyjs/coresurface.
Documentation
- Refreshed the Vercel adapter, scaffolder, and deployment docs to the single
api/index.ts+ rewrite pattern.
Full changelog: https://github.com/daloyjs/daloy/compare/v0.38.2...v0.38.3