dotansimha / graphql-tools-rs

40 stars 3 forks source link

fix(deps): update rust crate serde_with to 2.3.3 - autoclosed #50

Closed renovate[bot] closed 5 months ago

renovate[bot] commented 1 year ago

Mend Renovate

This PR contains the following updates:

Package Type Update Change
serde_with dependencies minor 2.2.0 -> 2.3.3

Release Notes

jonasbb/serde_with (serde_with) ### [`v2.3.3`](https://togithub.com/jonasbb/serde_with/releases/tag/v2.3.3): serde_with v2.3.3 [Compare Source](https://togithub.com/jonasbb/serde_with/compare/v2.3.2...v2.3.3) ##### Changed - Update `syn` to v2 and `darling` to v0.20 ([#​578](https://togithub.com/jonasbb/serde_with/issues/578)) Update proc-macro dependencies. This change should have no impact on users, but now uses the same dependency as `serde_derive`. ### [`v2.3.2`](https://togithub.com/jonasbb/serde_with/releases/tag/v2.3.2): serde_with v2.3.2 [Compare Source](https://togithub.com/jonasbb/serde_with/compare/v2.3.1...v2.3.2) ##### Changed - Improve the error message when deserializing `OneOrMany` or `PickFirst` fails. It now includes the original error message for each of the individual variants. This is possible by dropping untagged enums as the internal implementations, since they will likely never support this, as these old PRs show [serde#2376](https://togithub.com/serde-rs/serde/pull/2376) and [serde#1544](https://togithub.com/serde-rs/serde/pull/1544). The new errors look like: ```text OneOrMany could not deserialize any variant: One: invalid type: map, expected u32 Many: invalid type: map, expected a sequence ``` ```text PickFirst could not deserialize any variant: First: invalid type: string "Abc", expected u32 Second: invalid digit found in string ``` ##### Fixed - Specify the correct minimum serde version as dependency. ([#​588](https://togithub.com/jonasbb/serde_with/issues/588)) Thanks to [@​nox](https://togithub.com/nox) for submitting a PR. ### [`v2.3.1`](https://togithub.com/jonasbb/serde_with/releases/tag/v2.3.1): serde_with v2.3.1 [Compare Source](https://togithub.com/jonasbb/serde_with/compare/v2.3.0...v2.3.1) ##### Fixed - Undo the changes to the trait bound for `Seq`. ([#​570](https://togithub.com/jonasbb/serde_with/issues/570), [#​571](https://togithub.com/jonasbb/serde_with/issues/571)) The new implementation caused issues with serialization formats that require the sequence length beforehand. It also caused problems, that certain attributes which worked before no longer worked, due to mismatching number of references. Thanks to [@​stefunctional](https://togithub.com/stefunctional) for reporting and for [@​stephaneyfx](https://togithub.com/stephaneyfx) for providing a test case. ### [`v2.3.0`](https://togithub.com/jonasbb/serde_with/releases/tag/v2.3.0): serde_with v2.3.0 [Compare Source](https://togithub.com/jonasbb/serde_with/compare/v2.2.0...v2.3.0) ##### Added - Add `serde_as` compatible versions for the existing duplicate key and value handling. ([#​534](https://togithub.com/jonasbb/serde_with/issues/534)) The new types `MapPreventDuplicates`, `MapFirstKeyWins`, `SetPreventDuplicates`, and `SetLastValueWins` can replace the existing modules `maps_duplicate_key_is_error`, `maps_first_key_wins`, `sets_duplicate_value_is_error`, and `sets_last_value_wins`. - Added a new `KeyValueMap` type using the map key as a struct field. ([#​341](https://togithub.com/jonasbb/serde_with/issues/341)) This conversion is useful for maps, where an ID value is the map key, but the ID should become part of a single struct. The conversion allows this, by using a special field named `$key$`. This conversion is possible for structs and maps, using the `$key$` field. Tuples, tuple structs, and sequences are supported by turning the first value into the map key. Each of the `SimpleStruct`s ```rust // Somewhere there is a collection: // #[serde_as(as = "KeyValueMap<_>")] // Vec, #[derive(Serialize, Deserialize)] struct SimpleStruct { b: bool, // The field named `$key$` will become the map key #[serde(rename = "$key$")] id: String, i: i32, } ``` will turn into a JSON snippet like this. ```json "id-0000": { "b": false, "i": 123 }, ``` ##### Changed - Relax the trait bounds of `Seq` to allow for more custom types. ([#​565](https://togithub.com/jonasbb/serde_with/issues/565)) This extends the support beyond tuples. ##### Fixed - `EnumMap` passes the `human_readable` status of the `Serializer` to more places. - Support `alloc` on targets without `target_has_atomic = "ptr"`. ([#​560](https://togithub.com/jonasbb/serde_with/issues/560)) Thanks to [@​vembacher](https://togithub.com/vembacher) for reporting and fixing the issue.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by Mend Renovate. View repository job log here.