| 1 | # 1.11.2 - 2023-09-15 |
| 2 | |
| 3 | ### Fix bugs |
| 4 | |
| 5 | - Fix quoted comments ( #370 ) |
| 6 | - Fix handle of space at start or last ( #376 ) |
| 7 | - Fix sequence with comment ( #390 ) |
| 8 | |
| 9 | # 1.11.1 - 2023-09-14 |
| 10 | |
| 11 | ### Fix bugs |
| 12 | |
| 13 | - Handle `\r` in a double-quoted string the same as `\n` ( #372 ) |
| 14 | - Replace loop with n.Values = append(n.Values, target.Values...) ( #380 ) |
| 15 | - Skip encoding an inline field if it is null ( #386 ) |
| 16 | - Fix comment parsing with null value ( #388 ) |
| 17 | |
| 18 | # 1.11.0 - 2023-04-03 |
| 19 | |
| 20 | ### Features |
| 21 | |
| 22 | - Supports dynamically switch encode and decode processing for a given type |
| 23 | |
| 24 | # 1.10.1 - 2023-03-28 |
| 25 | |
| 26 | ### Features |
| 27 | |
| 28 | - Quote YAML 1.1 bools at encoding time for compatibility with other legacy parsers |
| 29 | - Add support of 32-bit architecture |
| 30 | |
| 31 | ### Fix bugs |
| 32 | |
| 33 | - Don't trim all space characters in block style sequence |
| 34 | - Support strings starting with `@` |
| 35 | |
| 36 | # 1.10.0 - 2023-03-01 |
| 37 | |
| 38 | ### Fix bugs |
| 39 | |
| 40 | Reversible conversion of comments was not working in various cases, which has been corrected. |
| 41 | **Breaking Change** exists in the comment map interface. However, if you are dealing with CommentMap directly, there is no problem. |
| 42 | |
| 43 | |
| 44 | # 1.9.8 - 2022-12-19 |
| 45 | |
| 46 | ### Fix feature |
| 47 | |
| 48 | - Append new line at the end of file ( #329 ) |
| 49 | |
| 50 | ### Fix bugs |
| 51 | |
| 52 | - Fix custom marshaler ( #333, #334 ) |
| 53 | - Fix behavior when struct fields conflicted( #335 ) |
| 54 | - Fix position calculation for literal, folded and raw folded strings ( #330 ) |
| 55 | |
| 56 | # 1.9.7 - 2022-12-03 |
| 57 | |
| 58 | ### Fix bugs |
| 59 | |
| 60 | - Fix handling of quoted map key ( #328 ) |
| 61 | - Fix resusing process of scanning context ( #322 ) |
| 62 | |
| 63 | ## v1.9.6 - 2022-10-26 |
| 64 | |
| 65 | ### New Features |
| 66 | |
| 67 | - Introduce MapKeyNode interface to limit node types for map key ( #312 ) |
| 68 | |
| 69 | ### Fix bugs |
| 70 | |
| 71 | - Quote strings with special characters in flow mode ( #270 ) |
| 72 | - typeError implements PrettyPrinter interface ( #280 ) |
| 73 | - Fix incorrect const type ( #284 ) |
| 74 | - Fix large literals type inference on 32 bits ( #293 ) |
| 75 | - Fix UTF-8 characters ( #294 ) |
| 76 | - Fix decoding of unknown aliases ( #317 ) |
| 77 | - Fix stream encoder for insert a separator between each encoded document ( #318 ) |
| 78 | |
| 79 | ### Update |
| 80 | |
| 81 | - Update golang.org/x/sys ( #289 ) |
| 82 | - Update Go version in CI ( #295 ) |
| 83 | - Add test cases for missing keys to struct literals ( #300 ) |
| 84 | |
| 85 | ## v1.9.5 - 2022-01-12 |
| 86 | |
| 87 | ### New Features |
| 88 | |
| 89 | * Add UseSingleQuote option ( #265 ) |
| 90 | |
| 91 | ### Fix bugs |
| 92 | |
| 93 | * Preserve defaults while decoding nested structs ( #260 ) |
| 94 | * Fix minor typo in decodeInit error ( #264 ) |
| 95 | * Handle empty sequence entries ( #275 ) |
| 96 | * Fix encoding of sequence with multiline string ( #276 ) |
| 97 | * Fix encoding of BytesMarshaler type ( #277 ) |
| 98 | * Fix indentState logic for multi-line value ( #278 ) |
| 99 | |
| 100 | ## v1.9.4 - 2021-10-12 |
| 101 | |
| 102 | ### Fix bugs |
| 103 | |
| 104 | * Keep prev/next reference between tokens containing comments when filtering comment tokens ( #257 ) |
| 105 | * Supports escaping reserved keywords in PathBuilder ( #258 ) |
| 106 | |
| 107 | ## v1.9.3 - 2021-09-07 |
| 108 | |
| 109 | ### New Features |
| 110 | |
| 111 | * Support encoding and decoding `time.Duration` fields ( #246 ) |
| 112 | * Allow reserved characters for key name in YAMLPath ( #251 ) |
| 113 | * Support getting YAMLPath from ast.Node ( #252 ) |
| 114 | * Support CommentToMap option ( #253 ) |
| 115 | |
| 116 | ### Fix bugs |
| 117 | |
| 118 | * Fix encoding nested sequences with `yaml.IndentSequence` ( #241 ) |
| 119 | * Fix error reporting on inline structs in strict mode ( #244, #245 ) |
| 120 | * Fix encoding of large floats ( #247 ) |
| 121 | |
| 122 | ### Improve workflow |
| 123 | |
| 124 | * Migrate CI from CircleCI to GitHub Action ( #249 ) |
| 125 | * Add workflow for ycat ( #250 ) |
| 126 | |
| 127 | ## v1.9.2 - 2021-07-26 |
| 128 | |
| 129 | ### Support WithComment option ( #238 ) |
| 130 | |
| 131 | `yaml.WithComment` is a option for encoding with comment. |
| 132 | The position where you want to add a comment is represented by YAMLPath, and it is the key of `yaml.CommentMap`. |
| 133 | Also, you can select `Head` comment or `Line` comment as the comment type. |
| 134 | |
| 135 | ## v1.9.1 - 2021-07-20 |
| 136 | |
| 137 | ### Fix DecodeFromNode ( #237 ) |
| 138 | |
| 139 | - Fix YAML handling where anchor exists |
| 140 | |
| 141 | ## v1.9.0 - 2021-07-19 |
| 142 | |
| 143 | ### New features |
| 144 | |
| 145 | - Support encoding of comment node ( #233 ) |
| 146 | - Support `yaml.NodeToValue(ast.Node, interface{}, ...DecodeOption) error` ( #236 ) |
| 147 | - Can convert a AST node to a value directly |
| 148 | |
| 149 | ### Fix decoder for comment |
| 150 | |
| 151 | - Fix parsing of literal with comment ( #234 ) |
| 152 | |
| 153 | ### Rename API ( #235 ) |
| 154 | |
| 155 | - Rename `MarshalWithContext` to `MarshalContext` |
| 156 | - Rename `UnmarshalWithContext` to `UnmarshalContext` |
| 157 | |
| 158 | ## v1.8.10 - 2021-07-02 |
| 159 | |
| 160 | ### Fixed bugs |
| 161 | |
| 162 | - Fix searching anchor by alias name ( #212 ) |
| 163 | - Fixing Issue 186, scanner should account for newline characters when processing multi-line text. Without this source annotations line/column number (for this and all subsequent tokens) is inconsistent with plain text editors. e.g. https://github.com/goccy/go-yaml/issues/186. This addresses the issue specifically for single and double quote text only. ( #210 ) |
| 164 | - Add error for unterminated flow mapping node ( #213 ) |
| 165 | - Handle missing required field validation ( #221 ) |
| 166 | - Nicely format unexpected node type errors ( #229 ) |
| 167 | - Support to encode map which has defined type key ( #231 ) |
| 168 | |
| 169 | ### New features |
| 170 | |
| 171 | - Support sequence indentation by EncodeOption ( #232 ) |
| 172 | |
| 173 | ## v1.8.9 - 2021-03-01 |
| 174 | |
| 175 | ### Fixed bugs |
| 176 | |
| 177 | - Fix origin buffer for DocumentHeader and DocumentEnd and Directive |
| 178 | - Fix origin buffer for anchor value |
| 179 | - Fix syntax error about map value |
| 180 | - Fix parsing MergeKey ('<<') characters |
| 181 | - Fix encoding of float value |
| 182 | - Fix incorrect column annotation when single or double quotes are used |
| 183 | |
| 184 | ### New features |
| 185 | |
| 186 | - Support to encode/decode of ast.Node directly |