Skip to content

Releases: aaubry/YamlDotNet

v3.9.0

08 Jun 22:10
Compare
Choose a tag to compare

Version 3.9.0

New features:

  • Add YamlVisitorBase as an improved replacement for YamlVisitor
    • YamlVisitor is now obsolete, and will be removed in a future release.
  • Ensure compatibility with AOT compilation, for platforms that do not allow dynamic code generation, such as IOS or PS4.
  • Add Yaml attribute overrides feature, similar to XML Serializer attribute overrides behavior.
  • Add a YamlNodeType enumeration property to nodes.

Bug fixes:

  • Fix #166 - Guid conversion to JSON is unquoted.
  • Ignore enum value case during deserialization.
  • Improve newline handling
    • In some cases, consecutive newlines were incorrectly parsed or emitted.
  • Fix #177 - double.MaxValue serialization.
  • Register custom type converters with higher precedence than the built-in converters.

Fixes in handling of scalar

01 Feb 16:41
Compare
Choose a tag to compare

New features:

  • Add support for different scalar integer bases.
    Addresses issue #113. Adds basic support for deserializing scalar integers
    written in binary, octal, decimal, hex, and base 60, as allowed in the YAML
    specification; see http://yaml.org/type/int.html. Adds unit tests for each
    of these bases as well.
  • Add dnx compatibility to the NuGet packages.
  • Do not throw exception if a tag does not contain a valid type name.

Fixes and improvements:

  • Cache type metadata.
  • Fix wrong type when deserializing UInt16.
  • Fix handling of special float values, such as NaN, PositiveInfinity and NegativeInfinity.
  • Properly quote empty strings.
  • Properly handle non-Unicode encodings when emitting scalars.

Add missing overload

21 Aug 10:40
Compare
Choose a tag to compare

This is a minor update that simply adds an overload of YamlStream.Load to be able to specify the EventReader.

Fix bug in portable build

30 Jun 13:34
Compare
Choose a tag to compare

Bug fixes:

  • Bug in the GetPublicMethods implementation for portable.

Scalar style, optional anchor assignment and Unity

19 May 21:56
Compare
Choose a tag to compare

New features:

  • Ability to opt out of anchor assignment during YamlStream.Save().
  • Allow the style of scalar properties to be specified through the YamlMember attribute.
  • Add solution configuration to target "Unity 3.5 .net Subset Base Class Libraries".

Bug fixes:

  • Do not compare nodes by value while assigning anchors. It is the responsibility of the user to use the same reference if they want an alias.
  • Fixed #121: Finding properties in parent interfaces

YamlMember improvements

18 Dec 11:00
Compare
Choose a tag to compare
  • Add native support of System.Guid serialization.
  • Add properties to YamlMemberAttribute:
    • Order: specifies the order of the members when they are serialized.
    • Alias: instructs the deserializer to use a different field name for serialization.
  • The YamlAliasAttribute is now obsolete. New code should use YamlMemberAttribute instead.
  • Throw proper exceptions, with correct marks, when deserialization of a node fails.

Changes and fixes on the Scanner to make it more usable

07 Dec 19:25
Compare
Choose a tag to compare
  • Report the location of comments correctly, when the scanner is created with "skipComments = false"
  • In case of syntax error, do not report an empty range and skip to the next token.
  • Make the scanner and related types serializable, so that the state of the scanner can be captured and then restored later (assuming that the TextReader is also serializable).

Add a signed package and portable versions

12 Nov 00:08
Compare
Choose a tag to compare

This release adds a signed package and portable versions of the library.

.NET binary serialization

05 Sep 22:22
Compare
Choose a tag to compare

Added suport for .NET binary serialization.

Bugfix

08 Aug 09:07
Compare
Choose a tag to compare

Fix DuplicateAnchorException when using merge keys do merge mappings that contain aliases.

Implement merging a sequence of aliases.