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.41.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-06-18 1.9 kB
v0.41.0 source code.tar.gz 2026-06-18 2.8 MB
v0.41.0 source code.zip 2026-06-18 3.5 MB
Totals: 3 Items   6.2 MB 0

A tooling release for the create-daloy scaffolder: every generated project now gates its OpenAPI contract automatically, and gets an opt-in localhost pre-push hook. @daloyjs/core publishes at the same version in lockstep — there is no runtime code change this release (the runContractTests runner and daloy inspect --check already shipped in 0.40.0); only the scaffolder, its templates, the docs, and the package README change.

Added

  • Contract gate in every template. Each scaffold now ships a tests/contract.test.ts (tests/contract_test.ts on Deno) that runs runContractTests against the real app and proves the gate rejects a broken contract. It runs under the project's test task, so a missing or duplicate operationId, a response example that doesn't match its schema, or a route with no declared responses fails CI from the first commit.
  • Opt-in pre-push contract hook. Templates ship .githooks/pre-push plus a hooks:install script that points core.hooksPath at it — a localhost-only gate that runs the contract check before a push (daloy inspect --check on Node / Vercel / Cloudflare, the contract test on Bun / Deno). It skips gracefully when tooling is absent (never blocks a push over a missing dependency) and is bypassable with git push --no-verify. A new contract script/task runs the same check on demand.
  • Example-app contract gated in CI. The framework's own CI now runs daloy inspect --check examples/app.ts after the build, guarding the showcase app's contract (and the daloy inspect --check path itself) against regressions.

Changed

  • The scaffolder preserves file modes when copying templates (so the executable pre-push hook survives scaffolding) and maps the authored _githooks/ directory to .githooks/ in generated projects.

Full changelog: https://github.com/daloyjs/daloy/compare/v0.40.0...v0.41.0

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