Skip to content

3.3.1

Compare
Choose a tag to compare
@Obbut Obbut released this 12 Jul 10:05
· 603 commits to main since this release

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 or document["anInt"] < document["aDouble"]
  • Added append function to Document
  • 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