|
| 1 | +## 2.2.2 |
| 2 | + |
| 3 | +- Suppress warnings previously printed to `stdout` when parsing YAML internally. |
| 4 | +- Fix error thrown when inserting duplicate keys to different maps in the same |
| 5 | + list. |
| 6 | + ([#69](https://github.com/dart-lang/yaml_edit/issues/69)) |
| 7 | + |
| 8 | +- Fix error thrown when inserting in nested list using `spliceList` method |
| 9 | + ([#83](https://github.com/dart-lang/yaml_edit/issues/83)) |
| 10 | + |
| 11 | +- Fix error thrown when string has spaces when applying `ScalarStyle.FOLDED`. |
| 12 | + ([#41](https://github.com/dart-lang/yaml_edit/issues/41)). Resolves |
| 13 | + ([[#86](https://github.com/dart-lang/yaml_edit/issues/86)]). |
| 14 | + |
| 15 | +- Require Dart 3.1 |
| 16 | + |
| 17 | +- Move to `dart-lang/tools` monorepo. |
| 18 | + |
| 19 | +## 2.2.1 |
| 20 | + |
| 21 | +- Require Dart 3.0 |
| 22 | +- Fix removal of last key in blockmap when key has no value |
| 23 | + ([#55](https://github.com/dart-lang/yaml_edit/issues/55)). |
| 24 | + |
| 25 | +## 2.2.0 |
| 26 | + |
| 27 | +- Fix inconsistent line endings when inserting maps into a document using `\r\n`. |
| 28 | + ([#65](https://github.com/dart-lang/yaml_edit/issues/65)) |
| 29 | + |
| 30 | +- `AliasError` is changed to `AliasException` and exposed in the public API. |
| 31 | + |
| 32 | + All node-mutating methods on `YamlEditor`, i.e. `update()`, `appendToList()`, |
| 33 | + `prependToList()`, `insertIntoList()`, `spliceList()`, `remove()` will now |
| 34 | + throw an exception instead of an error when encountering an alias on the path |
| 35 | + to modify. |
| 36 | + |
| 37 | + This allows catching and handling when this is happening. |
| 38 | + |
| 39 | +## 2.1.1 |
| 40 | + |
| 41 | +- Require Dart 2.19 |
| 42 | + |
| 43 | +## 2.1.0 |
| 44 | + |
| 45 | +- **Breaking** `wrapAsYamlNode(value, collectionStyle, scalarStyle)` will apply |
| 46 | + `collectionStyle` and `scalarStyle` recursively when wrapping a children of |
| 47 | + `Map` and `List`. |
| 48 | + While this may change the style of the YAML documents written by applications |
| 49 | + that rely on the old behavior, such YAML documents should still be valid. |
| 50 | + Hence, we hope it is reasonable to make this change in a minor release. |
| 51 | +- Fix for cases that can't be encoded correctly with |
| 52 | + `scalarStyle: ScalarStyle.SINGLE_QUOTED`. |
| 53 | +- Fix YamlEditor `appendToList` and `insertIntoList` functions inserts new item into next yaml item |
| 54 | + rather than at end of list. |
| 55 | + ([#23](https://github.com/dart-lang/yaml_edit/issues/23)) |
| 56 | + |
| 57 | +## 2.0.3 |
| 58 | + |
| 59 | +- Updated the value of the pubspec `repository` field. |
| 60 | + |
| 61 | +## 2.0.2 |
| 62 | + |
| 63 | +- Fix trailing whitespace after adding new key with block-value to map |
| 64 | + ([#15](https://github.com/dart-lang/yaml_edit/issues/15)). |
| 65 | +- Updated `repository` and other meta-data in `pubspec.yaml`. |
| 66 | + |
| 67 | +## 2.0.1 |
| 68 | + |
| 69 | +- License changed to BSD, as this package is now maintained by the Dart team. |
| 70 | +- Fixed minor lints. |
| 71 | + |
| 72 | +## 2.0.0 |
| 73 | + |
| 74 | +- Migrated to null-safety. |
| 75 | +- API will no-longer return `null` in-place of a `YamlNode`, instead a |
| 76 | + `YamlNode` with `YamlNode.value == null` should be used. These are easily |
| 77 | + created with `wrapAsYamlNode(null)`. |
| 78 | + |
| 79 | +## 1.0.3 |
| 80 | + |
| 81 | +- Fixed bug in adding an empty map as a map value. |
| 82 | + |
| 83 | +## 1.0.2 |
| 84 | + |
| 85 | +- Throws an error if the final YAML after edit is not parsable. |
| 86 | +- Fixed bug in adding to empty map values, when it is followed by other content. |
| 87 | + |
| 88 | +## 1.0.1 |
| 89 | + |
| 90 | +- Updated behavior surrounding list and map removal. |
| 91 | +- Fixed bug in dealing with empty values. |
| 92 | + |
| 93 | +## 1.0.0 |
| 94 | + |
| 95 | +- Initial release. |
0 commit comments