mongodb-extjson
Advanced tools
Comparing version 3.0.2 to 3.0.3
@@ -1,3 +0,3 @@ | ||
<a name="3.0.2"></a> | ||
## [3.0.2](https://github.com/mongodb-js/mongodb-extjson/compare/v3.0.1...v3.0.2) (2018-07-13) | ||
<a name="3.0.3"></a> | ||
## [3.0.3](https://github.com/mongodb-js/mongodb-extjson/compare/v3.0.2...v3.0.3) (2018-07-13) | ||
@@ -7,16 +7,6 @@ | ||
* **package.json:** fixing package.json missing files ([dea2b90](https://github.com/mongodb-js/mongodb-extjson/commit/dea2b90)) | ||
* **breaking:** reverts breaking changes in v3.0.1 and v3.0.2 ([3fab274](https://github.com/mongodb-js/mongodb-extjson/commit/3fab274)) | ||
<a name="3.0.1"></a> | ||
## [3.0.1](https://github.com/mongodb-js/mongodb-extjson/compare/v3.0.0...v3.0.1) (2018-07-13) | ||
### Bug Fixes | ||
* **rollup:** fixup dist and bundle in Buffer ([7e2f840](https://github.com/mongodb-js/mongodb-extjson/commit/7e2f840)) | ||
<a name="2.1.4"></a> | ||
@@ -23,0 +13,0 @@ ## [2.1.4](https://github.com/mongodb-js/mongodb-extjson/compare/v2.1.3...v2.1.4) (2018-05-31) |
'use strict'; | ||
const ExtJSON = require('./lib/ext_json'); | ||
module.exports = { | ||
parse: ExtJSON.parse, | ||
stringify: ExtJSON.stringify, | ||
setBSONModule: ExtJSON.setBSONModule, | ||
BSON: ExtJSON.BSON | ||
}; | ||
module.exports = ExtJSON; |
'use strict'; | ||
const Buffer = require('buffer').Buffer; | ||
/** | ||
@@ -6,0 +4,0 @@ * Module dependencies. |
{ | ||
"name": "mongodb-extjson", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"description": "MongoDB Extended JSON library", | ||
"main": "index.js", | ||
"module": "dist/mongodb-extjson.esm.js", | ||
"browser": { | ||
"./index.js": "./dist/mongodb-extjson.browser.umd.js", | ||
"./dist/mongodb-extjson.esm.js": "./dist/mongodb-extjson.browser.esm.js" | ||
}, | ||
"directories": { | ||
"lib": "./lib" | ||
}, | ||
"files": [ | ||
"lib", | ||
"index.js", | ||
"dist" | ||
], | ||
"browser": "dist/mongodb-extjson.js", | ||
"scripts": { | ||
@@ -49,3 +37,2 @@ "test": "mocha test/", | ||
"babel-core": "^6.26.0", | ||
"babel-plugin-external-helpers": "^6.22.0", | ||
"babel-preset-env": "^1.6.1", | ||
@@ -63,9 +50,7 @@ "chai": "^4.1.2", | ||
"rollup-plugin-commonjs": "^8.3.0", | ||
"rollup-plugin-node-builtins": "^2.1.2", | ||
"rollup-plugin-node-resolve": "^3.0.3" | ||
}, | ||
"dependencies": { | ||
"bson": "3.0.1", | ||
"buffer": "^5.1.0" | ||
"bson": "^3.0.2" | ||
} | ||
} |
@@ -86,11 +86,1 @@ # MongoDB Extended JSON Library [![][npm_img]][npm_url] [![][travis_img]][travis_url] | ||
[npm_url]: https://www.npmjs.org/package/mongodb-extjson | ||
## FAQ | ||
#### What are the various files in dist? | ||
* `mongodb-extjson.bundle.js` is a bundled up version of the library that is suitable for inclusion in an HTML page via a `<script>` tag. | ||
* `mongodb-extjson.esm.js` is a rolled up version of the library that is suitable for interoperation with bundlers that work better with ES modules. | ||
* `mongodb-extjson.browser.esm.js` is similar to `mongodb-extjson.esm.js` but is ultimately intened for consumers producing browser bundles. It also pulls in any browser specific dependencies/code that may be needed. | ||
* `mongodb-extjson.browser.umd.js` is similar to the source code of this library but is ultimately intened for consumers producing browser bundlers expecting a UMD format. It also pulls in any browser specific dependencies/code that may be needed. | ||
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
432617
1
14
61
6353
86
7
1
+ Addedbson@3.0.2(transitive)
- Removedbuffer@^5.1.0
- Removedbase64-js@1.5.1(transitive)
- Removedbson@3.0.1(transitive)
- Removedbuffer@5.7.1(transitive)
- Removedieee754@1.2.1(transitive)
Updatedbson@^3.0.2