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 1.2.42 to 1.3.13 #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jun 10, 2024

Bumps FSharp.SystemTextJson from 1.2.42 to 1.3.13.

Release notes

Sourced from FSharp.SystemTextJson's releases.

Version 1.3

  • #151: Add optional argument deserializeNullAsNone: bool to option .WithSkippableOptionFields(SkippableOptionFields). When true, skippable option fields can be deserialized as None not only from a missing field, but also from null.
Changelog

Sourced from FSharp.SystemTextJson's changelog.

Changelog

1.3

  • #151: Add optional argument deserializeNullAsNone: bool to option .WithSkippableOptionFields(SkippableOptionFields). When true, skippable option fields can be deserialized as None not only from a missing field, but also from null.

1.2

  • #154: Add SkippableOptionFields enum to further customize the skipping of fields of type option and voption with WithSkippableOptionFields.

    • SkippableOptionFields.FromJsonSerializerOptions is the default and equivalent to WithSkippableOptionFields(false): fields of type option and voption are skipped if used with JsonIgnoreCondition.WhenWritingNull.
    • SkippableOptionFields.Always is equivalent to WithSkippableOptionFields(true): fields of type option and voption are always skipped.
    • SkippableOptionFields.Never: fields of type option and voption are never skipped.
  • #159: Throw an exception when trying to deserialize null into a record or union in any context, rather than only when they are in fields of records and unions.

  • #160: Fix WithSkippableOptionFields(false) not working for voption.

  • #161: Allow using single-case unions as keys in all dictionary types.

    NOTE: This requires System.Text.Json 8.0.

  • #162: Add option .WithMapFormat(MapFormat) to customize the format of F# maps.

    • MapFormat.Object always serializes maps as objects. The key type must be supported as key for dictionaries. NOTE: This requires System.Text.Json 8.0.
    • MapFormat.ArrayOfPairs always serializes maps as JSON arrays whose items are [key,value] pairs.
    • MapFormat.ObjectOrArrayOfPairs is the default: maps whose keys are string or single-case unions wrapping string are serialized as JSON objects, and other maps are serialized as JSON arrays whose items are [key,value] pairs.
  • #163: Add StructuralComparison to the type Skippable<_>.

  • #164: When deserializing a record with JsonIgnoreCondition.WhenWritingNull, when a non-nullable field is missing, throw a proper JsonException rather than a NullReferenceException.

1.1

  • #141: Add fluent options builder. JsonFSharpOptions has the following new methods:

    • static methods that create options with default settings: .Default(), .NewtonsoftLike(), .FSharpLuLike() and .ThothLike().
    • instance methods .WithOptionAbc(?bool) for each flag JsonUnionEncoding.Abc, that sets or unsets this option and returns a new JsonFSharpOptions.
    • instance methods .WithAbc(value) for each optional argument abc of its constructor, that sets this option and returns a new JsonFSharpOptions.
    • an instance method .ToJsonSerializerOptions() that returns a new JsonSerializerOptions with the corresponding JsonFSharpConverter configured.
    • an instance method .AddToJsonSerializerOptions(options) that takes an existing JsonSerializerOptions, configures the corresponding JsonFSharpConverter and returns unit.

    The above is now the recommended way of configuring the library, and future options may be only made available using fluent methods and not using constructor arguments.

  • #146: Add option .WithSkippableOptionFields(?bool) that makes fields of type option and voption behave like Skippable: None / ValueNone is represented by a missing field instead of a null value.

    This is equivalent to the pre-1.0 default behavior, and is now recommended if this behavior is desired instead of IgnoreNullValues = true or DefaultIgnoreCondition = WhenWritingNull.

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.

... (truncated)

Commits
  • 2beeef2 Update changelog
  • 28bcd3f Set version to '1.3'
  • 498f7a5 Merge pull request #184 from Tarmil/deserialize-null-as-none
  • f47c39d #151 Add option to deserialize both null and missing as None
  • 1b6dbd9 Merge pull request #179 from Tarmil/net8
  • 42274d7 chore: Use artifacts directory
  • 57348f3 chore: Run build and tests in net8.0
  • f01a55e chore: Group FAKE target output in GitHub action
  • 76ed9ae Merge branch 'releases/v1.2'
  • 4869244 Run tool restore in msbuild to make it incremental and to make build.ps1 opti...
  • 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 show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @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 1.2.42 to 1.3.13.
- [Release notes](https://github.com/tarmil/FSharp.SystemTextJson/releases)
- [Changelog](https://github.com/Tarmil/FSharp.SystemTextJson/blob/master/CHANGELOG.md)
- [Commits](Tarmil/FSharp.SystemTextJson@v1.2.42...v1.3.13)

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

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jun 10, 2024
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.

0 participants