tafia/quick-xml (quick-xml)
### [`v0.37.0`](https://redirect.github.com/tafia/quick-xml/blob/HEAD/Changelog.md#0370----2024-10-27)
[Compare Source](https://redirect.github.com/tafia/quick-xml/compare/v0.36.2...v0.37.0)
##### New Features
- [#826]: Implement `From` and `From>` for `quick_xml::de::Text`.
- [#826]: Make `SimpleTypeDeserializer` and `SimpleTypeSerializer` public.
- [#826]: Implement `IntoDeserializer` for `&mut Deserializer`.
##### Bug Fixes
- [#655]: Do not write indent before and after `$text` fields and those `$value` fields
that are serialized as a text (for example, `usize` or `String`).
- [#826]: Handle only those boolean representations that are allowed by [Xml Schema]
which is only `"true"`, `"1"`, `"false"`, and `"0"`. Previously the following values
also was accepted:
|`bool` |XML content
|-------|-------------------------------------------------------------
|`true` |`"True"`, `"TRUE"`, `"t"`, `"Yes"`, `"YES"`, `"yes"`, `"y"`
|`false`|`"False"`, `"FALSE"`, `"f"`, `"No"`, `"NO"`, `"no"`, `"n"`
##### Misc Changes
- [#227]: Split `SeError` from `DeError` in the `serialize` feature.
Serialize functions and methods now return `SeError`.
- [#810]: Return `std::io::Error` from `Writer` methods.
- [#811]: Split `NamespaceError` and `EncodingError` from `Error`.
- [#811]: Renamed `Error::EscapeError` to `Error::Escape` to match other variants.
- [#811]: Narrow down error return type from `Error` where only one variant is ever returned:
attribute related methods on `BytesStart` and `BytesDecl` returns `AttrError`
- [#820]: Classify output of the `Serializer` by returning an enumeration with kind of written data
- [#823]: Do not allow serialization of consequent primitives, for example `Vec` or
`Vec` in `$value` fields. They cannot be deserialized back with the same result
- [#827]: Make `escape` and it variants take a `impl Into>` argument and implement
`From<(&'a str, Cow<'a, str>)>` on `Attribute`
- [#826]: Removed `DeError::InvalidInt`, `DeError::InvalidFloat` and `DeError::InvalidBoolean`.
Now the responsibility for returning the error lies with the visitor of the type.
See ratio[https://github.com/serde-rs/serde/pull/2811](https://redirect.github.com/serde-rs/serde/pull/2811)ull/2811
[#227]: https://redirect.github.com/tafia/quick-xml/issues/227
[#655]: https://redirect.github.com/tafia/quick-xml/issues/655
[#810]: https://redirect.github.com/tafia/quick-xml/pull/810
[#811]: https://redirect.github.com/tafia/quick-xml/pull/811
[#820]: https://redirect.github.com/tafia/quick-xml/pull/820
[#823]: https://redirect.github.com/tafia/quick-xml/pull/823
[#826]: https://redirect.github.com/tafia/quick-xml/pull/826
[#827]: https://redirect.github.com/tafia/quick-xml/pull/827
[Xml Schema]: https://www.w3.org/TR/xmlschema11-2/#boolean
Configuration
📅 Schedule: Branch creation - "after 8pm,before 6am" in timezone America/Los_Angeles, Automerge - "after 8pm,before 6am" in timezone America/Los_Angeles.
🚦 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.
[ ] If you want to rebase/retry this PR, check this box
This PR contains the following updates:
0.36.2
->0.37.0
Release Notes
tafia/quick-xml (quick-xml)
### [`v0.37.0`](https://redirect.github.com/tafia/quick-xml/blob/HEAD/Changelog.md#0370----2024-10-27) [Compare Source](https://redirect.github.com/tafia/quick-xml/compare/v0.36.2...v0.37.0) ##### New Features - [#826]: Implement `FromConfiguration
📅 Schedule: Branch creation - "after 8pm,before 6am" in timezone America/Los_Angeles, Automerge - "after 8pm,before 6am" in timezone America/Los_Angeles.
🚦 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 Renovate Bot.