|
| 1 | +BSON library changes from 1.4 to 1.4.1 |
| 2 | + |
| 3 | +BsonBinaryWriter.cs |
| 4 | + added calls to base.WriteStartArray/base.WriteEndArray |
| 5 | + added calls to base.WriteStartDocument/base.WriteEndDocument |
| 6 | + |
| 7 | +BsonDocumentWriter.cs |
| 8 | + added calls to base.WriteStartArray/base.WriteEndArray |
| 9 | + added calls to base.WriteStartDocument/base.WriteEndDocument |
| 10 | + |
| 11 | +BsonWriter.cs |
| 12 | + added private field _serializationDepth |
| 13 | + added public property SerializationDepth |
| 14 | + changed WriteEndArray to decrement _serializationDepth |
| 15 | + changed WriteEndDocument to increment _serializationDepth |
| 16 | + changed WriteStartArray to increment _serializationDepth and check if it exceeds MaxSerializationDepth |
| 17 | + changed WriteStartDocument to increment _serializationDepth and check if it exceeds MaxSerializationDepth |
| 18 | + |
| 19 | +BsonWriterSettings.cs |
| 20 | + added private field _maxSerializationDepth |
| 21 | + added public property MaxSerializationDepth |
| 22 | + |
| 23 | +JsonWriter.cs |
| 24 | + added calls to base.WriteStartArray/base.WriteEndArray |
| 25 | + added calls to base.WriteStartDocument/base.WriteEndDocument |
| 26 | + changed WriteRegularExpression to not escape "\" (if it needed to be escaped it already would be) |
| 27 | + |
| 28 | +BsonArray.cs |
| 29 | + added checks for invalid null arguments |
| 30 | + changed AddRange(IEnumerable<BsonValue>) to skip null BsonValues passed in (as per functional construction conventions) |
| 31 | + changed AddRange(IEnumerable<string>) to map null to BsonNull.Value |
| 32 | + changed AddRange(IEnumerable) to use BsonTypeMapper.MapToBsonValue |
| 33 | + changed Clone to be shallow like it was supposed to be |
| 34 | + |
| 35 | +BsonBinaryData.cs |
| 36 | + added checks for invalid null arguments |
| 37 | + |
| 38 | +BsonDocument.cs |
| 39 | + added checks for invalid null arguments |
| 40 | + changed Add(IDictionary<string, object>) to use BsonTypeMapper.MapToBsonValue |
| 41 | + changed Add(IDictionary) to use BsonTypeMapper.MapToBsonValue |
| 42 | + changed GetDocumentId to return the Value instead of the RawValue as the Id |
| 43 | + changed GetDocumentId to handle special case of Guid Id |
| 44 | + changed SetDocumentId to assume Id is already of type BsonValue |
| 45 | + changed ToDictionary to use new BsonTypeMapper.MapToDotNetValue method |
| 46 | + changed ToHashtable to use new BsonTypeMapper.MapToDotNetValue method |
| 47 | + removed private method ToDictionaryHelper (no longer needed now that MapToDotNetValue exists) |
| 48 | + removed private method ToHashtable (no longer needed now that MapToDotNetValue exists) |
| 49 | + |
| 50 | +BsonElement.cs |
| 51 | + added checks for invalid null arguments |
| 52 | + changed Clone to be shallow like it was supposed to be |
| 53 | + |
| 54 | +BsonJavaScript.cs |
| 55 | + added checks for invalid null arguments |
| 56 | + |
| 57 | +BsonJavaScriptWithScope.cs |
| 58 | + added checks for invalid null arguments |
| 59 | + |
| 60 | +BsonRegularExpression.cs |
| 61 | + added checks for invalid null arguments |
| 62 | + changed constructor to not unescape "\" (if it's escaped it's because it needs to be) |
| 63 | + changed ToString to not escape "\" (it would already be escaped) |
| 64 | + |
| 65 | +BsonString.cs |
| 66 | + added checks for invalid null arguments |
| 67 | + |
| 68 | +BsonSymbol.cs |
| 69 | + added checks for invalid null arguments |
| 70 | + |
| 71 | +BsonSymbolTable.cs |
| 72 | + added checks for invalid null arguments |
| 73 | + |
| 74 | +BsonTypeMapper.cs |
| 75 | + changed MapToBsonValue to map null to BsonNull.Value |
| 76 | + added new MapToDotNetValue methods (maps from BsonValue to best matching .NET types) |
| 77 | + changed TryMapToBsonValue to map null to BsonNull.Value |
| 78 | + |
| 79 | +BsonTypeMapperOptions.cs |
| 80 | + new class containing options for the new MapToDotNetValue method |
| 81 | + |
| 82 | +BsonValue.cs |
| 83 | + added checks for invalid null arguments |
| 84 | + |
| 85 | +ObjectId.cs |
| 86 | + added checks for invalid null arguments |
| 87 | + |
| 88 | +BsonElement.cs |
| 89 | + added no argument constructor (to support opt-in serialization of read-only properties without requiring an explicit element name) |
| 90 | + |
| 91 | +IdGenerators.cs |
| 92 | + added new BsonBinaryDataGuidGenerator class |
| 93 | + |
| 94 | +CollectionGenericSerializer.cs |
| 95 | + changed Deserialize methods to handle representation with discriminator when nominalType is object |
| 96 | + changed Serialize methods to use representation with discriminator when nominalType is object |
| 97 | + |
| 98 | +CollectionSerializer.cs |
| 99 | + changed Deserialize methods to handle representation with discriminator when nominalType is object |
| 100 | + changed Serialize methods to use representation with discriminator when nominalType is object |
| 101 | + |
| 102 | +NetPrimitiveSerializers.cs |
| 103 | + changed Deserialize method of UriSerializer to allow relative or absolute URIs |
| 104 | + changed Serializer method of UriSerializer to serialize original string (to support relative or absolute URIs) |
| 105 | + |
| 106 | +BsonClassMap.cs |
| 107 | + added public property AllMemberMaps |
| 108 | + added public property DeclaredMemberMaps |
| 109 | + deprecated public property MemberMaps (use AllMemberMaps or DeclaredMemberMaps instead) |
| 110 | + moved GetTypeNameDiscriminator method to new TypeNameDiscriminator class |
| 111 | + changed AutoMapMember to support using BsonElement to opt-in serialization of read-only properties |
| 112 | + changed FindMembers to support using BsonElement to opt-in serialization of read-only properties |
| 113 | + |
| 114 | +BsonClassMapSerializer.cs |
| 115 | + changed Deserialize to ignore any values that were serialized for opted-in read-only properties |
| 116 | + changed GetMemberSerializationInfo to check AllMemberMaps directly instead of calling GetMemberMap |
| 117 | + changed DeserializeExtraElement to use new MapToDotNetValue method when extra elements property is of type IDictionary<string, object> |
| 118 | + removed MapBsonValueToDotNetValue (use new MapToDotNetValue method of BsonTypeMapper instead) |
| 119 | + |
| 120 | +BsonMemberMap.cs |
| 121 | + added public property IsReadOnly |
| 122 | + |
| 123 | +TypeNameDiscriminator.cs |
| 124 | + new helper class |
| 125 | + added public method GetActualType that maps a friendly type name discriminator value to a Type |
| 126 | + added public method GetDiscriminator that maps a Type to a friendly type name discriminator value |
| 127 | + |
| 128 | +BsonDefaults.cs |
| 129 | + added private static field _maxSerializationDepth with a default value of 100 |
| 130 | + added public static property MaxSerializationDepth |
0 commit comments