0.13.1 (7 November 2021)

This is a bugfix release that fixes an edge case with the use of trimValueWhitespaces configuration on XMLDecoder, and adds official Windows support for users of Swift 5.5. Many thanks to @MartinP7r for multiple contributions to this release!

Closed issues:

Merged pull requests:

0.13.0 (6 August 2021)

This release adds two new features and a bugfix.

Namely:

Many thanks to @huwr, @kneekey23, and @wooj2 for their contributions!

Closed issues:

Merged pull requests:

0.12.0 (26 January 2021)

This release adds a few new features. Namely:

Thanks to Kenta Kubo for the contribution!

Closed issues:

Merged pull requests:

0.11.1 (3 May 2020)

This release fixes an issue, where non-string values used CDATA encoding. Thanks to @ksoftllc for reporting it!

Closed issues:

Merged pull requests:

0.11.0 (13 April 2020)

This is a bugfix and feature release, which fixes an issue with CDATA decoding and adds TopLevelEncoder conformance to XMLEncoder. New rootAttributes argument has been added to the encode function on XMLEncoder that allows adding attributes on root elements without adding them to your model types. Thanks to @portellaa, @Kirow and others for their contributions and bug reports!

Closed issues:

Merged pull requests:

0.10.0 (4 April 2020)

This is a bugfix release, which improves encoding and decoding of enums with associated values (also known as "choice coding") with the XMLChoiceCodingKey protocol. This release is also tested on Xcode 11.4 and Swift 5.2.1 on Linux. A few breaking changes were introduced, which were needed to simplify and improve internals of the library. Please refer to the corresponding section below for more details. Thanks to @bwetherfield and @ultramiraculous for their contributions!

Breaking changes:

This change was needed to accommodate for multiple edges cases with how arrays of empty elements and empty strings are decoded.

The value intrinsic now only accepts the empty string key "", as the previous "value" key caused naming collisions with attributes and elemenents that had the same name.

Closed issues:

Merged pull requests:

0.9.0 (19 October 2019)

This release fixes a few bugs with Float type parsing and Swift 5.1 support on Linux. It also adds a helper extension to improve compatibility with Combine and adds a few tests to confirm that a few edges cases are working well. Thanks to @bwetherfield, @DJBen, @jsbean, @mxcl, @marcblanchet and @sharplet for bug reports and pull requests!

Implemented enhancements:

Fixed bugs:

Closed issues:

Merged pull requests:

0.8.0 (4 August 2019)

This release adds support for decoding and encoding ordered sequences of different elements as enums with associated values. In addition, XMLCoder now supports Linux. Many thanks to @jsbean, @bwetherfield and @drewag for implementing this!

Breaking changes:

Closed issues:

Merged pull requests:

0.7.0 (2 July 2019)

This release changes the behavior of attributes coding: now order of XML attributes is fully preserved. One of the benefits is that it improves unit testing for users of XMLCoder, which allows testing against specific encoded attributes without accounting for their randomized order. Also a small coding style fix is included. In addition, XMLCoder now uses Azure Pipelines instead of Travis for CI with great improvements to overall CI stability, speed, and parallel builds. Thanks to Andrés Cecilia Luque and Jay Hickey for the contributions!

Merged pull requests:

0.6.0 (17 June 2019)

An improvement release that introduces convertFromKebabCase and convertToKebabCase key decoding strategies. There were a few changes that aren't visible to end-users: the way that keys and values are stored internally has changed and a few more tests added. Thanks to Andrés Cecilia Luque and Vincent Esche for the contributions!

Merged pull requests:

0.5.1 (2 May 2019)

Bugfix release that restores decoding of empty sequences, which became broken in 0.5.0.

Merged pull requests:

0.5.0 (2 May 2019)

A small improvement release tagged early to resolve blocking issues in CoreXLSX.

Notable changes:

Closed issues:

Merged pull requests:

0.4.1 (12 April 2019)

A bugfix release removing unused Xcode project scheme to improve build time for Carthage users.

Notable changes:

0.4.0 (8 April 2019)

This is a release with plenty of new features that allow you to parse many more XML variations than previously. Compatibility with Xcode 10.2 and Swift 5.0 is also improved. A huge thank you to @JoeMatt and @regexident for their contributions, to @hodovani for maintaining the project, and to @Inukinator, @qmoya, @Ma-He, @khoogheem and @thecb4 for reporting issues during development!

Notable changes:

Closed issues:

Merged pull requests:

0.3.1 (6 February 2019)

A bugfix release that adds missing CFBundleVersion in generated framework's Info.plist (#72 reported by @stonedauwg).

Changes:

0.3.0 (22 January 2019)

A maintenance release focused on fixing bugs, improving error reporting and overall internal architecture of the library. For this release we've started tracking test coverage and were able to increase it from 11.8% to 75.6%. 🎉 Thanks to @hodovani and @regexident for their work on improving test coverage in this release.

Additions:

You can now set errorContextLength: UInt property on XMLDecoder instance, which will make it add a snippet of XML of at most this length from parser state when a parsing error occurs. This change was provided by @hodovani and can greatly help with attempts to parse invalid XML, where previously only a line and column number were reported.

Deprecations:

NodeEncodingStrategies was renamed to NodeEncodingStrategy for consistency. NodeEncodingStrategies is still available as a deprecated typealias, which will be removed in future versions. Thanks to @regexident for cleaning this up and providing many more changes in this release that make XMLCoder better and easier to use.

Changes:

0.2.1 (18 November 2018)

0.2.0 (18 November 2018)

0.1.1 (18 November 2018)

0.1.0 (8 November 2018)