---
package: "@webjsdev/cli"
version: 0.10.5
date: 2026-06-03T01:13:24.900Z
commit_count: 3
---
## Features

- **fail fast on Node below 24 with a clear preflight** ([#282](https://github.com/webjsdev/webjs/pull/282)) [`a44583e1`](https://github.com/webjsdev/webjs/commit/a44583e1)

  The CLI runs a dependency-free Node-version preflight at the very top (before importing `@webjsdev/server`), so a Node below 24 exits with a clear, actionable message naming the found and required version instead of a cryptic link-time error. The new `lib/node-preflight.js` reads the required major from the package's own `engines.node`.

- **demonstrate cors() in the api scaffold** ([#280](https://github.com/webjsdev/webjs/pull/280)) [`6527ac81`](https://github.com/webjsdev/webjs/commit/6527ac81)

  `webjs create --template api` now scaffolds a root `middleware.ts` applying the new `cors()` primitive with an explicit origin allowlist, so a fresh API app ships correct, safe CORS rather than a hand-rolled one.

- **scaffold the saas signup form as a no-JS page action** ([#277](https://github.com/webjsdev/webjs/pull/277)) [`bcd11a85`](https://github.com/webjsdev/webjs/commit/bcd11a85)

  The saas template's signup page now posts to a page `action` that validates and re-renders with field errors and preserved input (the canonical progressive-enhancement form pattern), replacing the prior inert form that silently lost data on submit.
