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

bson

Package Overview
Dependencies
Maintainers
4
Versions
163
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bson - npm Package Compare versions

Comparing version 2.0.8 to 3.0.0

dist/bson.js

2

bower.json

@@ -10,3 +10,3 @@ {

"author": "Christian Amor Kvalheim <christkv@gmail.com>",
"main": "./browser_build/bson.js",
"main": "./dist/bson.js",
"license": "Apache-2.0",

@@ -13,0 +13,0 @@ "moduleType": [

@@ -0,1 +1,13 @@

<a name="3.0.0"></a>
# [3.0.0](https://github.com/mongodb/js-bson/compare/v2.0.8...v3.0.0) (2018-06-13)
### Features
* **ObjectID:** use FNV-1a hash for objectId ([4f545b1](https://github.com/mongodb/js-bson/commit/4f545b1))
* **rollup:** initial commit of rollup-generated bundle ([474b8f7](https://github.com/mongodb/js-bson/commit/474b8f7))
* **rollup:** switch from webpack to rollup for bundling ([98068fa](https://github.com/mongodb/js-bson/commit/98068fa))
<a name="2.0.8"></a>

@@ -2,0 +14,0 @@ ## [2.0.8](https://github.com/mongodb/js-bson/compare/v2.0.7...v2.0.8) (2018-06-06)

'use strict';
const hostname = require('os').hostname;
const fnv1a24 = require('./fnv1a').fnv1a24;
/**

@@ -10,3 +14,3 @@ * Machine id.

*/
var MACHINE_ID = parseInt(Math.random() * 0xffffff, 10);
const MACHINE_ID = fnv1a24(hostname);

@@ -13,0 +17,0 @@ // Regular expression that checks for hex value

@@ -12,6 +12,6 @@ {

"index.js",
"browser_build",
"dist",
"bower.json"
],
"version": "2.0.8",
"version": "3.0.0",
"author": "Christian Amor Kvalheim <christkv@gmail.com>",

@@ -28,7 +28,4 @@ "license": "Apache-2.0",

"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-polyfill": "^6.26.0",
"babel-plugin-external-helpers": "^6.22.0",
"babel-preset-env": "^1.6.0",
"babel-preset-stage-0": "^6.24.1",
"babel-register": "^6.26.0",
"chai": "^4.1.2",

@@ -41,4 +38,7 @@ "conventional-changelog-cli": "^1.3.5",

"prettier": "~1.12.0",
"webpack": "^3.6.0",
"webpack-polyfills-plugin": "0.1.0"
"rollup": "^0.56.2",
"rollup-plugin-babel": "^3.0.3",
"rollup-plugin-commonjs": "^8.3.0",
"rollup-plugin-node-builtins": "^2.1.2",
"rollup-plugin-node-resolve": "^3.0.3"
},

@@ -52,2 +52,3 @@ "config": {

},
"browser": "dist/bson.js",
"engines": {

@@ -58,3 +59,3 @@ "node": ">=4.0.0"

"test": "mocha ./test/node",
"build": "webpack --config ./webpack.dist.config.js",
"build": "rollup -c",
"lint": "eslint lib test",

@@ -65,4 +66,3 @@ "format": "prettier --print-width 100 --tab-width 2 --single-quote --write 'test/**/*.js' 'lib/**/*.js'",

"prepublishOnly": "npm run build"
},
"browser": "browser_build/bson.js"
}
}

@@ -5,3 +5,3 @@ # BSON parser

This browser version of the BSON parser is compiled using [webpack](https://webpack.js.org/) and the current version is pre-compiled in the `browser_build` directory.
This browser version of the BSON parser is compiled using [rollup](https://rollupjs.org/) and the current version is pre-compiled in the `dist` directory.

@@ -22,3 +22,3 @@ This is the default BSON parser, however, there is a C++ Node.js addon version as well that does not support the browser. It can be found at [mongod-js/bson-ext](https://github.com/mongodb-js/bson-ext).

```html
<script src="./browser_build/bson.js"></script>
<script src="./dist/bson.js"></script>

@@ -25,0 +25,0 @@ <script>

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