3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-20 23:25:43 +01:00

Answer product-owner round 1: mark the class-instance refusal breaking and name the remedy, file item 80

This commit is contained in:
2026-10-05 01:03:17 +02:00
committed by Lillem4n
parent 0cdc56a56f
commit 6b2e96ff3f
2 changed files with 5 additions and 3 deletions
+4 -2
View File
@@ -2,8 +2,10 @@
## Unreleased
- Fix an attribute value JSON does not hold — a `Date`, `Map`, `Set`, typed array or class instance —
passing `isAdfDocument` and converting as `{}`: it is `not-an-adf-document`.
- **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`, where it was written as `{}` or its own keys.
Build it as JSON holds it: `date.toISOString()`, `Object.fromEntries(map)`, `{ ...instance }`.
- The README opens with what the package does and for whom, and `package.json` carries search
keywords.
- The source moves to [github.com/larvit/adf-codec](https://github.com/larvit/adf-codec), where