Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bson

Package Overview
Dependencies
Maintainers
7
Versions
163
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bson - npm Package Versions

1
17

1.1.4

Diff

mbroadst
published 4.0.3 •

Changelog

Source

4.0.3 (2020-01-09)

Bug Fixes

  • support Number object in Int32 and Double constructors (fe3f0dc)
  • Timestamp: make sure timestamp is always unsigned (36b2d43)

<a name="4.0.2"></a>

daprahamian
published 1.1.3 •

daprahamian
published 1.1.2 •

daprahamian
published 1.1.1 •

daprahamian
published 4.0.2 •

Changelog

Source

4.0.2 (2019-03-08)

Bug Fixes

  • buffer: don't use deprecated Buffer constructors (7bb9c57)
  • Buffer: import buffer for binary, decimal128, and fnv1a (6be7b8d)
  • ejson: enable serialization of legacy ObjectID (ba98ccb), closes #303
  • ejson: support array for replacer parameter in EJSON.stringify (9f43809), closes #303 #302 #303
  • ejson-serialize: prevent double serialization for nested documents (ab790c9), closes #303
  • object-id: correct serialization of old ObjectID types (8d57a8c)
  • timestamp: getTimestamp support times beyond 2038 (a0820d5)
  • 4.x-1.x interop (incl. ObjectID _bsontype) (f4b16d9)

<a name="4.0.1"></a>

mbroadst
published 4.0.1 •

Changelog

Source

4.0.1 (2018-12-06)

Bug Fixes

  • object-id: correct serialization of old ObjectID types (8d57a8c)

<a name="4.0.0"></a>

mbroadst
published 4.0.0 •

Changelog

Source

4.0.0 (2018-11-13)

Migration Guide

Please see the migration guide for detailed discussion of breaking changes in this release.

Bug Fixes

  • buffer: replace deprecated Buffer constructor (5acdebf)
  • dbPointer: fix utf8 bug for dbPointer (018c769)
  • deserialize: fix deserialization of 0xFFFD (c682ae3), closes #277
  • ext-json: deserialize doubles as Number in relaxed mode (a767fa1)
  • ObjectId: will now throw if an invalid character is passed (6f30b4e)
  • ObjectID: ObjectId.isValid should check buffer length (06af813)
  • package: browser section needs to point to correct index (08337e3)
  • random-bytes: fallback to insecure path if require is null (963b12b)
  • random-bytes: wrap crypto require in try/catch for fallback (47fd5f7)
  • serializer: do not use checkKeys for $clusterTime (cbb4724)
  • serializer: map insert expects only string keys (aba3a18)

Code Refactoring

  • symbol: rename Symbol to BSONSymbol (5d5b3d2)

Features

  • BSON: simplify and flatten module exports (f8920c6)
  • bsontype: move all _bsontypes to non-enumerable properties (16f5bf6)
  • ext-json: add extended JSON codecs directly to BSON types (10e5f00)
  • ext-json: add extended JSON support to the bson library (d6b71ab)
  • ext-json: export EJSON at top level of module (c356a5a)
  • karma: test bson in the browser (cd593ca)
  • long: replace long implementatin with long.js (545900d)

BREAKING CHANGES

  • ObjectId: Where code was previously silently erroring, users may now experience TypeErrors
  • symbol: This was conflicting with the ES6 Symbol type

<a name="3.0.2"></a>

mbroadst
published 4.0.0-rc8 •

mbroadst
published 4.0.0-rc7 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc