Skip to content

Commit

Permalink
fix(revert): Reverting v3.0.1
Browse files Browse the repository at this point in the history
Reverting breaking changes in v3.0.1
  • Loading branch information
daprahamian committed Jul 13, 2018
1 parent 8fd95db commit efb0720
Show file tree
Hide file tree
Showing 40 changed files with 6,022 additions and 8,299 deletions.
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,4 @@ npm-debug.log
builderror.log

bson.sublime-project
bson.sublime-workspace

dist/*
!/dist/bson.bundle.js
bson.sublime-workspace
13 changes: 5 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,14 @@ sudo: false
dist: trusty

language: node_js
node_js:
- 4
- 6
- 8
- 10

cache:
yarn: true
directories:
- node_modules

script:
- npm run-script test-node
- if [[ $(node --version) != v4* ]] ; then npm run-script test-browser; fi
node_js:
- 4
- 6
- 8
- 10
17 changes: 0 additions & 17 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
<a name="3.0.1"></a>
## [3.0.1](https://github.com/mongodb/js-bson/compare/v3.0.0...v3.0.1) (2018-07-12)


### Bug Fixes

* **bson:** normalizedFunctionString handles named functions ([6b49c23](https://github.com/mongodb/js-bson/commit/6b49c23))
* **rollup:** fixup dist and bundle in Buffer ([3620ef8](https://github.com/mongodb/js-bson/commit/3620ef8))


### Features

* **bson:** test bson in browser ([223fbdf](https://github.com/mongodb/js-bson/commit/223fbdf))
* **UintArray:** Adds support for Uint8Arrays ([2a54053](https://github.com/mongodb/js-bson/commit/2a54053))



<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)

Expand Down
13 changes: 3 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ npm run build
A simple example of how to use BSON in the browser:

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

<script>
function start() {
Expand Down Expand Up @@ -91,7 +91,7 @@ The BSON `serializeWithBufferAndIndex` method takes an object, a target buffer i

* `BSON.serializeWithBufferAndIndex(object, buffer, options)`
* @param {Object} object the JavaScript object to serialize.
* @param {Buffer|Uint8Array} buffer the Buffer you pre-allocated to store the serialized BSON object.
* @param {Buffer} buffer the Buffer you pre-allocated to store the serialized BSON object.
* @param {Boolean} [options.checkKeys=false] the serializer will check if keys are valid.
* @param {Boolean} [options.serializeFunctions=false] serialize the JavaScript functions.
* @param {Boolean} [options.ignoreUndefined=true] ignore undefined fields.
Expand Down Expand Up @@ -128,7 +128,7 @@ The BSON `deserialize` method takes a Node.js Buffer and an optional options obj
The BSON `deserializeStream` method takes a Node.js Buffer, `startIndex` and allow more control over deserialization of a Buffer containing concatenated BSON documents.

* `BSON.deserializeStream(buffer, startIndex, numberOfDocuments, documents, docStartIndex, options)`
* @param {Buffer|Uint8Array} buffer the buffer containing the serialized set of BSON documents.
* @param {Buffer} buffer the buffer containing the serialized set of BSON documents.
* @param {Number} startIndex the start index in the data Buffer where the deserialization is to start.
* @param {Number} numberOfDocuments number of documents to deserialize.
* @param {Array} documents an array where to store the deserialized documents.
Expand Down Expand Up @@ -166,10 +166,3 @@ const obj = { answer: new CustomSerialize() };
// "{ answer: 42 }"
console.log(bson.deserialize(bson.serialize(obj)));
```

#### What are the various files in dist?

* `bson.bundle.js` is a bundled up version of the library that is suitable for inclusion in an HTML page via a `<script>` tag.
* `bson.esm.js` is a rolled up version of the library that is suitable for interoperation with bundlers that work better with ES modules.
* `bson.browser.esm.js` is similar to `bson.esm.js` but is ultimately intened for consumers producing browser bundles. It also pulls in any browser specific dependencies/code that may be needed.
* `bson.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.
Loading

0 comments on commit efb0720

Please sign in to comment.