文件历史

9 次代码提交

作者 SHA1 备注 提交日期
Phumrapee Limpianchop 1336074d43 fix(decode): prevent false array header detection for unquoted keys c… (#314)
CI / ci (push) Has been cancelled
Deploy Docs / Deploy Docs (push) Has been cancelled
* fix(decode): prevent false array header detection for unquoted keys containing brackets and colons

* test(decode): pin stream parity for an unquoted bracket-colon scalar

* chore(toon): bump `@toon-format/spec` to ^3.3.2

---------

Co-authored-by: Johann Schopplich <johann@schopplich.com>
2026-07-18 21:15:25 +02:00
Johann Schopplich 9024af9e6a fix(decode): treat quoted spans as opaque in line classification 2026-07-16 07:22:49 +02:00
Chris Korhonen 94a2b7560b fix: harden encode and decode against prototype pollution (#316)
* fix: prevent prototype pollution during decode

* fix: preserve __proto__ during encode

* fix: ignore inherited tabular fields

* refactor: consolidate own-property helper and tighten __proto__ regression tests

* perf: fast-path setOwnProperty for non-__proto__ keys

* docs: trim object-utils remarks to rationale

* chore: update comment

---------

Co-authored-by: Johann Schopplich <johann@schopplich.com>
2026-07-15 22:58:34 +02:00
Johann Schopplich 702301231c fix(decode): slice key-value rest at key token end offset 2026-07-15 18:30:22 +02:00
Johann Schopplich 0f0b1b3217 test: remove unneeded comments 2026-05-08 22:03:03 +02:00
Johann Schopplich 7dabdb303b test: remove duplications 2026-05-08 21:53:18 +02:00
Johann Schopplich c6ab05141f fix: preserve empty-string keys in array headers across encode/decode (closes #281) 2026-02-22 19:06:45 +01:00
Johann Schopplich 7a05d03e73 test(cli) add streaming events coverage 2025-11-22 08:53:47 +01:00
Johann Schopplich 6c57a14009 feat: streaming decode functionality with event-based parsing (closes #131) 2025-11-21 22:29:57 +01:00