Skip to content

Releases: mongodb/bson-ruby

4.2.1

19 Dec 16:16
Compare
Choose a tag to compare
  • RUBY-1189 Deserialize an int64 to a Fixnum, not Bignum on jRuby
  • Don't require options to be passed to Regexp::Raw#new
  • RUBY-1173 Force unpacking Q< and update big endian byte order check
  • Correct GCC version check

4.2.0

29 Nov 15:49
Compare
Choose a tag to compare

This minor release has the following changes in addition to those included in the 4.2.0.rc0 and 4.2.0.rc1 releases:

  • RUBY-1152 Implement driver BSON corpus tests.
  • RUBY-1164 Ensure that all options are captured when decoding a BSON regex.

4.2.0.rc1

01 Nov 10:14
Compare
Choose a tag to compare

This second release candidate of version 4.2.0 has the following fixes:

  • Made timestamp as_json match mongo specifications (@amiberger)
  • RUBY-1141 Raise LoadError when native extensions cannot be loaded.
  • Don't freeze BigDecimal class.

4.2.0.rc0

19 Sep 12:48
Compare
Choose a tag to compare

This is the first release candidate that supports MongoDB server version 3.4.

It contains the following changes and new features:

  • Renamed extension to bson_native
  • docs now contained in bson gem repo
  • Avoid warning that variable is not initialized (@qbantek)
  • Add BSON::ObjectId#to_time as alias to #generation_time (@oss92)
  • RUBY-1098 Support Decimal128 type.
  • Support serializing/deserializing OpenStruct objects. (@adimitrov)
  • RUBY-1124 Allow instantiating Int64 and Int32 objects and serializing them explicitly.

4.1.1

27 Apr 09:27
Compare
Choose a tag to compare

Apply key validation to documents in an Array as well.

4.1.0

14 Apr 15:30
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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)