Skip to content

Commit efb0720

Browse files
committed
fix(revert): Reverting v3.0.1
Reverting breaking changes in v3.0.1
1 parent 8fd95db commit efb0720

40 files changed

+6022
-8299
lines changed

.gitignore

+1-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,4 @@ npm-debug.log
1313
builderror.log
1414

1515
bson.sublime-project
16-
bson.sublime-workspace
17-
18-
dist/*
19-
!/dist/bson.bundle.js
16+
bson.sublime-workspace

.travis.yml

+5-8
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,14 @@ sudo: false
22
dist: trusty
33

44
language: node_js
5-
node_js:
6-
- 4
7-
- 6
8-
- 8
9-
- 10
105

116
cache:
127
yarn: true
138
directories:
149
- node_modules
1510

16-
script:
17-
- npm run-script test-node
18-
- if [[ $(node --version) != v4* ]] ; then npm run-script test-browser; fi
11+
node_js:
12+
- 4
13+
- 6
14+
- 8
15+
- 10

HISTORY.md

-17
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,3 @@
1-
<a name="3.0.1"></a>
2-
## [3.0.1](https://github.com/mongodb/js-bson/compare/v3.0.0...v3.0.1) (2018-07-12)
3-
4-
5-
### Bug Fixes
6-
7-
* **bson:** normalizedFunctionString handles named functions ([6b49c23](https://github.com/mongodb/js-bson/commit/6b49c23))
8-
* **rollup:** fixup dist and bundle in Buffer ([3620ef8](https://github.com/mongodb/js-bson/commit/3620ef8))
9-
10-
11-
### Features
12-
13-
* **bson:** test bson in browser ([223fbdf](https://github.com/mongodb/js-bson/commit/223fbdf))
14-
* **UintArray:** Adds support for Uint8Arrays ([2a54053](https://github.com/mongodb/js-bson/commit/2a54053))
15-
16-
17-
181
<a name="3.0.0"></a>
192
# [3.0.0](https://github.com/mongodb/js-bson/compare/v2.0.8...v3.0.0) (2018-06-13)
203

README.md

+3-10
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ npm run build
1818
A simple example of how to use BSON in the browser:
1919

2020
```html
21-
<script src="./dist/bson.bundle.js"></script>
21+
<script src="./dist/bson.js"></script>
2222

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

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

130130
* `BSON.deserializeStream(buffer, startIndex, numberOfDocuments, documents, docStartIndex, options)`
131-
* @param {Buffer|Uint8Array} buffer the buffer containing the serialized set of BSON documents.
131+
* @param {Buffer} buffer the buffer containing the serialized set of BSON documents.
132132
* @param {Number} startIndex the start index in the data Buffer where the deserialization is to start.
133133
* @param {Number} numberOfDocuments number of documents to deserialize.
134134
* @param {Array} documents an array where to store the deserialized documents.
@@ -166,10 +166,3 @@ const obj = { answer: new CustomSerialize() };
166166
// "{ answer: 42 }"
167167
console.log(bson.deserialize(bson.serialize(obj)));
168168
```
169-
170-
#### What are the various files in dist?
171-
172-
* `bson.bundle.js` is a bundled up version of the library that is suitable for inclusion in an HTML page via a `<script>` tag.
173-
* `bson.esm.js` is a rolled up version of the library that is suitable for interoperation with bundlers that work better with ES modules.
174-
* `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.
175-
* `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.

0 commit comments

Comments
 (0)