-
Suppress warnings previously printed to
stdout
when parsing YAML internally. -
Fix error thrown when inserting duplicate keys to different maps in the same list. (#69)
-
Fix error thrown when inserting in nested list using
spliceList
method (#83) -
Fix error thrown when string has spaces when applying
ScalarStyle.FOLDED
. (#41). Resolves ([#86]).
- Require Dart 3.0
- Fix removal of last key in blockmap when key has no value (#55).
-
Fix inconsistent line endings when inserting maps into a document using
\r\n
. (#65) -
AliasError
is changed toAliasException
and exposed in the public API.All node-mutating methods on
YamlEditor
, i.e.update()
,appendToList()
,prependToList()
,insertIntoList()
,spliceList()
,remove()
will now throw an exception instead of an error when encountering an alias on the path to modify.This allows catching and handling when this is happening.
- Require Dart 2.19
- Breaking
wrapAsYamlNode(value, collectionStyle, scalarStyle)
will applycollectionStyle
andscalarStyle
recursively when wrapping a children ofMap
andList
. While this may change the style of the YAML documents written by applications that rely on the old behavior, such YAML documents should still be valid. Hence, we hope it is reasonable to make this change in a minor release. - Fix for cases that can't be encoded correctly with
scalarStyle: ScalarStyle.SINGLE_QUOTED
. - Fix YamlEditor
appendToList
andinsertIntoList
functions inserts new item into next yaml item rather than at end of list. (#23)
- Updated the value of the pubspec
repository
field.
- Fix trailing whitespace after adding new key with block-value to map (#15).
- Updated
repository
and other meta-data inpubspec.yaml
.
- License changed to BSD, as this package is now maintained by the Dart team.
- Fixed minor lints.
- Migrated to null-safety.
- API will no-longer return
null
in-place of aYamlNode
, instead aYamlNode
withYamlNode.value == null
should be used. These are easily created withwrapAsYamlNode(null)
.
- Fixed bug in adding an empty map as a map value.
- Throws an error if the final YAML after edit is not parsable.
- Fixed bug in adding to empty map values, when it is followed by other content.
- Updated behavior surrounding list and map removal.
- Fixed bug in dealing with empty values.
- Initial release.