yaml_edit 2.2.2 yaml_edit: ^2.2.2 copied to clipboard
A library for YAML manipulation with comment and whitespace preservation.
2.2.2 #
-
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.1
-
Move to
dart-lang/tools
monorepo.
2.2.0 #
-
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.
2.1.1 #
- Require Dart 2.19
2.1.0 #
- 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)
2.0.3 #
- Updated the value of the pubspec
repository
field.
2.0.2 #
- Fix trailing whitespace after adding new key with block-value to map (#15).
- Updated
repository
and other meta-data inpubspec.yaml
.
2.0.1 #
- License changed to BSD, as this package is now maintained by the Dart team.
- Fixed minor lints.
2.0.0 #
- 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)
.
1.0.3 #
- Fixed bug in adding an empty map as a map value.
1.0.2 #
- 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.
1.0.1 #
- Updated behavior surrounding list and map removal.
- Fixed bug in dealing with empty values.
1.0.0 #
- Initial release.