| Name | Modified | Size | Downloads / 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.tson Deno) that runsrunContractTestsagainst the real app and proves the gate rejects a broken contract. It runs under the project'stesttask, so a missing or duplicateoperationId, 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-pushcontract hook. Templates ship.githooks/pre-pushplus ahooks:installscript that pointscore.hooksPathat it — a localhost-only gate that runs the contract check before a push (daloy inspect --checkon 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 withgit push --no-verify. A newcontractscript/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.tsafter the build, guarding the showcase app's contract (and thedaloy inspect --checkpath itself) against regressions.
Changed
- The scaffolder preserves file modes when copying templates (so the executable
pre-pushhook 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