From a7e27772f48e9e7f1040344739f680081da50a41 Mon Sep 17 00:00:00 2001 From: Anthon van der Neut Date: Sat, 6 May 2023 12:29:03 +0200 Subject: fix issue: 453, 447 --- README.rst | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'README.rst') diff --git a/README.rst b/README.rst index e9a2b08..092b63c 100644 --- a/README.rst +++ b/README.rst @@ -4,8 +4,8 @@ ruamel.yaml ``ruamel.yaml`` is a YAML 1.2 loader/dumper package for Python. -:version: 0.17.23 -:updated: 2023-05-05 +:version: 0.17.24 +:updated: 2023-05-06 :documentation: http://yaml.readthedocs.io :repository: https://sourceforge.net/projects/ruamel-yaml/ :pypi: https://pypi.org/project/ruamel.yaml/ @@ -61,6 +61,21 @@ ChangeLog .. should insert NEXT: at the beginning of line for next key (with empty line) +0.17.24 (2023-05-06): + - rewrite of ``CommentedMap.insert()``. If you have a merge key in + the YAML document for the mapping you insert to, the position value should + be the one as you look at the YAML input. + This fixes issue 453 where other + keys of a merged in mapping would show up after an insert (reported by + `Alex Miller `__). It + also fixes a call to `.insert()` resulting into the merge key to move + to be the first key if it wasn't already and it is also now possible + to insert a key before a merge key (even if the fist key in the mapping). + - fix (in the pure Python implementation including default) for issue 447. + (reported by `Jack Cherng `__, + also brought up by brent on + `StackOverflow `__) + 0.17.23 (2023-05-05): - fix 458, error on plain scalars starting with word longer than width. (reported by `Kyle Larose `__) -- cgit v1.2.1