Bump YamlDotNet from 4.1.0 to 5.0.0 in /Resizetizer
Bumps YamlDotNet from 4.1.0 to 5.0.0.
Release notes
Sourced from YamlDotNet's releases.
Security issues and dropping legacy behaviors
/!\ This release fixes a security issue. It is strongly recommended to upgrade, mainly if you are parsing documents from sources that you do not trust.
Many thanks to Kurt Boberg, from the DocuSign Application Security Team, who identified this issue and provided feedback on mitigation strategies.
Remove the legacy backwards-compatibe syntax that enabled to create
SerializerandDeserializerdirectly then changing their configutation.
In most cases, the calls to the constructors should be replaced by instantiations ofSerializerBuilderandDeserializerBuilder. These can be configured at will, then used to create instances of (De)serializer. It is still possible to use the default constructors, if no configuration is needed.Drop support for specifying arbitrary type names in tags.
Support for automatically resolving a fully qualified type name from a tag has been discontinued. That feature was poorly designed and not standard.
During deserialization, each tag mapping must be explicitly registered. During serialization, when using theEnsureRoundtripmethod, it is necessary to register tag mappings for each type that will require a tag, that is, any type that is used as the value of a property with a different declared type.Fix bug where deserialized values were not being converted to the destination type.
var sut = new DeserializerBuilder() .WithTagMapping("!dbl", typeof(DoublyConverted)) .Build(); // The scalar "hello" will first be converted to DoublyConverted // then that value will be converted to int. var result = sut.Deserialize<int>("!dbl hello"); Assert.Equal(5, result);Add support for (de)serialization of System.Type
No release notes provided.
Cleanup the project
... (truncated)
- Refactored the project and solution so that they load and build cleanly in VS2017.
- Reviewed the target platforms.
- The currently supported platforms are now:
- .NET Framework 4.5
- .NET Framework 3.5
- .NET Framework 2.0 (experimental)
- .NET Standard 1.3
- Unity Subset v3.5
- The following platforms are no longer supported:
- Profile259 (please upgrade to netstandard)
Changelog
Sourced from YamlDotNet's changelog.
Release notes
Release 8.0.0
New features and improvements
Change the default value handling behavior. Fixes #427
This is a breaking change to the default behaviour of the serializer, which will now always emit null and default values.
It is possible to configure this behaviour by using theConfigureDefaultValuesHandlingmethod onSerializerBuilder.Add default implementations for the following non-generic collections to
DefaultObjectFactory:
- IEnumerable
- ICollection
- IList
- IDictionary
Remove obsolete and unused
SerializationOptionsenum. Fixes #438Throw descriptive exceptions when using the "linq" methods of
YamlNode. Relates to #437Bug fixes
- Never emit document end indicator on stream end. Fixes #436
- Fix exception when deserializing an interface. Fixes #439
Previous releases
... (truncated)
Commits
-
e024a32Prepare release 5.0.0 -
0ce8ac1Drop support for specifying arbitrary type names in tags -
c8df563Remove legacy backwards compatibility -
f96b7ccEnsure that tagged values are properly converted to the destination type -
8f20a18Prepare release 4.3.2 -
857192dFix bug whe TypeConverter was being ignored on all platforms -
145477aRemove serialization support from exceptions -
113261cAdd quick build task -
837f61aPin Cake version -
667778bMerge pull request #313 from thoughtcroft/patch-1 - Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot ignore this [patch|minor|major] versionwill close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) -
@dependabot use these labelswill set the current labels as the default for future PRs for this repo and language -
@dependabot use these reviewerswill set the current reviewers as the default for future PRs for this repo and language -
@dependabot use these assigneeswill set the current assignees as the default for future PRs for this repo and language -
@dependabot use this milestonewill set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the Security Alerts page.