swift-bson

pure Swift BSON library

APACHE-2.0 License

Stars
44
Committers
11

Bot releases are hidden (Show)

swift-bson - SwiftBSON v3.1.0 Latest Release

Published by isabelatkinson over 2 years ago

The MongoDB Swift driver team is pleased to announce the 3.1.0 release of SwiftBSON.

With this release, the library now officially supports use on iOS versions 13+.

Included Tickets

A full list of tickets included in this release can be found here.

swift-bson - SwiftBSON v3.0.1

Published by patrickfreed over 3 years ago

The MongoDB Swift driver team is pleased to announce the 3.0.1 release of SwiftBSON.

This release contains fixes for the following bugs that were included in the 3.0.0 release:

  • [SWIFT-1126] SwiftBSON fails to parse legacy extended JSON
  • [SWIFT-1137] Dates greater than or equal to Int64.max ms from epoch cause SwiftBSON to crash

Any existing applications depending on the Swift driver can update to this version of SwiftBSON simply by running swift package update without any modifications to the their Package.swifts. Any new applications depending on the driver will automatically pull this version in.

swift-bson - SwiftBSON v3.0.0

Published by kmahar over 3 years ago

The MongoDB Swift driver team is pleased to announce the 3.0.0 release of SwiftBSON.

This release is technically a version 3.0 as this GitHub repository previously contained Swift bindings for libbson, a BSON library written in C. However, it is a 1.0 in spirit, as we have written a brand-new BSON library from scratch entirely in Swift.

While the internals are all new, this library provides the same familiar API as the C-based one that previously resided directly in our Swift driver’s codebase, with the addition of a couple new features:

  • We’ve added a new encoder/decoder pair, ExtendedJSONEncoder and ExtendedJSONDecoder, which support converting between your custom Swift types and extended JSON. See our new JSON Interop Guide for more details.
  • We’ve added a new method to BSONDocument, equalsIgnoreKeyOrder, which returns true if two documents contain the same (key, value) pairs in any order. See the documentation for more details.

The Swift driver will switch to using this library in our upcoming 1.1 release. You can view the full API documentation here.

A special thanks to @nbbeeken and @nspektor for their hard work on this library!

Included Tickets

swift-bson -

Published by jmikola almost 6 years ago