Convert between CBOR, JSON, MessagePack, TOML, and YAML
Breaking changes:
NO
, No
, and no
being decoded as boolean false). Remarshal can now correctly process GitHub Actions YAML. To implement this, we have migrated from PyYAML to ruamel.yaml. The option --sort-keys
no longer affects YAML output due to a lack of support in the new YAML library. Because ruamel.yaml is not yet considered stable, the 1.0 release of Remarshal is postponed.remarshal
has changed. A type checker like mypy or Pyright can help you upgrade. We hope to make this the biggest change before the API is declared stable in version 1.0.Non-breaking changes:
-f
/--from
and -t
/--to
like in Pandoc and iconv(1). We have hidden (but kept) -if
and -of
with a single dash. Those are legacy options from the Go days of Remarshal.--verbose
command-line option has been added for debugging.NO_COLOR
.on
key from YAML to JSON. While this is a breaking change, it should not affect most users.-k
/--stringify
restores the old JSON conversion behavior of turning boolean and null keys into strings. Additionally, it turns date-time keys into strings and works for both JSON and TOML. it also converts null values to strings for TOML, since TOML does not have null.--json-indent
.--json-indent n
, -s
/--sort-keys
, --yaml-indent n
, --yaml-width n
. --json-indent n
is a synonym for --indent-json n
consistent with the YAML options. Prefer it to the older option.-p
/--preserve-key-order
for compatibility, but it does nothing. Pass -s
/--sort-keys
to enable the previous default behavior.This release updates metadata and infrastructure. There are no user-visible changes.
This version
-rc
);This is a technical release that doesn't impact users. After a long period of using legacy tooling, remarshal has migrated to Poetry.