Repository navigation
Major Changes
- Require Node.js 24 or later.
Minor Changes
- Rewrite the source in TypeScript and generate the type declarations from it:
dist/index.d.mtsanddist/index.d.ctsreplace the hand-writtentypings.d.mtsandtypings.d.cts.IOutputErrorgainspath, which thejsformat has returned since 0.6.5, anderrorsacceptsnullandundefined, as ajv'svalidate.errorscan be. When thejsonoption lacks part of an error's path, the error names that part, such asCouldn't find index 1 of /a/1, instead of throwingCannot destructure property 'loc'.
Patch Changes
-
Measure the distance for "Did you mean" suggestions in
enumerrors withoutleven, which removes it from the dependencies. -
Remove the code meant to add an array element's
typeafter its index inerrorpaths. It has matched nothing since 1.1.0, so the output is unchanged.