v0.3.0
Aligned with ata-validator@0.11.0 / 0.11.1.
Added
abortEarlyoption passes through to the validator. On failure the plugin returns a shared stub result instead of running the detailed error collector. On a 10-property schema the invalid path drops from roughly 15 ns/op to 3.7 ns/op. Useful for high-throughput route guards that only need accept / reject.
fastify.register(require('fastify-ata'), {
coerceTypes: true,
removeAdditional: true,
abortEarly: true,
})Fixed
- Removed an accidental self-dependency (
fastify-atadepending onfastify-ata) inpackage.json. - Dropped the
turbooption from the type declarations — it was never implemented in the current surface.
Docs
Updated README with the numbers verified against ata-validator@0.11.x on M4 Pro / Node 25:
- Fastify pipeline: tied on valid, +3% on invalid
- Serverless cold start (10 routes, first request): 12.4 ms → 0.5 ms (~24x)
abortEarlyinvalid path: 4x
Added a section on the new ata compile CLI for browser / edge deployments.
Install
npm install fastify-ata@0.3.0