AdonisJS v7 Ships End-to-End Type Safety, Reworked Starter Kits and Zero-Config OpenTelemetry
Briefly

AdonisJS v7 Ships End-to-End Type Safety, Reworked Starter Kits and Zero-Config OpenTelemetry
"The centrepiece of v7 is a type system that spans the full application stack through codegen. Route definitions generate TypeScript types consumed by a new urlFor helper, replacing the untyped router.makeUrl method from v6. Transformers provide a dedicated serialisation layer that generates .d.ts files at build time, giving frontend code typed access to API response shapes without manual duplication. For Inertia applications, the framework scans page components and enforces that inertia.render passes the correct props at compile time. A type-safe API client powered by Tuyau extends the same guarantees to separate frontend projects using TanStack Query or plain fetch."
"The release, which lands with 45+ updated packages and introduces three new ones: @adonisjs/otel for OpenTelemetry integration, @adonisjs/content for typed content collections, and edge-markdown for rendering Markdown with component syntax inside Edge templates. The headline feature is end-to-end type safety, alongside reworked starter kits, zero-configuration observability, and a completely rebuilt documentation site."
"v7 requires Node.js 24 as its minimum version, allowing the team to replace third-party dependencies with native platform APIs. The dotenv package has been swapped for Node's built-in util.parseEnv, and a new in-house JIT TypeScript compiler called ts-exec, built on the Rust-based SWC compiler at roughly 15 KB, replaces ts-node for development."
"Starter kits have been completely reworked. Rather than prompting developers through a series of configuration questions, v7 ships four opinionated kits (Hypermedia, API, React, and Vue) that include authentication flows, session management, and frontend tooling out of the box. The framework also introduces barrel file generation for controllers, events, and policies, eliminating the wall of lazy imports that"
AdonisJS v7 introduces end-to-end type safety across the application stack using code generation. Route definitions generate TypeScript types consumed by a new urlFor helper, replacing the untyped router.makeUrl method. Transformers generate .d.ts files at build time to provide typed frontend access to API response shapes. Inertia applications get compile-time enforcement that inertia.render passes the correct props. A type-safe API client extends these guarantees to separate frontend projects using TanStack Query or plain fetch. The release also adds OpenTelemetry integration, typed content collections, and Edge Markdown rendering with component syntax. Node.js 24 is required, enabling replacement of third-party dependencies with native APIs, including dotenv removal and a new ts-exec development compiler. Starter kits are reworked into four opinionated kits with authentication, session management, and frontend tooling included.
Read at InfoQ
Unable to calculate read time
[
|
]