Skip to content

v0.3.0

Choose a tag to compare

@mertcanaltin mertcanaltin released this 24 Apr 10:25
· 16 commits to main since this release

Aligned with ata-validator@0.11.0 / 0.11.1.

Added

  • abortEarly option 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-ata depending on fastify-ata) in package.json.
  • Dropped the turbo option 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)
  • abortEarly invalid path: 4x

Added a section on the new ata compile CLI for browser / edge deployments.

Install

npm install fastify-ata@0.3.0