Packages

ata-validator

1.61.3 · 29 Oct 2026MIT21.8k / weekRepositoryHomepagenpmAtom feed

Upgrading ata-validator from 1.26.0 to 1.27.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 1.26.0Newest 1.x, Latest1.61.3
0
changes to make
0
advisories fixed
2
new
1
fix

Release by release

  1. 1.27.0

    17 Sep 20262 new · 1 fix
    • new

      parse() is now emitted for the record shape: additionalProperties as a schema, which is what z.record and every generator's map type compile to, with or without declared properties beside it. The key set is open by declaration, so keeping every key is exact, and every undeclared value is rebuilt against the one schema that governs it, stripping unknown keys inside it the same way a declared property's rebuild would. Defaults under a record value are not filled, because the runtime's useDefaults does not fill them there and parse() output stays equal to validate().data. Still declined, loudly: additionalProperties: true, applicators next to a record, and patternProperties.

    • new

      onWarning now receives a second argument, { kind }, naming which capability degraded: 'error-detail' or 'parse'. A build that requested both can tell the warnings apart instead of treating any warning as degraded errors. build() result warnings carry the same kind field. Existing single-argument callbacks keep working unchanged.

    • fixed

      Two more fixed-name collisions in the generated-code path, the same family as the patternProperties helper-scope bug fixed in 1.26.0: a record whose values are themselves records (additionalProperties nested in itself) generated an inner loop that redeclared the outer loop's variables and threw ReferenceError at validation time, and patternProperties inside a patternProperties value schema had the same collision on its own loop variables. All the loop names now carry a unique suffix; the combined error generator already did this, and the boolean generator now matches it.