Repository navigation
v0.3.0
Breaking
YAML.decode/2returns a single document directly instead of a one-element list,
andnilfor empty input. Change{:ok, [doc]} = YAML.decode(...)to
{:ok, doc} = YAML.decode(...).
Added
YAML.encode/2andYAML.encode!/2, for Elixir data, aYAML.AST.Documentor a list of them (#18).YAML.encode_to_iodata/2andYAML.encode_to_iodata!/2(#18).YAML.encode_stream/2andYAML.encode_stream!/2(#19).YAML.decode_stream/2andYAML.decode_stream!/2(#19).:sort_mapsencode option to write map keys in sorted order (#18).YAML.EncodeError, with:typeand the:locationof the value that failed (#9).
Fixed
return: :first_documentreturnsnilfor empty input instead of crashing.- Non-tuple
yamerl_optsreturn an error instead of crashing. - Unknown option errors name the option.
- Hex package and documentation links point to the right GitHub repository.
- Input that crashes yamerl's parser returns an error instead of raising.
Full changelog: v0.2.0...v0.3.0