Skip to content

Releases: mongodb/bson-ruby

4.1.0

14 Apr 15:30

Choose a tag to compare

BSON can now be configured to validate keys, this defaults to false but if set to true a BSON::String::IllegalKey exception will get raised for keys that contain a '.' or start with '$':

BSON::Config.validating_keys = true

4.0.3

01 Mar 11:11

Choose a tag to compare

This release contains the following bug fixes and improvements:

  • RUBY-1091 Fix ObjectId generation on little endian architectures.

4.0.2

18 Feb 10:50

Choose a tag to compare

This release has one bug fix for the java ByteBuf rewind method.

  • After rewind, set ByteBuf to read mode

v4.0.1

25 Jan 10:29

Choose a tag to compare

This patch release has the following changes:

  • Initialize the ObjectId counter to a random value, as per the ObjectId spec. @alethea
  • Add #rewind! method to ByteBuffer.

v4.0.0

07 Dec 15:08

Choose a tag to compare

This is a new major version of the bson gem. The most notable change is the implementation and use of ByteBuffers instead of Strings, which greatly improves the serialization/deserialization performance (#to_bson/#from_bson).

  • RUBY-1019 Performance improvements; implementation and use of ByteBuffers instead of Strings
  • Remove unused gems
  • Use [] instead of fetch in hashes
  • Update for JRuby 9
  • RUBY-1071 Integer#to_bson_key should return a String
  • Serialize Symbols to String bson types
  • BSON::ObjectId conversion function passes ObjectIds through (@jesjos)
  • Documentation fix (@knapo)