ata-validator
1.61.3 · 29 Oct 2026MIT21.8k / weekRepositoryHomepagenpmAtom feed
1.61.3 is the newest release of 1.x.
In short
1 changed
Release note
Changed
new Validator(schema)no longer walks the schema. Normalization (the draft-07 rewrites,nullable,formatremoval underassertFormat: false) and the scan that decides whether any of it is needed now run on the first read of the schema, which is the first compile. Construction is the instance and its fields. Measured on the schema-benchmarks product schema built fresh each time: 4.28 to 0.91 µs; with the@ata-project/keywordswrapper (0.3.1, which reads the schema lazily too) 6.70 to 2.81 µs. Nothing observable changes for a schema that is used: the same normalized document reaches the engines, and the identity cache,keywords,assertFormatandsourceoptions behave as before.tests/test_lazy_normalization.jscounts property reads on the schema during construction and holds them at the dialect lookup alone.
Suite: Draft 2020-12 1299 of 1299, draft 7 927 of 927, v1 1133 of 1133.