3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-21 15:42:58 +01:00

Answer prose round 1: one name per thing in the new docs, the changelog points at MIGRATION's rows, item 82 drops its partial file list

This commit is contained in:
2026-10-05 09:43:52 +02:00
committed by Lillem4n
parent dbc8b91f91
commit 380a894589
8 changed files with 21 additions and 29 deletions
+1 -4
View File
@@ -3,10 +3,7 @@
## Unreleased
- **Breaking:** `markdownToAdf` and `plainMarkdownToAdf` refuse a value that is not a string with
the new code `not-a-string`, at position `{ line: 1, offset: 0 }`. Before, `null`, `undefined`
and a non-empty array threw a `TypeError`, a `String` object converted its text, and a number
read as an empty document; pass `String(value)` where a boxed string arrives. A `switch` over
`ConvertErrorCode` naming every code needs the new case.
the new code `not-a-string`; `MIGRATION.md` lists what each value did before.
- **Breaking:** an attribute value that is not a plain object, array or JSON primitive, such as a
`Date`, `Map`, typed array or class instance, makes `isAdfDocument` return `false` and the
converters refuse it as `not-an-adf-document`. Before, the converters wrote it as `{}` or its own