Skip to content

Update dependency io.github.pdvrieze.xmlutil:serialization-jvm to v0.91.3#23

Open
renovate[bot] wants to merge 1 commit intomainfrom
renovate/xml
Open

Update dependency io.github.pdvrieze.xmlutil:serialization-jvm to v0.91.3#23
renovate[bot] wants to merge 1 commit intomainfrom
renovate/xml

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Nov 5, 2025

This PR contains the following updates:

Package Change Age Confidence
io.github.pdvrieze.xmlutil:serialization-jvm 0.86.30.91.3 age confidence

Release Notes

pdvrieze/xmlutil (io.github.pdvrieze.xmlutil:serialization-jvm)

v0.91.3

(Oct 28, 2025)

Changes:

  • Change the behaviour of defaultPolicy to inherit the settings of
    a previous policy even if it does not inherit DefaultXmlSerializationPolicy.
    In rare cases this changes the behaviour (where a custom policy was
    originally set (with different defaults), it didn't inherit the
    default policy, and it is now replaced by a default policy).
  • In XmlWriter introduce a safeCdsect function that will handle embedded end
    of cdata sequences by splitting the CDATA section into two sections. This is
    now used in serialization to avoid serialization errors if the value contains
    ]]>.

Fixes:

  • Fix serialization of cdata in the generic (and Android) xml writer. The writer
    incorrectly escaped entities in cdata (#​304), and did not correctly deal with
    ]]> in the cdata content (this is resolved by writing as two separate cdata
    sections).
  • Make the default instance encodeToString (XML.encodeToString) use the
    regular behaviour for handling null prefixes. This fixes the default empty
    prefix being used if none is manually set (rather than the annotated prefix).
  • Fix attributes not being prefixed with a namespace if their namespace prefix
    is the default prefix for that namespace. As a workaround leave the prefix
    different from its containers.
  • In pedantic mode, allow an XmlSerialName to use the xml prefix as long as
    its namespace is left default or maps to the xml namespace. Also force the
    prefix used to be the standard prefix (although, depending on the xml writer
    this may already be the case effectively).
  • For the generic parser / serializer make handling of newline/tabs in attribute
    values standard compliant (#​300). This means that when writing all will be
    written as character entities to allow for preservation of the values. For
    reading the entities are just resolved. Actual newline/tab content in
    attribute values is normalized as space characters (where CRLF is still
    replaced by a single space). As attribute values can be differen types than
    CData this does not further normalize the value by collapsing whitespace
    sequences.

v0.91.2

(July 27, 2025)

Features:

  • Make defaultPrimitiveOutputKind and defaultObjectOutputKind
    configurable attributes rather than (overridable) properties (#​285).
  • Allow the "xml" prefix in annotations to be used without explicit
    namespace specification, but implicitly mapped to the xml namespace:
    http://www.w3.org/XML/1998/namespace. Note that while not enforced
    it is not valid to declare the prefix to have any different value.
    Adresses #​289.

Changes:

  • Tidy up the implementation of the constructors of the
    DefaultSerializationPolicy. This might have slight consequences
    in binary compatibility for (experimental) inheritance.
  • Change DelegatingSerializer (in serialutil) to take the serial
    name as parameter as using the delegate is not valid.

Fixes:

  • Fix trimming of strings inside a mixed context where there is an
    @XmlIgnoreSpace(true) annotation.
  • Fix handling of entity references in handling generic value holders
    (node, compactFragment). This addresses bug #​291 with two separate,
    but equivalent errors.

v0.91.1

(May 15, 2025)

Features:

  • Add an annotation @XmlMapEntryName to force map entries not to be
    collapsed, also specifying the name of the entry.
  • Improve translation of serial names to xml names in the
    default policy (strip out text after '<', '[' and '(')

Changes:

  • Replace @XmlNamespaceDeclSpec with @XmlNamespaceDeclSpecs that
    accepts an array argument
  • Synchronize annotation and readme docs #​279 (thanks to Jack Boswell
    (boswelja))

Fixes:

  • Fix deserialization of value classes that wrap a string when inside
    an @XmlValue property (#​280).
  • Fix the issue that the for JavaScript overloads cannot be different
    only in external parameter type. This breaks compiling with a
    js2025 target. Discussed in #​83.
  • Inspired by #​274, fix the decoding of non-collapsed map entries
    where the XmlSerialName annotation is not present.
  • Further fixes on inline serialization with more cases.

v0.91.0

(April 1, 2025)

Features:

  • Add XmlKeyName as annotation to set the name of the key used in
    maps. This just adds the capability to the default policy. Supports
    issue #​218.
  • Add (and change in the recommended policy) the isXmlFloat property
    that ensures properties are stored in XML format (for infinity).
    Decoding will accept both formats. Fixes #​222.

Fixes:

  • Fix #​269 to allow @XmlValue for CompactFragment to capture the
    contents of an element while allowing attributes to be captured. It
    should be noted that combining this with element children is not
    intended to be supported (it may work if the tagsoup is trailing).
  • Fix caching issue in case of polymorphic elements (at least in lists)
    where the polymorphic descriptor did not retain use side annotations,
    thus resulting in invalid cache keys.

v0.90.3

(November 7, 2024)

Changes:

  • In pedantic mode check that xml/xmlns are not used as names (they
    are always invalid). Note that namespaces can be specified using
    @XmlSerialName (for tags) and @XmlNamespaceDeclSpec (for
    additional names).
  • The cache to use can now be configured. By default it uses the
    threadLocal version, but the thread unsafe default is also available,
    as is the FormatCache.Dummy cache that does no caching.
    Fixes:
  • Fix support for multiple namespaces inside a single tag (QNameMap)
    as reported in #​249.
  • Use threadlocals for caching document structures by default. This should avoid
    multithreading issues when reusing the format (recommended for speed)

v0.90.2

(October 15, 2024)

Changes:

  • Update to Kotlin 2.0.21 / Kotlinx.serialization 1.7.3
  • Add support for Android native targets (@​whyoleg in #​242)

v0.90.1

(June 16, 2024)

Fixes:

  • Fix android plugin dependency.

v0.90.0

(June 13, 2024)

Changes:

  • The core module no longer automatically includes Android/Jvm "native"
    parsers by default, but uses the platform independent implementation.
    The Android/Jvm native parsers are available by including "core-jvm"
    and "core-android" packages. Note that serialization-jvm and
    serialization-android do so already.
  • There is a coreCompat package that provides the original setup as
    direct replacement for core. This is a temporary package that will
    be removed at 1.0 release.

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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants