github.com/bingoohuang/gg@v0.0.0-20240325092523-45da7dee9335/pkg/yaml/CHANGELOG.md (about) 1 ## v1.9.2 - 2021-07-26 2 3 ### Support WithComment option ( #238 ) 4 5 `yaml.WithComment` is a option for encoding with comment. 6 The position where you want to add a comment is represented by YAMLPath, and it is the key of `yaml.CommentMap`. 7 Also, you can select `Head` comment or `Line` comment as the comment type. 8 9 ## v1.9.1 - 2021-07-20 10 11 ### Fix DecodeFromNode ( #237 ) 12 13 - Fix YAML handling where anchor exists 14 15 ## v1.9.0 - 2021-07-19 16 17 ### New features 18 19 - Support encoding of comment node ( #233 ) 20 - Support `yaml.NodeToValue(ast.Node, interface{}, ...DecodeOption) error` ( #236 ) 21 - Can convert a AST node to a value directly 22 23 ### Fix decoder for comment 24 25 - Fix parsing of literal with comment ( #234 ) 26 27 ### Rename API ( #235 ) 28 29 - Rename `MarshalWithContext` to `MarshalContext` 30 - Rename `UnmarshalWithContext` to `UnmarshalContext` 31 32 ## v1.8.10 - 2021-07-02 33 34 ### Fixed bugs 35 36 - Fix searching anchor by alias name ( #212 ) 37 - Fixing Issue 186, scanner should account for newline characters when processing multi-line text. Without this source 38 annotations line/column number (for this and all subsequent tokens) is inconsistent with plain text editors. 39 e.g. https://github.com/bingoohuang/go-yaml/issues/186. This addresses the issue specifically for single and double 40 quote text only. ( #210 ) 41 - Add error for unterminated flow mapping node ( #213 ) 42 - Handle missing required field validation ( #221 ) 43 - Nicely format unexpected node type errors ( #229 ) 44 - Support to encode map which has defined type key ( #231 ) 45 46 ### New features 47 48 - Support sequence indentation by EncodeOption ( #232 ) 49 50 ## v1.8.9 - 2021-03-01 51 52 ### Fixed bugs 53 54 - Fix origin buffer for DocumentHeader and DocumentEnd and Directive 55 - Fix origin buffer for anchor value 56 - Fix syntax error about map value 57 - Fix parsing MergeKey ('<<') characters 58 - Fix encoding of float value 59 - Fix incorrect column annotation when single or double quotes are used 60 61 ### New features 62 63 - Support to encode/decode of ast.Node directly