3.3.1
This release
- Linux compatibility on Swift Development Snapshot 2016-06-20
BSON 3.3
JSON parsing and generation
BSON now has an integrated parser and generator for MongoDB Extended JSON.
var document = try Document(extendedJSON: jsonString)
// do whatever with the document
let newJsonString = document.makeExtendedJSON()
Other improvements
- Migrated to Swift Snapshot 06-20
- Rewrote Unit Tests (WIP)
- Added a playground to demonstrate the features of BSON
- Better
Timestamp
handling Value
is now comparable, for example:document["anInt"] > 4
ordocument["anInt"] < document["aDouble"]
- Added
append
function toDocument
- Added a
bytes
property to[Document]
(an array of documents) to complement the existing initializer for arrays of documents - Re-introduced the dot notation features (
document["example.subkey.othersubkey"]
)
Bugfixes
- Fixed a bug that caused a null character to be appended to retreived keys in some cases
- Fixed the
===
operator that would sometimes ignore the type information when comparing values - Improved handling of incorrectly formatted documents
- The array validation feature now works
- Fixed regex handling
Other
- Dropped Swift 2.2 support