Releases: goccy/go-yaml
Releases · goccy/go-yaml
1.9.6
What's Changed
- UTF-8 Support by @nervo in #294
- Update golang.org/x/sys by @nervo in #289
- fix incorrect const type by @chanxuehong in #284
- Update Go version in CI by @goccy in #295
- yaml: typeError implements PrettyPrinter interface by @braydonk in #280
- path tests: add missing keys to struct literals by @marco-m in #300
- Introduce MapKeyNode interface to limit node types for map key by @itchyny in #312
- Fix large literals type inference on 32 bits by @jrisc in #293
- fix: insert a separator between each encoded document by @zoncoen in #318
- Handle unmarshall unknown aliases by @nervo in #317
- Quote strings with special characters in flow mode. by @igorpeshansky in #270
New Contributors
- @chanxuehong made their first contribution in #284
- @braydonk made their first contribution in #280
- @marco-m made their first contribution in #300
- @itchyny made their first contribution in #312
- @jrisc made their first contribution in #293
- @igorpeshansky made their first contribution in #270
Full Changelog: v1.9.5...v1.9.6
1.9.5
What's Changed
New Features
- Add UseSingleQuote option by @vikstrous2 in #265
Fixed bugs
- Escape single quotes in single-quoted string by @martin-sucha in #256
- Fix minor typo in decodeInit error by @hasheddan in #264
- Preserve defaults while decoding nested structs by @Al2Klimov in #260
- Handle empty sequence entries by @tnthornton in #275
- Fix encoding of sequence with multiline string by @goccy in #276
- Fix encoding of BytesMarshaler type by @goccy in #277
- Fix indentState logic for multi-line value by @goccy in #278
New Contributors
- @martin-sucha made their first contribution in #256
- @hasheddan made their first contribution in #264
- @Al2Klimov made their first contribution in #260
- @tnthornton made their first contribution in #275
Full Changelog: v1.9.4...v1.9.5
1.9.4
1.9.3
New Features
- Support encoding and decoding
time.Duration
fields ( #246 ) - Allow reserved characters for key name in YAMLPath ( #251 )
- Support getting YAMLPath from ast.Node ( #252 )
- Support CommentToMap option ( #253 )
Fix bugs
- Fix encoding nested sequences with
yaml.IndentSequence
( #241 ) - Fix error reporting on inline structs in strict mode ( #244, #245 )
- Fix encoding of large floats ( #247 )
Improve workflow
1.9.2
1.9.1
1.9.0
New features
- Support encoding of comment node ( #233 )
- Support
yaml.NodeToValue(ast.Node, interface{}, ...DecodeOption) error
( #236 )- Can convert a AST node to a value directly
Fix decoder for comment
- Fix parsing of literal with comment ( #234 )
Rename API ( #235 )
- Rename
MarshalWithContext
toMarshalContext
- Rename
UnmarshalWithContext
toUnmarshalContext
1.8.10
Fixed bugs
- Fix searching anchor by alias name ( #212 )
- 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. #186. This addresses the issue specifically for single and double quote text only. ( #210 )
- Add error for unterminated flow mapping node ( #213 )
- Handle missing required field validation ( #221 )
- Nicely format unexpected node type errors ( #229 )
- Support to encode map which has defined type key ( #231 )
New features
- Support sequence indentation by EncodeOption ( #232 )
1.8.9
Fix bugs
- Fix origin buffer for DocumentHeader and DocumentEnd and Directive
- Fix origin buffer for anchor value
- Fix syntax error about map value
- Fix parsing MergeKey ('<<') characters
- Fix encoding of float value
- Fix incorrect column annotation when single or double quotes are used
New feature
- Support to encode/decode of ast.Node directly