Skip to content

Releases: orlandos-nl/BSON

3.4.2

29 Jul 09:57
Compare
Choose a tag to compare

Fix for open-swift url in Package.swift

3.4.1

29 Jul 09:56
Compare
Choose a tag to compare
  • Support C7 Data
  • Xcode project for Carthage

3.4.0

29 Jul 09:54
Compare
Choose a tag to compare

Update for Swift 3.0 preview 2

3.3.1

12 Jul 10:05
Compare
Choose a tag to compare

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

3.3.0

11 Jul 14:58
Compare
Choose a tag to compare

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

3.2.0

14 Jun 17:58
Compare
Choose a tag to compare
  • Swift 3.0 Preview 1 is now the preferred Swift version for BSON
  • Swift 2.2 and 2.3 are also supported. This is the last release of BSON to support Swift 2.2 and 2.3.

3.1.2

08 Jun 10:11
Compare
Choose a tag to compare

Fixed a bug that caused a null terminator to be appended after the key when iterating over a document.

3.1.1

08 Jun 08:44
Compare
Choose a tag to compare

Updated for Swift snapshot 06-06.

3.1.0

06 Jun 07:58
Compare
Choose a tag to compare
  • Support Carthage for Swift 2.2
  • Update Swift version to 05-31