Zod
neueste 4.6.7
- npm zod
- github colinhacks/zod
Was zu tun ist
neueste4.6.7
warning: 2 Eingriffe
- Releases, 4.0.0 bis 4.6.7
- 28
- brauchen einen Eingriff
- 2
- noch keine Zusammenfassung
- 3
- digest-Fixes, die du überspringen kannst
- 23
was sich geändert hat, in der Reihenfolge des Upgrades
v428 Releases · 5 notable · 23 digest nach 4.0.0, 2 brauchen einen Eingriff, 3 nicht zusammengefasst
- notable4.2.0
note: keine Zusammenfassung für dieses ältere Releasedie Release Notes lesen
digest1 digest-Release
- notable4.3.0
note: keine Zusammenfassung für dieses ältere Releasedie Release Notes lesen
- notable4.4.0
note: keine Zusammenfassung für dieses ältere Releasedie Release Notes lesen
- notable4.5.0
Zod 4.5 adds z.compile() for faster parsing, but several validators now reject input they used to accept.
warning: Eingriff nötig · 6 Breaking Changes
- breaking[1]:
z.iso.datetime()no longer accepts minute-precision input such as2020-01-01T06:15Z, so seconds are required. - breaking[2]:
.min(),.max()and.length()now count Unicode code points, not UTF-16 code units, so emoji and other astral characters count differently. - breaking[3]:A record's key schema only governs the keys that match it, and intersections with pattern-keyed records no longer reject the object's own keys.
- breaking[4]:Object and record parsers now always drop a
__proto__key, and.strict()reports an own__proto__input key asunrecognized_keys. - breaking[5]:
z.ulid()now restricts the first character to 0 to 7, rejecting fixtures that start with a higher character or a letter. - breaking[6]:Number and bigint formats are now distinguished at the type level.
- breaking[1]:
- notable4.6.0
Zod 4.6 adds .validate() and z.iban(), but changes error timing, emoji and email checks, and JSON Schema output.
warning: Eingriff nötig · 4 Breaking Changes
- breaking[1]:Error maps run when
result.erroris first read, not at parse time, so a configuration swapped in between sees the newer configuration. - breaking[2]:
z.emoji()rejects strings made only of emoji components, such as123or#, which 4.5 accepted. - breaking[3]:
.optionson a numeric enum no longer includes the reverse mapping keys. - breaking[4]:
z.regexes.emailno longer has capture groups.
- breaking[1]:Error maps run when