Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump FSharp.SystemTextJson from 0.19.13 to 1.0.6 #50

Merged
merged 1 commit into from
Nov 5, 2022

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Nov 1, 2022

Bumps FSharp.SystemTextJson from 0.19.13 to 1.0.6.

Release notes

Sourced from FSharp.SystemTextJson's releases.

Version 1.0.6

Fix regression #133: failure on non-public records.

Version 1.0

  • #89: Add JsonNameAttribute as a more powerful substitute for the standard JsonPropertyNameAttribute.

    • When used on a discriminated union case, JsonNameAttribute can take a value of type int or bool instead of string.
    • JsonNameAttribute can take multiple values. When deserializing, all these values are treated as equivalent. When serializing, the first one is used.
    • JsonNameAttribute has a settable property Field: string. It is used to set the JSON name of a union case field with the given name.
  • #92: Serialization of record properties (in addition to fields).

    • Add option includeRecordProperties: bool to enable serializing record properties.
    • Also serialize record properties with JsonIncludeAttribute even when includeRecordProperties is false.
  • Add support for the standard DefaultIgnoreCondition.WhenWritingNull as a synonym for IgnoreNullValues = true that allows None and ValueNone to be omitted instead of null.

  • #123: BREAKING CHANGE: Missing fields of type option or voption now throw an error by default instead of being deserialized to None / ValueNone. To support missing fields, either enable the option IgnoreNullValues = true or DefaultIgnoreCondition = WhenWritingNull, or use the type Skippable instead of option or voption.

  • #126: Add option types: JsonFSharpTypes that specifies which types the F# converter should handle. Unlisted types will be handled by the default System.Text.Json. By default, all supported types are handled.

Changelog

Sourced from FSharp.SystemTextJson's changelog.

Changelog

1.0

  • #89: Add JsonNameAttribute as a more powerful substitute for the standard JsonPropertyNameAttribute.

    • When used on a discriminated union case, JsonNameAttribute can take a value of type int or bool instead of string.
    • JsonNameAttribute can take multiple values. When deserializing, all these values are treated as equivalent. When serializing, the first one is used.
    • JsonNameAttribute has a settable property Field: string. It is used to set the JSON name of a union case field with the given name.
  • #92: Serialization of record properties (in addition to fields).

    • Add option includeRecordProperties: bool to enable serializing record properties.
    • Also serialize record properties with JsonIncludeAttribute even when includeRecordProperties is false.
  • Add support for the standard DefaultIgnoreCondition.WhenWritingNull as a synonym for IgnoreNullValues = true that allows None and ValueNone to be omitted instead of null.

  • #123: BREAKING CHANGE: Missing fields of type option or voption now throw an error by default instead of being deserialized to None / ValueNone. To support missing fields, either enable the option IgnoreNullValues = true or DefaultIgnoreCondition = WhenWritingNull, or use the type Skippable instead of option or voption.

  • #126: Add option types: JsonFSharpTypes that specifies which types the F# converter should handle. Unlisted types will be handled by the default System.Text.Json. By default, all supported types are handled.

0.19

  • #111: Support JsonKnownNamingPolicy in JsonFSharpConverterAttribute.

  • #112: Add Options and Overrides properties to JsonFSharpConverter.

  • #263: Add a nullary constructor for JsonFSharpConverter.

0.18

  • #98: Implement JsonPropertyOrderAttribute on records.

  • #108: Allow serializing unnamed union fields using their type name, instead of Item1 etc, using JsonUnionEncoding.UnionFieldNamesFromTypes.

  • #100: Allow unionTagName to be part of the record type definition when deserializing union of records.

  • #109: Add .xml with documentation comments to nupkg. Thanks @​exyi!

  • #110: Allow customizing the naming policy for union fields with unionFieldNamingPolicy.
    If not provided, use JsonSerializerOptions.PropertyNamingPolicy as before.

0.17

  • #87: Fix null checking on value type fields.

  • #93: Allow deserializing F# unions in AdjacentTag and InternalTag modes where the tag is not the first field in the JSON object. This capability is enabled by new option JsonUnionEncoding.AllowUnorderedTag, which is included in JsonUnionEncoding.Default and all JsonUnionEncoding.*Like combined formats.

0.16

... (truncated)

Commits
  • df09f75 Fix #133: Regression: failure on non-public records
  • d32c1c1 Set version to '1.0'
  • 43a6d14 Document JsonNameAttribute
  • 5f3769b Document JsonFSharpTypes
  • cd6d59e Document includeRecordProperties
  • 9c8cbff Version 1.0 + changelog
  • 2c960ae Merge pull request #128 from Tarmil/types
  • e60b6e5 Add JsonFSharpTypes to restrict the types used by JsonFSharpConverter
  • 0bd7de5 Merge pull request #127 from Tarmil/json-name
  • a1cce17 Use JsonNameAttribute.Field to name a union case field
  • Additional commits viewable in compare view

Dependabot compatibility score

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 rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [FSharp.SystemTextJson](https://github.com/tarmil/FSharp.SystemTextJson) from 0.19.13 to 1.0.6.
- [Release notes](https://github.com/tarmil/FSharp.SystemTextJson/releases)
- [Changelog](https://github.com/Tarmil/FSharp.SystemTextJson/blob/master/CHANGELOG.md)
- [Commits](Tarmil/FSharp.SystemTextJson@v0.19.13...v1.0.6)

---
updated-dependencies:
- dependency-name: FSharp.SystemTextJson
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Nov 1, 2022
@worldbeater worldbeater merged commit 6e331d5 into main Nov 5, 2022
@worldbeater worldbeater deleted the dependabot/nuget/FSharp.SystemTextJson-1.0.6 branch November 5, 2022 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant