Skip to content

Add TOON support to file-based channels#1805

Merged
nmaguiar merged 1 commit intot8from
codex/add-toon-format-support-in-openaf-channel-file
Apr 15, 2026
Merged

Add TOON support to file-based channels#1805
nmaguiar merged 1 commit intot8from
codex/add-toon-format-support-in-openaf-channel-file

Conversation

@nmaguiar
Copy link
Copy Markdown
Collaborator

@nmaguiar nmaguiar commented Apr 15, 2026

Motivation

  • Provide native support for the TOON serialization format for file-backed channels so code can read/write TOON alongside existing JSON/YAML formats.
  • Reuse existing af.fromTOON/af.toTOON helpers to handle TOON payloads consistently across single-file and multifile modes.

Description

  • Added a new options.toon boolean to ow.ch.types.file and updated the js/owrap.ch.js docs to mention TOON support.
  • Introduced a helper __fext to centralize file extension selection and used it when composing index/data filenames and delete paths.
  • Implemented TOON read/write paths using af.fromTOON and af.toTOON for plain, gzip and lz4 streams in both single-file (__r, __w) and multifile (__rf, __wf) flows.
  • Ensure format selection is unambiguous by disabling YAML when toon is explicitly enabled.

Testing

  • Performed a syntax check with node --check js/owrap.ch.js, which completed successfully.

@nmaguiar nmaguiar marked this pull request as ready for review April 15, 2026 23:39
@nmaguiar nmaguiar merged commit 47ca3a3 into t8 Apr 15, 2026
1 of 2 checks passed
@nmaguiar nmaguiar deleted the codex/add-toon-format-support-in-openaf-channel-file branch April 15, 2026 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant