From efb0720fbcc146c07040c66bf1f5682eaf9b16c0 Mon Sep 17 00:00:00 2001 From: Dan Aprahamian Date: Fri, 13 Jul 2018 15:41:40 -0400 Subject: [PATCH] fix(revert): Reverting v3.0.1 Reverting breaking changes in v3.0.1 --- .gitignore | 5 +- .travis.yml | 13 +- HISTORY.md | 17 - README.md | 13 +- dist/{bson.bundle.js => bson.js} | 8507 ++++++++++---------- index.js | 45 +- karma.conf.js | 66 - lib/bson/binary.js | 8 +- lib/bson/bson.js | 15 +- lib/bson/decimal128.js | 1 - lib/bson/ensure_buffer.js | 22 - lib/bson/fnv1a.js | 1 - lib/bson/map.js | 2 - lib/bson/objectid.js | 1 - lib/bson/parser/calculate_size.js | 1 - lib/bson/parser/deserializer.js | 51 +- lib/bson/parser/serializer.js | 1 - lib/bson/parser/utils.js | 2 +- package-lock.json | 4705 +++-------- package.json | 28 +- rollup.config.js | 120 +- test/binary_parser.js | 3 - test/node/bson_array_test.js | 212 + test/node/bson_compliance_test.js | 27 +- test/node/bson_corpus_tests.js | 22 +- test/node/bson_node_only_test.js | 52 - test/node/bson_test.js | 176 +- test/node/decimal128_tests.js | 8 +- test/node/detect_cyclic_dep_tests.js | 4 +- test/node/ensure_buffer_test.js | 62 - test/node/fnv1a.js | 1 - test/node/map_tests.js | 4 +- test/node/object_id_tests.js | 7 +- test/node/promote_values_test.js | 14 +- test/node/serialize_with_buffer_tests.js | 5 +- test/node/test_full_bson.js | 42 +- test/node/to_bson_test.js | 8 +- test/node/tools/bson_corpus_test_loader.js | 13 - test/node/tools/utils.js | 11 - tools/scenarios-plugin.js | 26 - 40 files changed, 6022 insertions(+), 8299 deletions(-) rename dist/{bson.bundle.js => bson.js} (62%) delete mode 100644 karma.conf.js delete mode 100644 lib/bson/ensure_buffer.js create mode 100644 test/node/bson_array_test.js delete mode 100644 test/node/bson_node_only_test.js delete mode 100644 test/node/ensure_buffer_test.js delete mode 100644 test/node/tools/bson_corpus_test_loader.js delete mode 100644 tools/scenarios-plugin.js diff --git a/.gitignore b/.gitignore index 63c2892a..bddd9fe9 100644 --- a/.gitignore +++ b/.gitignore @@ -13,7 +13,4 @@ npm-debug.log builderror.log bson.sublime-project -bson.sublime-workspace - -dist/* -!/dist/bson.bundle.js +bson.sublime-workspace \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 8f0b3eb0..514cb3c6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/HISTORY.md b/HISTORY.md index 44d54598..a735edf6 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,20 +1,3 @@ - -## [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)) - - - # [3.0.0](https://github.com/mongodb/js-bson/compare/v2.0.8...v3.0.0) (2018-06-13) diff --git a/README.md b/README.md index 6491f107..d5c238bf 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ npm run build A simple example of how to use BSON in the browser: ```html - +