You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `crc32` function was never implemented, as a result this property never worked as intended. Deprecates the `cacheFunctionsCrc32` property from deserialize options, and removes it from documentation.
NODE-2770
|[options.cacheFunctionsCrc32]| <code>Object</code> | <code>false</code> | use a crc32 code for caching, otherwise use the string of the function. |
308
307
|[options.promoteLongs]| <code>Object</code> | <code>true</code> | when deserializing a Long will fit it into a Number if it's smaller than 53 bits |
309
308
|[options.promoteBuffers]| <code>Object</code> | <code>false</code> | when deserializing a Binary will return it as a node.js Buffer instance. |
310
309
|[options.promoteValues]| <code>Object</code> | <code>false</code> | when deserializing will promote BSON values to their Node.js closest equivalent types. |
@@ -314,7 +313,7 @@ Serialize a Javascript object using a predefined Buffer and index into the buffe
314
313
315
314
Deserialize data as BSON.
316
315
317
-
**Returns**: <code>Object</code> - returns the deserialized Javascript Object.
316
+
**Returns**: <code>Object</code> - returns the deserialized Javascript Object.
318
317
<aname="calculateObjectSize"></a>
319
318
320
319
### calculateObjectSize(object)
@@ -327,7 +326,7 @@ Deserialize data as BSON.
327
326
328
327
Calculate the bson size for a passed in Javascript object.
329
328
330
-
**Returns**: <code>Number</code> - returns the number of bytes the BSON object will take up.
329
+
**Returns**: <code>Number</code> - returns the number of bytes the BSON object will take up.
|[options.cacheFunctionsCrc32]| <code>Object</code> | <code>false</code> | use a crc32 code for caching, otherwise use the string of the function. |
346
344
|[options.promoteLongs]| <code>Object</code> | <code>true</code> | when deserializing a Long will fit it into a Number if it's smaller than 53 bits |
347
345
|[options.promoteBuffers]| <code>Object</code> | <code>false</code> | when deserializing a Binary will return it as a node.js Buffer instance. |
348
346
|[options.promoteValues]| <code>Object</code> | <code>false</code> | when deserializing will promote BSON values to their Node.js closest equivalent types. |
@@ -351,7 +349,7 @@ Calculate the bson size for a passed in Javascript object.
351
349
352
350
Deserialize stream data as BSON documents.
353
351
354
-
**Returns**: <code>Number</code> - returns the next index in the buffer after deserialization **x** numbers of documents.
352
+
**Returns**: <code>Number</code> - returns the next index in the buffer after deserialization **x** numbers of documents.
0 commit comments