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:
+1
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user