UNPKG

mongojs

Version:

Easy to use module that implements the mongo api

554 lines (429 loc) 77.5 kB
### Changelog All notable changes to this project will be documented in this file. Dates are displayed in UTC. Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). #### [v3.1.0](https://github.com/mafintosh/mongojs/compare/v3.0.0...v3.1.0) > 31 October 2019 - Add replaceOne support, fix collection.save [`#382`](https://github.com/mafintosh/mongojs/pull/382) - Set theme jekyll-theme-cayman [`24b58c6`](https://github.com/mafintosh/mongojs/commit/24b58c6dcd463896d78bef49b43f63bd48f70365) - Set theme jekyll-theme-minimal [`d155c4a`](https://github.com/mafintosh/mongojs/commit/d155c4ad92ff987e852b1c2a858b1a3024d49bb2) ### [v3.0.0](https://github.com/mafintosh/mongojs/compare/v2.6.0...v3.0.0) > 20 October 2019 - Publicly expose mongo BSON Map (ES5 polyfill) [`#364`](https://github.com/mafintosh/mongojs/pull/364) - Replaces xtend dependency by Object.assign [`#380`](https://github.com/mafintosh/mongojs/pull/380) - removes shelljs dependency [`#379`](https://github.com/mafintosh/mongojs/pull/379) - Expose Decimal128 BSON type [`#362`](https://github.com/mafintosh/mongojs/pull/362) - Publicly expose mongo BSON Int32 type [`#363`](https://github.com/mafintosh/mongojs/pull/363) - update var to const [`#361`](https://github.com/mafintosh/mongojs/pull/361) - Update dependencies [`#377`](https://github.com/mafintosh/mongojs/pull/377) - Upgrade mongodb to version ^3. [`#353`](https://github.com/mafintosh/mongojs/pull/353) - Add package lock file [`3be25ef`](https://github.com/mafintosh/mongojs/commit/3be25ef29a319ef8a4c0b4fdb0fff231c85d3e3f) - Remove package-lock.json as it breaks builds due to a bug in npm with bundleDependencies and shoe [`747f270`](https://github.com/mafintosh/mongojs/commit/747f270a0caf17b900b59c14c63f0ffaac7580a6) - Generate a new changelog with auto-changelog [`9a39edd`](https://github.com/mafintosh/mongojs/commit/9a39edd6050deea8c12a22b61430368da3c4cc38) - Switch to nyc for coverage reports [`c516e92`](https://github.com/mafintosh/mongojs/commit/c516e92f03723d3d2f5a0036a82b2730719c62b5) - Add auto-changelog to dependencies and to release workflow [`0552311`](https://github.com/mafintosh/mongojs/commit/055231125953ef51442158e9a20a73c633636ab7) - Implement updateOne, insertOne and updateMany, insertMany [`d23f0ee`](https://github.com/mafintosh/mongojs/commit/d23f0eecefff7220c364b8156a2cdc9b2cce29ec) - Fix connection string extension with mongodb+srv protocol [`106af3e`](https://github.com/mafintosh/mongojs/commit/106af3ec16f72a71b705983c1f5c2ab680179ecb) - Fix release script [`d0f139b`](https://github.com/mafintosh/mongojs/commit/d0f139ba8542f617071d4d0d0bd9939bd6cacbdd) - Reflect the move to the mongo-js organization in URLs [`2664828`](https://github.com/mafintosh/mongojs/commit/26648280c4c5181ac0f967af930fef11bcd046d2) - Remove support for node v0.10, v0.12 from travis build matrix and add v9 and v10 to build matrix [`e0ab473`](https://github.com/mafintosh/mongojs/commit/e0ab473001557e0c62a8e8e9ec7534ba63308576) - Add mongodb 4 to build matrix [`a318000`](https://github.com/mafintosh/mongojs/commit/a318000d539925d13429c275f632bdae241c272c) #### [v2.6.0](https://github.com/mafintosh/mongojs/compare/v2.5.0...v2.6.0) > 29 May 2018 - Add inital async_hooks support [`#351`](https://github.com/mafintosh/mongojs/pull/351) - add inital async_hooks support [`77f55c3`](https://github.com/mafintosh/mongojs/commit/77f55c3676105c3c420af5124eddfcfe2568bdfd) - Update changelog [`33c4f88`](https://github.com/mafintosh/mongojs/commit/33c4f88cb54552f70445ed61e63237bbb712ea1b) - work on 8 [`e79a796`](https://github.com/mafintosh/mongojs/commit/e79a79676ec66009c02c4658c717297364d62f86) - update changelog [`d531aa0`](https://github.com/mafintosh/mongojs/commit/d531aa01df127ea2d41a11e7cedfe85e72d450b8) - fix 8 again [`2ac1de7`](https://github.com/mafintosh/mongojs/commit/2ac1de7bb5e13404ebdfe9ce1dbd7a2118d5d204) #### [v2.5.0](https://github.com/mafintosh/mongojs/compare/v2.4.1...v2.5.0) > 4 February 2018 - Work around for property 'Symbol(Symbol.toPrimitive)' in Proxy handler [`#332`](https://github.com/mafintosh/mongojs/pull/332) - Add deleted count property to the return object of the .remove method [`#318`](https://github.com/mafintosh/mongojs/pull/318) - Adds support for ES6 default module import syntax [`#327`](https://github.com/mafintosh/mongojs/pull/327) - Fixes #265 by breaking operations if max bulk size is exceeded [`#265`](https://github.com/mafintosh/mongojs/issues/265) - Update changelog fixes #311 #303 [`#311`](https://github.com/mafintosh/mongojs/issues/311) - Add test to verify issue #337 [`d163d84`](https://github.com/mafintosh/mongojs/commit/d163d84780c27a8d72c85472ce372957d6112125) - Execute geotag pkg optional [`120889b`](https://github.com/mafintosh/mongojs/commit/120889b7250300f72f9e9317b6994910db1a0cf8) - Update dependencies [`58f8792`](https://github.com/mafintosh/mongojs/commit/58f8792eb41d460ba09b32ae5cccfc3e176d19cf) - Add node 7 and 8 and mongodb 3.4 to build matrix and update mongodb versions [`173a569`](https://github.com/mafintosh/mongojs/commit/173a5690e63ca18f007430591d286185f4481fcd) - Update standard and fix code style issues [`ca97026`](https://github.com/mafintosh/mongojs/commit/ca97026543ce6519900d5e49f42e01da8199e885) - Adapt to exec shelljs api changes [`fc65ed0`](https://github.com/mafintosh/mongojs/commit/fc65ed00794a6f6c78f5826d35e80b493c5cb2e0) - Use === instead of == to please the standard [`7c3bcda`](https://github.com/mafintosh/mongojs/commit/7c3bcda4f834cfab2fdd4caa32b59ea6c8082176) - Use cursor sort order to avoid tests fail due to sort order [`54d99cb`](https://github.com/mafintosh/mongojs/commit/54d99cbdeba4bfd9af7f724ce11e61cc76862b39) - Update mongodb dependency [`197c10e`](https://github.com/mafintosh/mongojs/commit/197c10e4c3e2201b7573f564f96df102419feeac) #### [v2.4.1](https://github.com/mafintosh/mongojs/compare/v2.4.0...v2.4.1) > 8 August 2017 - Fix Markdown [`#334`](https://github.com/mafintosh/mongojs/pull/334) - Update thunky to version ^1.0.2 to fix #321 [`#321`](https://github.com/mafintosh/mongojs/issues/321) - Fix problem that newer versions of mongodb do not expose connection url in options [`c5e170d`](https://github.com/mafintosh/mongojs/commit/c5e170d758a8c16cc3d3c03a8a428c2ff254e92b) - Newer versions of mongo native driver don't store the database name the same way. [`faabd09`](https://github.com/mafintosh/mongojs/commit/faabd0904bdeea7edba0e9fed04b476c2765c998) - Geotag package for release [`d36a150`](https://github.com/mafintosh/mongojs/commit/d36a1508b17595520d0d5b1af059f2f8d660a0b5) - Fix code style [`642b2ff`](https://github.com/mafintosh/mongojs/commit/642b2fff4421ebbee46f969835f0ce604b376763) - Work around for property 'Symbol(Symbol.toPrimitive)' with node v6.x or higher version [`05ac3d1`](https://github.com/mafintosh/mongojs/commit/05ac3d1e0a252edd7333af2e6a51380c86800cd7) - Adds support for ES6 default module import syntax [`e4b7a1c`](https://github.com/mafintosh/mongojs/commit/e4b7a1c4940105c20adc997f35ec43880cbc6f9b) - add deletedCount property to return object from remove method [`0f9a18b`](https://github.com/mafintosh/mongojs/commit/0f9a18b1218929edc6552b8baad8cfb640260481) - Add deletedCount property to return result from the .remove method [`7f3b9d9`](https://github.com/mafintosh/mongojs/commit/7f3b9d9bf66a94c10f496afc9dc6d4d086be4ff3) - added the deletedCount property to the return object from the remove method. This is valuable information when creating Restful APIs. [`895626d`](https://github.com/mafintosh/mongojs/commit/895626dd39e574bf64b7c53a67f1d2260c5a433b) #### [v2.4.0](https://github.com/mafintosh/mongojs/compare/v2.3.0...v2.4.0) > 28 April 2016 - Fix for node 6 [`#301`](https://github.com/mafintosh/mongojs/pull/301) - Updated readme with connection options example [`#298`](https://github.com/mafintosh/mongojs/pull/298) - Added test case find-sort-many [`#295`](https://github.com/mafintosh/mongojs/pull/295) - Make `Bulk.toString()` actually return a string [`#276`](https://github.com/mafintosh/mongojs/pull/276) - Saintedlama/travis non legacy [`#285`](https://github.com/mafintosh/mongojs/pull/285) - Run tests with tap-spec [`#284`](https://github.com/mafintosh/mongojs/pull/284) - Added (failing) test case find-sort-many to demonstrate that sort does not work for more than 1000 results [`459a5f9`](https://github.com/mafintosh/mongojs/commit/459a5f9a54e4715f860c7cc2e553a9a3aa1f8d4c) - Add test for rename [`5bd21c9`](https://github.com/mafintosh/mongojs/commit/5bd21c994f5530f7367e6a691a9919988def2e44) - Fixed indentation to use spaces [`df12488`](https://github.com/mafintosh/mongojs/commit/df124884530e662ab0304778950b7a7d28777278) - Adjust code style in argument sanitizing [`9340152`](https://github.com/mafintosh/mongojs/commit/9340152196a3632ca532cc721a238941951836a3) - Geotag package for release [`0868f67`](https://github.com/mafintosh/mongojs/commit/0868f67c26e494080719bd821fc5fbddc0ad7277) - Temporary bug fix for tape sporadic errors - see https://github.com/substack/tape/issues/223 [`eaae970`](https://github.com/mafintosh/mongojs/commit/eaae970176195f0833e688dbf614dd756e47ffe5) - Fix PR #280 [`8751669`](https://github.com/mafintosh/mongojs/commit/8751669f41b2bfb5f7323fea4da3d680c1266124) - Style changed to be compliant with javascript standard style [`e7492e9`](https://github.com/mafintosh/mongojs/commit/e7492e98073a670d4d3a6cee82b47b2f7e56bde2) - Remove semicolons [`e0a4d8d`](https://github.com/mafintosh/mongojs/commit/e0a4d8d6dcf348cf0e807fe4f67d2e8c540b3036) - Return the created proxy instead of assigning it to a var p [`9a34051`](https://github.com/mafintosh/mongojs/commit/9a34051841343f41ce56122ceaf7fd9ce785281c) - Update dev dependencies [`5dcbb67`](https://github.com/mafintosh/mongojs/commit/5dcbb67906a4b1a00e4c745962be9eabe981710c) - Fix shelljs output check [`a95f946`](https://github.com/mafintosh/mongojs/commit/a95f946512879e73e967104814875f309876246a) - Fix coding style [`c2060be`](https://github.com/mafintosh/mongojs/commit/c2060be4d81681b9293097f4f41f06f08693fc1f) - Remove semicolon [`2ead974`](https://github.com/mafintosh/mongojs/commit/2ead9745169c078f915ade908276c0b25a270717) - Check if opts is a function so a callback can be passed as second argument [`459b81c`](https://github.com/mafintosh/mongojs/commit/459b81cb0e120d7ddc1ec0cd799c96e42a4ae1ed) - Remove mongodb 2.4 from test matrix due to compatibility issues [`c6f9d74`](https://github.com/mafintosh/mongojs/commit/c6f9d74e0cfc0615621f214d32349f2c42582817) - Add node.js 6 to travis build matrix [`9f892e2`](https://github.com/mafintosh/mongojs/commit/9f892e2e30934aff94330c0754e1a2862018f19d) #### [v2.3.0](https://github.com/mafintosh/mongojs/compare/v2.2.2...v2.3.0) > 14 January 2016 - Wrapper to rename a collection [`#280`](https://github.com/mafintosh/mongojs/pull/280) - add one more test case for #217 dot in collections [`#277`](https://github.com/mafintosh/mongojs/pull/277) - Added wrapper to rename a collection [`56d3b82`](https://github.com/mafintosh/mongojs/commit/56d3b82542ae8a364a67c26bdaad247bb819e273) - Geotag package for release [`0f58aa6`](https://github.com/mafintosh/mongojs/commit/0f58aa67b22eaba6d0e1f79904fdf2df65c2cf1c) - Fix test for bulk.toString [`449a691`](https://github.com/mafintosh/mongojs/commit/449a691a1091cf7540014b35fd583ebdd22cfe92) - no message [`669974d`](https://github.com/mafintosh/mongojs/commit/669974d68a8fb30e0f02fb716af27389efdf50ce) - Make `Bulk.toString()` actually return a string [`bbe332b`](https://github.com/mafintosh/mongojs/commit/bbe332bde29329f868f02164bf73fdcde09606dc) #### [v2.2.2](https://github.com/mafintosh/mongojs/compare/v2.2.1...v2.2.2) > 15 December 2015 - Fix handling default arguments in ensureIndex [`#274`](https://github.com/mafintosh/mongojs/pull/274) - Add test to verify collections with a dot are working. Closes #217 [`#217`](https://github.com/mafintosh/mongojs/issues/217) - Add changelog generated with github-changes npm module [`26560c8`](https://github.com/mafintosh/mongojs/commit/26560c8203100e3cfaea8e3bf01131af6ffe7843) - Move to non legacy infrastructure of travis [`bf433ea`](https://github.com/mafintosh/mongojs/commit/bf433ea47ee698240436529b66376700b42d3f2d) - Geotag package for release [`46fae76`](https://github.com/mafintosh/mongojs/commit/46fae76f7ce6b03547a7d68eb2996e9b50e2622e) - Pipe output to dev/null [`5bb2262`](https://github.com/mafintosh/mongojs/commit/5bb226232242cd7206290870a83da8d143057e0c) - Move waiting for mongodb to first before script [`6777dd2`](https://github.com/mafintosh/mongojs/commit/6777dd20033383d61c6fe028893b08afa2c769c1) - Remove mongodb 2.8.0 [`704378f`](https://github.com/mafintosh/mongojs/commit/704378ff070ab5964f3e7bb5cf22becf1407baf0) #### [v2.2.1](https://github.com/mafintosh/mongojs/compare/v2.2.0...v2.2.1) > 15 December 2015 - Fix #270 by using process.nextTick in loop [`#270`](https://github.com/mafintosh/mongojs/issues/270) - Add feature to pass options to aggregate. Closes #249 [`#249`](https://github.com/mafintosh/mongojs/issues/249) - Add test to test queries in large collections to reproduce possible stack trace maximum exceeded errors [`04d1231`](https://github.com/mafintosh/mongojs/commit/04d1231d799b5f3815eaf408f472b3819ada1b4a) - Geotag package for release [`9cd87a5`](https://github.com/mafintosh/mongojs/commit/9cd87a525d9ba221cadebf2b60f0c9117711ead6) - Use setImmediate(loop) instead of process.nextTick(loop) to please node 0.10 [`5a7b643`](https://github.com/mafintosh/mongojs/commit/5a7b643d59c068550043fe0e8afbd80749549316) - Cleanup test [`b6a755b`](https://github.com/mafintosh/mongojs/commit/b6a755b809f3cfda8907ec76401577adab1d0ce9) - Add documentation for db.collection.aggregate with options including mongodb documentation link [`3b8fe9b`](https://github.com/mafintosh/mongojs/commit/3b8fe9ba82cb8130ad4e7e267d2317795e0c3853) - Remove unused callback "done" [`79cac0b`](https://github.com/mafintosh/mongojs/commit/79cac0bf395c0a95c48550c94659896adf87df8f) - Remove superfluous dependency "pump" [`23000f2`](https://github.com/mafintosh/mongojs/commit/23000f2b1e552aa43adf9a836717031dc0e243cc) #### [v2.2.0](https://github.com/mafintosh/mongojs/compare/v2.1.0...v2.2.0) > 14 December 2015 - Add bulk.toString() and bulk.find.replaceOne(), update doc [`#272`](https://github.com/mafintosh/mongojs/pull/272) - Fix bulk to json function, add tests to this function [`#269`](https://github.com/mafintosh/mongojs/pull/269) - Add tests for bulk.toString and bulk.find.replaceOne [`670bc71`](https://github.com/mafintosh/mongojs/commit/670bc71bd2499403389b5cd7602be9658b74be6c) - Use mongodb-native mapReduce implementation [`9729a4d`](https://github.com/mafintosh/mongojs/commit/9729a4d9a0f08c7e52a68a4ba76da593572e4263) - Rename options argument to opts to match code style [`0345349`](https://github.com/mafintosh/mongojs/commit/034534953e53b5e0b6e6f70eb4ff6835d0d71a56) - Allow passing opts including writeOps to save [`77eef29`](https://github.com/mafintosh/mongojs/commit/77eef29f6886b2b6fee5b8e8d69b78af44eee16d) - Rename cursor tests to fit naming schema [`d4dbdb7`](https://github.com/mafintosh/mongojs/commit/d4dbdb711cb76661de0ae331668d3901141e99ba) - Geotag package for release [`6f3a303`](https://github.com/mafintosh/mongojs/commit/6f3a30371629e61633aaec2aa1424edf6bc4513e) - Rename map reduce tests [`a368c1f`](https://github.com/mafintosh/mongojs/commit/a368c1f154d61ab41659ac8faf8b2089ed80f84d) - Update readme to reflect new version 2.x [`b7a27aa`](https://github.com/mafintosh/mongojs/commit/b7a27aabbb749daf07711354e797bd58e1a83f9b) - Align collection.prototype.save argument correction style to mongojs code style [`6b6e2df`](https://github.com/mafintosh/mongojs/commit/6b6e2df309e70d3ecfdd9395c79870c73cbd2bf5) - Merge opts with default writeOps in update [`edb5b6d`](https://github.com/mafintosh/mongojs/commit/edb5b6daa25215f1642b01aadfc457c1ea1f142e) - Add documentation for aggregate [`865d6e6`](https://github.com/mafintosh/mongojs/commit/865d6e6dbca012de9f8f6592a48029622d9a3cd5) - Add documentation stub for db.collection.remove with options object [`60573fc`](https://github.com/mafintosh/mongojs/commit/60573fc4d2e54aa8e390b6c67c8ca2fe7e1bd06a) #### [v2.1.0](https://github.com/mafintosh/mongojs/compare/v2.0.0...v2.1.0) > 9 December 2015 - Added support for finalize in mapReduce [`#253`](https://github.com/mafintosh/mongojs/pull/253) - Add shelljs based release script [`1f72797`](https://github.com/mafintosh/mongojs/commit/1f72797b1f1e2b8432f20131f7e20d9d45f6eb78) - Fix pushing null commands to bulk pipeline in case no bulk operation was added [`1248b5e`](https://github.com/mafintosh/mongojs/commit/1248b5e03f9fb4636f2f0cd854fa2c91d3ac6184) - Rely on mongodb native ensure index and create index commands and compatibility handling for mongodb versions < 2.8 [`3e19869`](https://github.com/mafintosh/mongojs/commit/3e19869a4ca35acf36baf650e76e02af105b10ae) - Implement listCollections and use listCollections to implement getCollectionNames [`4c407e3`](https://github.com/mafintosh/mongojs/commit/4c407e3f53ca40147a750d6479ad216b777afa12) - Fix code style to adhere to the standard [`b5e5632`](https://github.com/mafintosh/mongojs/commit/b5e56326528a47f4463d6621ae27547c409f09d6) - Geotag package for release [`a38dc6d`](https://github.com/mafintosh/mongojs/commit/a38dc6d11c0b7fa1e798a29fc37b5fd6365a382c) - Implement some missing cursor methods [`9b77c8d`](https://github.com/mafintosh/mongojs/commit/9b77c8d1c27cbf3f3179062bd4556852778ad377) - Add option to execute a bulk without passing a callback function [`08e8d99`](https://github.com/mafintosh/mongojs/commit/08e8d99cf4d62fb86b1557602fa272cbc5d8843a) - Add back check for git status in release script [`e64ef5c`](https://github.com/mafintosh/mongojs/commit/e64ef5c9f3156e01096a2a1c2bb941b71ad44161) - Run the correct script to geo tag the pkg. Really! [`303c2f9`](https://github.com/mafintosh/mongojs/commit/303c2f9bc2f9bcf0b0e84cf013c2c62d3e534839) - Adhere to the standard [`7b27dc6`](https://github.com/mafintosh/mongojs/commit/7b27dc60ef0918583304ec0d5d8e0ed1ed806e74) - Implement optional callback in db.collection.remove [`709f67a`](https://github.com/mafintosh/mongojs/commit/709f67a3c276d2fe22b3d8c771efe3bee89eefc5) - Run geopkg npm script correctly [`9d87de7`](https://github.com/mafintosh/mongojs/commit/9d87de73ad20e9f8c076e024284e81049c425033) - Correct connection string examples URL [`6d365d2`](https://github.com/mafintosh/mongojs/commit/6d365d280d5badfc52f7561699d4a2c525879f5e) ### [v2.0.0](https://github.com/mafintosh/mongojs/compare/v1.4.1...v2.0.0) > 2 December 2015 - Use mongodb-native instead of mongodb-core driver [`#256`](https://github.com/mafintosh/mongojs/pull/256) - Increase coverage by adding tests for eval, drop database, db stats, create and drop users [`37c690b`](https://github.com/mafintosh/mongojs/commit/37c690b162c6a82ee5f20a023ea5a360d85219af) - Introduce _getCollection to avoid duplicate _getConnection + connection.collection(this._fullName) code [`44b8ee8`](https://github.com/mafintosh/mongojs/commit/44b8ee85b75e28a7b4365f50da9e7db6ca89563f) - Generate functions to set limit, batchSize, sort and skip [`3d375f8`](https://github.com/mafintosh/mongojs/commit/3d375f8f96011bd67f5a92398686e864b22dd71f) - Make database an EventEmitter and emit events for error and connect [`cb70b55`](https://github.com/mafintosh/mongojs/commit/cb70b552a3e4168ec39315f304bd0af22298b0f0) - Add tests for mongojs bson type exports [`ea1b07a`](https://github.com/mafintosh/mongojs/commit/ea1b07a1053e299d9280694adf8e3cb1dd78938b) - Fix connection string building for connection strings omitting mongodb:// prefix or host of db [`cb973f0`](https://github.com/mafintosh/mongojs/commit/cb973f0c25437f153ff2491fc6540cafcaf1a4b2) - Add tests for connection string parsing [`f9ab363`](https://github.com/mafintosh/mongojs/commit/f9ab36395a7c6b3a284fbdf43e87a8d060dbd016) - Simplify remove [`67acfa2`](https://github.com/mafintosh/mongojs/commit/67acfa2d4b442bdf3f87593d6c39009c39b061fd) - Fix code style to match standard version 5 code style [`54a9ab9`](https://github.com/mafintosh/mongojs/commit/54a9ab98440c062f8bc8c771b3f44b101e9a9249) - Test toString implementations for mongos and replica set connection strings [`6e182e3`](https://github.com/mafintosh/mongojs/commit/6e182e33ac30172d3f24a4c8c84a06a904ca75ed) - Cleanup getCollectionNames implementation by using mongodb-native functionality [`f49c38e`](https://github.com/mafintosh/mongojs/commit/f49c38e602f4000a3a081382add19542762e02a4) - Remove duplicate code from aggregate [`bbb030c`](https://github.com/mafintosh/mongojs/commit/bbb030cc85e53d85f7270a07a37d3e8964cc6176) - Remove destroy event test [`11b513d`](https://github.com/mafintosh/mongojs/commit/11b513d5d257b07e586f74d51d71155bf33096e3) - Correct connecting section [`689f161`](https://github.com/mafintosh/mongojs/commit/689f16183e7ffaf929cf54f9cc6b8ae29e0e6994) - Update dependencies and move to standard version 5 [`0268423`](https://github.com/mafintosh/mongojs/commit/026842392ea22d79b68d78de48659de371c3d7c3) - Implement workaround for harmony proxy in combination with event emitter inheritance [`56f1eb8`](https://github.com/mafintosh/mongojs/commit/56f1eb83ac29e03e6b601e03f1714125f6df1a83) - Fix checks for insert and [`7b01fa9`](https://github.com/mafintosh/mongojs/commit/7b01fa9db3375313231f7212054ffef207aded70) - Make checking for err object less verbose [`d079280`](https://github.com/mafintosh/mongojs/commit/d07928084bee2326aaab2a396982654b6fd53828) - Adhere to standard code style [`6f5ecd0`](https://github.com/mafintosh/mongojs/commit/6f5ecd086577c88930fad1269a314dda7b153978) - Run geotag update instead of plain geotag in geotag npm script [`3c59a49`](https://github.com/mafintosh/mongojs/commit/3c59a49f5c5c3cbe6cc900cf14d239ca9c41b8ce) - Call EventEmitter constructor [`26cc395`](https://github.com/mafintosh/mongojs/commit/26cc39503d3926aecf539e37a287f0d80b0ad6b1) - Clarify comment [`f240a7e`](https://github.com/mafintosh/mongojs/commit/f240a7eadeecc7bc536dc2dc9e1a7628af62768b) - Add a connection error handler [`3426d64`](https://github.com/mafintosh/mongojs/commit/3426d64223ae66720c0c26438f138c14d94239fe) - Expose NumberLong alias for shell compatibility [`c864aef`](https://github.com/mafintosh/mongojs/commit/c864aef13c0514e7686270ebe07da91deb7c2fc1) - Ignore vi temporary files [`99811b5`](https://github.com/mafintosh/mongojs/commit/99811b5fa48f284eaa2b96cabc381f7da2156f26) - Test mongojs in node.js 5 environments [`12a639c`](https://github.com/mafintosh/mongojs/commit/12a639c02337886453327b4f57003ffb0d0efd38) #### [v1.4.1](https://github.com/mafintosh/mongojs/compare/v1.4.0...v1.4.1) > 12 October 2015 - Use mongodb instead of mongodb-core and add minimal test to require mongojs and access all bson types [`3026b7f`](https://github.com/mafintosh/mongojs/commit/3026b7f4ab0d991495caa7d2b0d87a23d3d0ca3d) - Implement basic functionality to insert and remove documents to drive all further tests [`246976e`](https://github.com/mafintosh/mongojs/commit/246976ee7028323eb527f46e76cebf8d3b16be00) - Implement mongojs and mongodb-native connection passing [`60297a3`](https://github.com/mafintosh/mongojs/commit/60297a3779612b84b18f4f62cf289f2328b01872) - Implement aggregations [`73a79ac`](https://github.com/mafintosh/mongojs/commit/73a79ac2aeeb6179b24294fa15ec6a9049befe55) - Implement find using cursor [`4257022`](https://github.com/mafintosh/mongojs/commit/4257022e81183e2e4a1c5b92ed8e6de6d794d0e1) - Fix code style issues [`bae604e`](https://github.com/mafintosh/mongojs/commit/bae604e620473afb8a427768fa16b9354c855609) - Implement cursor operations [`482cb84`](https://github.com/mafintosh/mongojs/commit/482cb8402b8d82d1c18be40336f4e934816485c9) - Add support for finalize in mapReduce [`c67fbbf`](https://github.com/mafintosh/mongojs/commit/c67fbbf3e9ee12cef801c14814ae3a6ef13eac26) - Implement group [`31d98d2`](https://github.com/mafintosh/mongojs/commit/31d98d2c89d73a89e0426a35cbf6f20431f1e28d) - Implement update and getIndexes [`1df7336`](https://github.com/mafintosh/mongojs/commit/1df73360b0a15a714f1135aa2ebbaa9826a62085) - Add test to verify that connecting to a non existing database yields an error in the provided operation callback [`48a00df`](https://github.com/mafintosh/mongojs/commit/48a00dfae513a3f37cb5d5890b7eb1114db50c26) - Test stats [`37c2fb5`](https://github.com/mafintosh/mongojs/commit/37c2fb5703be35e4b9aeb41e25b93e0640bf6fd6) - Implement isCapped [`180abe8`](https://github.com/mafintosh/mongojs/commit/180abe8b364d112c61fa9f58c53019ae37dca87a) - Implement bulk operations [`e5a60d1`](https://github.com/mafintosh/mongojs/commit/e5a60d105160a845c91ea57991266d3de7140f20) - Implement passing mongojs connections [`3a89ec7`](https://github.com/mafintosh/mongojs/commit/3a89ec7a0215dab98ed7c619caac32ce53d864eb) - Fix distinct tests [`ac5c2fc`](https://github.com/mafintosh/mongojs/commit/ac5c2fc0709f811b1cb4a1e3a0e2878e35ca0dd3) - Fix next implementation by checking if the cursor was closed and quite in a graceful manner [`143c836`](https://github.com/mafintosh/mongojs/commit/143c836910400a7681dbc2947d121f967b32a231) - Implement command execution on collection level [`749dfd7`](https://github.com/mafintosh/mongojs/commit/749dfd76cf4ee85d7d98d411d7af148f1505b943) - Implement close [`b66eb5b`](https://github.com/mafintosh/mongojs/commit/b66eb5be6297b7245d3493588328312ad1521b21) - Implement cursor destroy/close [`d95e6a6`](https://github.com/mafintosh/mongojs/commit/d95e6a6335e7db5d26b40697adb26bc6842b034e) - Add TODO concerning command interface hits [`bad1461`](https://github.com/mafintosh/mongojs/commit/bad14616fe36a2a13ac8da4d353c59cad8a0240b) - Fix code style issues [`d461975`](https://github.com/mafintosh/mongojs/commit/d46197501a24129af90fea097e7eb4d3ec596414) - Rename ready event to connect in README.md [`6341c35`](https://github.com/mafintosh/mongojs/commit/6341c35b2e6a9efc699d0d33fbaab8aba36db44f) - Fix code style [`54bae03`](https://github.com/mafintosh/mongojs/commit/54bae0340f9afdfa1d21dfce5967dbc473f4a52f) #### [v1.4.0](https://github.com/mafintosh/mongojs/compare/v1.3.0...v1.4.0) > 6 October 2015 - Expose bson stuff visible in the shell [`#251`](https://github.com/mafintosh/mongojs/pull/251) - Fix build of MongoDB >2.4 on Travis [`ebf6bc8`](https://github.com/mafintosh/mongojs/commit/ebf6bc8d9485fed94fe8bc8d8d6c302345a341ed) - Run tests against Node.js v4.x instead of iojs [`0e1b573`](https://github.com/mafintosh/mongojs/commit/0e1b5737e1c4075a9d67b66430ed9a58d8dd4f3d) #### [v1.3.0](https://github.com/mafintosh/mongojs/compare/v1.2.1...v1.3.0) > 14 August 2015 - Fixed insert error detection and passing [`#237`](https://github.com/mafintosh/mongojs/pull/237) - Return on connection error [`#240`](https://github.com/mafintosh/mongojs/pull/240) - Implement events [`#229`](https://github.com/mafintosh/mongojs/pull/229) - Add test for pull request #237 "Fixed insert error detection and passing" [`469f48c`](https://github.com/mafintosh/mongojs/commit/469f48c9b3f50da5422660ca573553b76d208e7f) - Merge options and connString + cols object into options object [`f11bcd1`](https://github.com/mafintosh/mongojs/commit/f11bcd10abadef44a10a711f7c9a5a773a7c2540) - Add test to assure an unopened db can be closed [`bf7473e`](https://github.com/mafintosh/mongojs/commit/bf7473e82acb6ed09bf2f078fdeef7b8fab22a72) - Pass options to mongodb topology instance constructor [`27939a7`](https://github.com/mafintosh/mongojs/commit/27939a7c4c8badeb98909aa8ced357c72bd822ca) - Fix upgrading section [`9d49f53`](https://github.com/mafintosh/mongojs/commit/9d49f538b5dd5057f891e187854d32debba6d537) - Added more existence checks to insert [`d2773ec`](https://github.com/mafintosh/mongojs/commit/d2773ec2893fa74c4f6f8d994e01ed5a9d1fe8cd) - Insert final newline to adhere to standard code style [`8d06cfe`](https://github.com/mafintosh/mongojs/commit/8d06cfeaa00c7029de95f0db6c8639c0ee37b252) - Remove events not working from Upgrading notice [`ba18f23`](https://github.com/mafintosh/mongojs/commit/ba18f23676c085ff27567b41631c8f0b26890f83) #### [v1.2.1](https://github.com/mafintosh/mongojs/compare/v1.2.0...v1.2.1) > 26 July 2015 - Upgrade dependencies [`#228`](https://github.com/mafintosh/mongojs/pull/228) - Practise what we preach: Use standard code style in examples [`7b163a9`](https://github.com/mafintosh/mongojs/commit/7b163a9140c4e2b39f80bcdea4ee4c309e8acd96) - Add contribution guidelines [`885d529`](https://github.com/mafintosh/mongojs/commit/885d52995a7a1f457379af5f90668cd7009c8648) - Clean up README.md [`8c4a2df`](https://github.com/mafintosh/mongojs/commit/8c4a2dfa846ec9fa191f8caef26a1f70efac778d) - Add editorconfig [`8a6c786`](https://github.com/mafintosh/mongojs/commit/8a6c786d900ac970a001ec01cd0a10408eefa3e3) - Upgrade all dev-dependency modules [`a0caa82`](https://github.com/mafintosh/mongojs/commit/a0caa82b57142c7cc365e9df3b9a5f1718a53e2d) - No need to use custom npm version when node.js v0.8 isn't tested [`581a6db`](https://github.com/mafintosh/mongojs/commit/581a6db33c9aee8864dd60776ccc52f537717beb) - Fix Travis-CI build to properly test against MongoDB 3.0 [`af83bf0`](https://github.com/mafintosh/mongojs/commit/af83bf0105fa5a339cd0c5f50a451c674fdd909a) - Add warning block for MongoDB 3 auth [`578dcc7`](https://github.com/mafintosh/mongojs/commit/578dcc733e0fb72e5530f45368731074548f9245) - Bump copyright year [`3795d14`](https://github.com/mafintosh/mongojs/commit/3795d142567115dfba4ec39de50e0bf1d163533b) #### [v1.2.0](https://github.com/mafintosh/mongojs/compare/v1.1.0...v1.2.0) > 25 July 2015 - Implement the 'standard' linter [`#227`](https://github.com/mafintosh/mongojs/pull/227) - Remove semicolons [`e7146c8`](https://github.com/mafintosh/mongojs/commit/e7146c823736ffe182b5d4978616a63c83a1c106) - Insert space before function opening bracket [`8945d41`](https://github.com/mafintosh/mongojs/commit/8945d41044c619237c8238654efc328e5d9da074) - Insert space between colon and value in object literals [`e59971e`](https://github.com/mafintosh/mongojs/commit/e59971e743a294b58d6f072ce61d535ec288b4d2) - Use t.error to handle errors instead of t.ok(!err) and friends [`65b7acf`](https://github.com/mafintosh/mongojs/commit/65b7acf3ccc8e165fda0e1043d767efd1d72796f) - Remove spaces before comma [`fcce1f7`](https://github.com/mafintosh/mongojs/commit/fcce1f73de9bbc9ab700cf54b911e861b020f22f) - Use single quotes when defining strings [`1372ed6`](https://github.com/mafintosh/mongojs/commit/1372ed6a1d488f37688f24e719e054bf94f9faf1) - Handle all errors [`481935a`](https://github.com/mafintosh/mongojs/commit/481935aef751f5a65cfa8e5059c8c6fbbc8f6301) - Insert space between comma and next value [`b00dabb`](https://github.com/mafintosh/mongojs/commit/b00dabbfd96dd08c536cfd5a3e78a6964a1e0bdd) - Remove spaces before colon in object literals [`7b56b0f`](https://github.com/mafintosh/mongojs/commit/7b56b0fb42db2b7c86652054f82ba9483d8ef938) - Remove trailing spaces [`737ceb8`](https://github.com/mafintosh/mongojs/commit/737ceb8cb6c373d604f853cc0e5f6c955c359627) - Remove unused variables [`90af4b4`](https://github.com/mafintosh/mongojs/commit/90af4b4d4f264254c83894d9572c41d995b47c17) - Don't overwrite setImmediate [`6912f95`](https://github.com/mafintosh/mongojs/commit/6912f95620bec3a545f2f527553968b91625a1ac) - Don't run subsequent tests if previous tests fail [`14d3e0c`](https://github.com/mafintosh/mongojs/commit/14d3e0c3ee53159590599b0fd05f047c975ebeb6) - Don't assign while returning [`2a589ae`](https://github.com/mafintosh/mongojs/commit/2a589ae065f5c7855a73222372bed002c9f17d38) - Add standard test [`195ffce`](https://github.com/mafintosh/mongojs/commit/195ffcefb52dba9cbbbd604754c86f8f56e0ae0f) - Add Thomas Watson as contributer [`0945e27`](https://github.com/mafintosh/mongojs/commit/0945e270458647e9cad589d2349b4637b0289335) - Ensure while loops evaluate a conditional expression [`ac9f4db`](https://github.com/mafintosh/mongojs/commit/ac9f4db029e59ad9570ea371a29b88e6dd5c505f) - Upgrade readable-stream to ^2.0.2 [`933eacb`](https://github.com/mafintosh/mongojs/commit/933eacba2c9dd328321726b25f36e5b9c63ebc19) - Remove trailing comma in object literal [`31ea45e`](https://github.com/mafintosh/mongojs/commit/31ea45e01b5e373530d09ac253b3d2378f4d40b3) - Insert proper spaces in ternaries [`60c1036`](https://github.com/mafintosh/mongojs/commit/60c1036af2f0174fb46c951449a98ae248e4de7b) - Disable linter for problematic JavaScript running inside MongoDB [`8973b36`](https://github.com/mafintosh/mongojs/commit/8973b362a1670bb79428eea27e0d91f6af8b5400) - Add space before opening function curly brackets [`560795b`](https://github.com/mafintosh/mongojs/commit/560795b9807441f50dac297e6af9a9582d71dde5) - Fix indentation [`e964661`](https://github.com/mafintosh/mongojs/commit/e964661231e89632e275143515ca3c756ce14e82) - Add standard code style badge to README.md [`a61b451`](https://github.com/mafintosh/mongojs/commit/a61b4515c2866398086892fd119d0fa979d28f39) - remove tip jar [`9924c3b`](https://github.com/mafintosh/mongojs/commit/9924c3bec0946c389eda8993b83616e61c7ce2da) #### [v1.1.0](https://github.com/mafintosh/mongojs/compare/v1.0.2...v1.1.0) > 25 July 2015 - Add support for ScramSHA1 [`#209`](https://github.com/mafintosh/mongojs/pull/209) - Add upsert() method for Bulk.find [`#213`](https://github.com/mafintosh/mongojs/pull/213) - Allow array-based aggregation pipelines [`#204`](https://github.com/mafintosh/mongojs/pull/204) - add support for SCRAM-SHA-1 auth mechanism. [`c9025bb`](https://github.com/mafintosh/mongojs/commit/c9025bb6ff0c9c72f462fd3fe0d8f405277d0e5d) - Fix naming and reference ScamSHA1 via mongodb.ScamSHA1 [`ec3ef7d`](https://github.com/mafintosh/mongojs/commit/ec3ef7da50b0e051779ef33a002c73931b9c6c19) - Added tests for upsert() method [`2bcbed3`](https://github.com/mafintosh/mongojs/commit/2bcbed3262a8d8da6e58dd697c0cfcc421e39ad2) - Add `npm run geotag` script [`772dff2`](https://github.com/mafintosh/mongojs/commit/772dff2d569ec343416318f942617d34dd65df3b) - Add "npm run cover" command using istanbul for coverage and ignore coverage dir [`fa90791`](https://github.com/mafintosh/mongojs/commit/fa90791684ec30c9d3e18450572867efcf8d956d) - Add "Upgrading from 0.x.x to 1.0.x" section [`e1157b0`](https://github.com/mafintosh/mongojs/commit/e1157b04628d83f41b3e2ca3710c2cdec89a7dd8) - Close connection to test closing connections [`7c4cad4`](https://github.com/mafintosh/mongojs/commit/7c4cad497252e41efa24a926bbb941d5f031eccb) - Fix harmony tests and coverage commands by adding --harmony-proxies flag to enable Proxy functionality [`d467340`](https://github.com/mafintosh/mongojs/commit/d46734016f3da23538df41c9bdaf685a6fd53e93) - Split set upsert to true and return this for readability [`5d96ebb`](https://github.com/mafintosh/mongojs/commit/5d96ebbd2ec5b54c69af3377a5d8b1d46b2711d3) - Remove superfluous ; [`2f0c62b`](https://github.com/mafintosh/mongojs/commit/2f0c62ba40f8e7742979c7992045823d4f822f1a) - Remove unused require('each-series') [`d4bf755`](https://github.com/mafintosh/mongojs/commit/d4bf7556f721c275277e6b8b9e4f6e4258ecab49) - Add aggregation pipeline breaking changes to Upgrading from 0.x.x to 1.0.x [`70d6bc5`](https://github.com/mafintosh/mongojs/commit/70d6bc5a7b77fa195d61a30dd51843c48dbcd06b) #### [v1.0.2](https://github.com/mafintosh/mongojs/compare/v1.0.1...v1.0.2) > 27 June 2015 - Add upsert() method for Bulk.find [`#1`](https://github.com/mafintosh/mongojs/pull/1) - Add check for cb undefined in createIndex [`#203`](https://github.com/mafintosh/mongojs/pull/203) - Use cursor.kill instead of cursor.close [`#207`](https://github.com/mafintosh/mongojs/issues/207) - Allow array-base aggregation pipelines [`7dd97fd`](https://github.com/mafintosh/mongojs/commit/7dd97fdd78e1e666695accabd0f10dc499a9a76e) - Update bulk.js [`15c053b`](https://github.com/mafintosh/mongojs/commit/15c053b9ba345222b72c1c771273ed91b29117f7) - Test all branches on Travis-CI [`63a4b7b`](https://github.com/mafintosh/mongojs/commit/63a4b7bce9af260877485faa0486fb620907eb56) - Test against Node.js 0.12 instead of 0.11 on Travis CI [`0b01039`](https://github.com/mafintosh/mongojs/commit/0b0103964028c7e00cdcafcede08d2cac0b19761) - Use Number.MAX_VALUE instead of -1 for tailable cursor retries. [`aebc43c`](https://github.com/mafintosh/mongojs/commit/aebc43cdddda481967f3527fb1cf2036a76ab9c2) - Update to latest mongodb-core. [`030d585`](https://github.com/mafintosh/mongojs/commit/030d585161e6e6454723722550813f0729a939ab) - Use SVG build status from travis master branch builds [`453b522`](https://github.com/mafintosh/mongojs/commit/453b5229811bb8112f336a89c9964d52ed89ae7c) - Add check for cb undefined to prevent calls to ensureIndex with index field and options given but without cb throw an error [`9eae343`](https://github.com/mafintosh/mongojs/commit/9eae343f413135ee1ee5139e40f39afb2fbda050) #### [v1.0.1](https://github.com/mafintosh/mongojs/compare/v1.0.0...v1.0.1) > 16 June 2015 - Update mongodb-core patch level [`#198`](https://github.com/mafintosh/mongojs/pull/198) - Update mongodb-core patch level. [`4443c94`](https://github.com/mafintosh/mongojs/commit/4443c94b27d1b6ca99d992657c4e19a10700e8c0) #### [v1.0.0](https://github.com/mafintosh/mongojs/compare/v1.0.0-beta4...v1.0.0) > 10 June 2015 - Added back tailable cursor support. [`#194`](https://github.com/mafintosh/mongojs/pull/194) - Add license field to package.json [`#195`](https://github.com/mafintosh/mongojs/pull/195) - Update travis to use recent mongodb versions and iojs. [`bf9b801`](https://github.com/mafintosh/mongojs/commit/bf9b80196deffa414a98bf5fe40b24d5e478e03f) #### [v1.0.0-beta4](https://github.com/mafintosh/mongojs/compare/v1.0.0-beta3...v1.0.0-beta4) > 2 May 2015 - Cleanup. Removed unused vars and imports [`#188`](https://github.com/mafintosh/mongojs/pull/188) - Removed unused noop [`0c5698b`](https://github.com/mafintosh/mongojs/commit/0c5698b5c507503916fea867d60f6e0684775640) - Expose ObjectId in module. [`63496e8`](https://github.com/mafintosh/mongojs/commit/63496e8075216dee40e897b682582552d67c3bd8) - Test on io.js [`67235a3`](https://github.com/mafintosh/mongojs/commit/67235a3ae1e1d57d7404b5c13ce84f900c02c2b9) #### [v1.0.0-beta3](https://github.com/mafintosh/mongojs/compare/v1.0.0-beta2...v1.0.0-beta3) > 21 March 2015 - Always use readable-stream. [`f279cbb`](https://github.com/mafintosh/mongojs/commit/f279cbbb01d6ef3cd462006d22ce9fca8ebf004f) #### [v1.0.0-beta2](https://github.com/mafintosh/mongojs/compare/v1.0.0-beta1...v1.0.0-beta2) > 21 March 2015 - Remove unused dependency and stop using cursor._apply. [`23c1a82`](https://github.com/mafintosh/mongojs/commit/23c1a829d1d630aec12afad64a8e221d00cc6e2c) - Update deps. [`4291eec`](https://github.com/mafintosh/mongojs/commit/4291eececd2e54ca6ae810e079bca6a40e3abcac) - Fix foreach. [`c9f5d92`](https://github.com/mafintosh/mongojs/commit/c9f5d92e8e83f6c376c0bd1fefadfa6c77dfd993) - Check for last error on foreach. [`a27cdcc`](https://github.com/mafintosh/mongojs/commit/a27cdcc7fae8e6bc98e3c4fff8b9e7c5429f870d) #### [v1.0.0-beta1](https://github.com/mafintosh/mongojs/compare/v0.18.2...v1.0.0-beta1) > 21 March 2015 - mongodb-core rewrite. [`0324967`](https://github.com/mafintosh/mongojs/commit/0324967490a36b2d8d690561471d01da875d1c2e) - Add some docs for 1.0 with mongodb 2.4 [`a167c18`](https://github.com/mafintosh/mongojs/commit/a167c18b68a8e574a57667497f7e36cd320f8cbd) #### [v0.18.2](https://github.com/mafintosh/mongojs/compare/v0.18.1...v0.18.2) > 2 March 2015 - Update to mongodb 1.4.32 [`#182`](https://github.com/mafintosh/mongojs/pull/182) - Change Travis-CI badge to only show master status [`#177`](https://github.com/mafintosh/mongojs/pull/177) - Allow travis builds for other branches. [`a598537`](https://github.com/mafintosh/mongojs/commit/a598537e3e44cc182e4d31810c842b855d3a1272) #### [v0.18.1](https://github.com/mafintosh/mongojs/compare/v0.18.0...v0.18.1) > 17 January 2015 - Allow to call bulk.update() without callback. Fixes #166. [`#166`](https://github.com/mafintosh/mongojs/issues/166) - Add docs for readPref, Fixes #165 [`#165`](https://github.com/mafintosh/mongojs/issues/165) #### [v0.18.0](https://github.com/mafintosh/mongojs/compare/v0.17.0...v0.18.0) > 9 December 2014 - add events description in readme [`#160`](https://github.com/mafintosh/mongojs/pull/160) - Add test for mapReduce. [`37602dd`](https://github.com/mafintosh/mongojs/commit/37602ddec8118eebd8fe2673cd680ddbf778420d) - Add test for cursor.rewind. [`bf75333`](https://github.com/mafintosh/mongojs/commit/bf75333d4700b26a6a1181c209e6288bb2b38954) - Add sort test. [`5c571ef`](https://github.com/mafintosh/mongojs/commit/5c571ef8651e90b2888bde3b50720de8d74b771b) - Added test for cursor.count. [`38469ec`](https://github.com/mafintosh/mongojs/commit/38469ec0d03880d3e13d7a991b010a3eb0d9459f) - update readme [`9ac4ff6`](https://github.com/mafintosh/mongojs/commit/9ac4ff6f21a8e532223ed4ed9c355723c12bda24) - Test for cursor.forEach [`e7b0bcc`](https://github.com/mafintosh/mongojs/commit/e7b0bccfdbdba2ebe2e8ea67351e8a9734bdbb64) - Add some more docs to the distinct test. [`270d195`](https://github.com/mafintosh/mongojs/commit/270d1958a6d4449b607419d50c4ff699d33a1c20) - Fix example indentiation style. [`2a52649`](https://github.com/mafintosh/mongojs/commit/2a526492465457967a41a49a63488b753a84f1bb) - added cursor.readPref. [`35018a7`](https://github.com/mafintosh/mongojs/commit/35018a7ee10e853800cf0225917899054335c9f0) - Only test on master. [`18f6145`](https://github.com/mafintosh/mongojs/commit/18f6145e1b99518b98aeb59c8f08a34ecbb5257d) - update readme [`34c5315`](https://github.com/mafintosh/mongojs/commit/34c5315989cc94c63d4111919452f1d09e9306ee) - drop 0.8 support. [`ff8d119`](https://github.com/mafintosh/mongojs/commit/ff8d11966e79d99cf1477a5f8547a1b5804d208a) #### [v0.17.0](https://github.com/mafintosh/mongojs/compare/v0.16.0...v0.17.0) > 7 November 2014 - Add test for dropIndexes. [`17d4be5`](https://github.com/mafintosh/mongojs/commit/17d4be5b8c8b3be124a1a2e6ee1f7e67d202f59e) - Add test for aggregate. [`b793b4d`](https://github.com/mafintosh/mongojs/commit/b793b4d010dc8b2ab3873678bb5dad5a1f19ce09) - Add dropIndexes. [`9d01685`](https://github.com/mafintosh/mongojs/commit/9d01685ce2e33663cb0cb192b96a973bd69e26d8) #### [v0.16.0](https://github.com/mafintosh/mongojs/compare/v0.15.1...v0.16.0) > 7 November 2014 - Make aggregate return a stream. Fixes #154. [`#154`](https://github.com/mafintosh/mongojs/issues/154) - Bump driver. [`c533e5a`](https://github.com/mafintosh/mongojs/commit/c533e5a25d7343ef9b2741730548bb8b90f7922a) - Remove toJSON function [`ae77aa6`](https://github.com/mafintosh/mongojs/commit/ae77aa66f4c3f77d6c489ed818f1adfd23949112) #### [v0.15.1](https://github.com/mafintosh/mongojs/compare/v0.15.0...v0.15.1) > 5 October 2014 - Ignore bulk tests in case db version < 2.6 (travis). [`de4f9a4`](https://github.com/mafintosh/mongojs/commit/de4f9a44b6c40dc6aa0b5e35b596a2e9731b63b1) #### [v0.15.0](https://github.com/mafintosh/mongojs/compare/v0.14.2...v0.15.0) > 5 October 2014 - Emit error on connection error. Closes #149 [`#149`](https://github.com/mafintosh/mongojs/issues/149) - Add support for bulk updates. Refs #152 [`a025aa2`](https://github.com/mafintosh/mongojs/commit/a025aa238fa35e02b475f10c0e1cdf6649d7743e) - Docs for bulk updates [`d52e1ea`](https://github.com/mafintosh/mongojs/commit/d52e1eabe168aa2f97bd42f17d494c1c6b64e8e0) - Bump driver. [`76ecb43`](https://github.com/mafintosh/mongojs/commit/76ecb43029e19407b41e4b2a3cc25d5d280812f8) #### [v0.14.2](https://github.com/mafintosh/mongojs/compare/v0.14.1...v0.14.2) > 26 September 2014 - test for distinct [`#150`](https://github.com/mafintosh/mongojs/pull/150) - Update docs. [`02fd31c`](https://github.com/mafintosh/mongojs/commit/02fd31cc652c93e8976d15243f49b6c98f0e43f6) - Bump mongodb. [`43db686`](https://github.com/mafintosh/mongojs/commit/43db686c8643025108e6ac864a83ce1a194640f9) - Add gratipay. [`e3e8bcf`](https://github.com/mafintosh/mongojs/commit/e3e8bcf58c300a7e9d44b2fd63c8016280dca3ab) #### [v0.14.1](https://github.com/mafintosh/mongojs/compare/v0.14.0...v0.14.1) > 28 August 2014 - Add cursor API docs for .rewind() and .destroy() [`#147`](https://github.com/mafintosh/mongojs/pull/147) - Refactor tests so you can run them individually and they exit. [`abab80b`](https://github.com/mafintosh/mongojs/commit/abab80b4c29f81dbcbf313eadfb70dc143af84aa) - Bump driver. [`4a73373`](https://github.com/mafintosh/mongojs/commit/4a733739706cb149683aec1154b4fbda3468d318) - Fix tests for 0.8. [`03b90eb`](https://github.com/mafintosh/mongojs/commit/03b90eb54db911b5315d23b40d0fc9caa99fa6f1) #### [v0.14.0](https://github.com/mafintosh/mongojs/compare/v0.13.1...v0.14.0) > 20 August 2014 - Add API documentation for db.close() [`#146`](https://github.com/mafintosh/mongojs/pull/146) - Give me some space. [`f46c14e`](https://github.com/mafintosh/mongojs/commit/f46c14e19c4367e7a080c7497ec2bb1b7c8d99ae) - Refactor tests to use tape. [`e560204`](https://github.com/mafintosh/mongojs/commit/e560204bf9549394eccd59e59e443529945dd9c5) - Add support to pass a driver db or a mongojs db instead of the connection string. [`940dff5`](https://github.com/mafintosh/mongojs/commit/940dff501812d7fc688b38263c153a468fc57fc4) - If we receive a mongojs instance we connect and recreate the instance, [`94622be`](https://github.com/mafintosh/mongojs/commit/94622bec0c3fb7aafae1b5dcfec2dd2fa868f4f8) - Update docs. [`ebb6b02`](https://github.com/mafintosh/mongojs/commit/ebb6b02c9ba54dc6e3e79152901f7496404aab26) - Restructure the group function to multiple lines. [`d42d7a0`](https://github.com/mafintosh/mongojs/commit/d42d7a0c3cb3a92c0131e21db59ee3561200d0e2) - Minor test refactor. [`f1ded41`](https://github.com/mafintosh/mongojs/commit/f1ded41d579c378f6b746e854deb3f9ffc5091e4) - ocd. [`b5c140c`](https://github.com/mafintosh/mongojs/commit/b5c140c14ec2d209c04301d9f73f5202a0bd5cc8) - Minor refactor. [`a16dd33`](https://github.com/mafintosh/mongojs/commit/a16dd33e2c2b592f129f9d760554397ddce606e7) - Fix travis. [`b2f3bbd`](https://github.com/mafintosh/mongojs/commit/b2f3bbdf9201f98e353a59ed48edfd724068c3d2) - Fix api docs for getCollectionNames. Refs #54 [`79319b4`](https://github.com/mafintosh/mongojs/commit/79319b42a2c6c2cee675bfc3a9fbd40e437cdedd) #### [v0.13.1](https://github.com/mafintosh/mongojs/compare/v0.13.0...v0.13.1) > 25 July 2014 - Update README.md [`#137`](https://github.com/mafintosh/mongojs/pull/137) - Stop using err.lastErrorObject (it's not in the driver anymore). [`da252d9`](https://github.com/mafintosh/mongojs/commit/da252d98e2baaa247b7d58d452e1326a00f57722) - more harmony docs [`b35a744`](https://github.com/mafintosh/mongojs/commit/b35a744942424e3f315e075896a8705f09455251) - bump driver. [`f487584`](https://github.com/mafintosh/mongojs/commit/f487584c91dd01b309b55a58183f2430ebec7975) - revert bump [`8e77037`](https://github.com/mafintosh/mongojs/commit/8e77037de55c8f15a9cc7dd2bbf102ba115b89b6) - bump driver [`1cbaeb2`](https://github.com/mafintosh/mongojs/commit/1cbaeb2cc0be9f9610d8a498cba20ca633780153) #### [v0.13.0](https://github.com/mafintosh/mongojs/compare/v0.12.1...v0.13.0) > 26 April 2014 - Collection proxy with harmony. [`c6e8f5c`](https://github.com/mafintosh/mongojs/commit/c6e8f5c6cf82b0acacc592f7ca121fe71c4718f5) - Run both with and without --harmony on every node version. [`c62133a`](https://github.com/mafintosh/mongojs/commit/c62133a80ea110bfba97ccdc3696da9e0fc8d8c6) - Document the harmony proxy feature. [`8a6fa48`](https://github.com/mafintosh/mongojs/commit/8a6fa48080bc1166dfeb8267ec7a03d70ac31676) - Add node 0.11 to travis. [`1aeaba2`](https://github.com/mafintosh/mongojs/commit/1aeaba2902e9718fb0a49cd7cd94bb50316e345c) #### [v0.12.1](https://github.com/mafintosh/mongojs/compare/v0.12.0...v0.12.1) > 19 April 2014 - ensure optional callbacks for write ops. cc #135 [`20e4b33`](https://github.com/mafintosh/mongojs/commit/20e4b33a9580d6c8f95fea8845be5a0a986815e7) - tweak docs for #135 [`edaae8f`](https://github.com/mafintosh/mongojs/commit/edaae8f39320b177429fe978210917502f363667) - added test for optional callbacks. cc #135 [`d2be4b9`](https://github.com/mafintosh/mongojs/commit/d2be4b93ce37cc355fb0e3e5d1de8112db4a5558) #### [v0.12.0](https://github.com/mafintosh/mongojs/compare/v0.11.1...v0.12.0) > 16 April 2014 - Stop inhereting collection prototype methods. Fixes #132. [`#132`](https://github.com/mafintosh/mongojs/issues/132) - Stop inhereting db prototype methods. Refs #132. [`809252c`](https://github.com/mafintosh/mongojs/commit/809252cd0ea24f5cbe614ac1a2d82547025a77d9) #### [v0.11.1](https://github.com/mafintosh/mongojs/compare/v0.11.0...v0.11.1) > 9 April 2014 - Update docs. All implemented functions are now included. [`bc4f031`](https://github.com/mafintosh/mongojs/commit/bc4f0310141285a96235a847b0b8245fd97cb89a) - First version of API documentation. [`cb3dec2`](https://github.com/mafintosh/mongojs/commit/cb3dec2966cc44aef351ec478717d9abe0bcb720) - Change cursor appply method to support mongo driver 1.4.0. Refs #126 #105 [`a802934`](https://github.com/mafintosh/mongojs/commit/a802934cfa46d7e4569b506d7d363bfad14b2c82) - Rename prototypes. [`536743f`](https://github.com/mafintosh/mongojs/commit/536743fe89e213e6d1ee0b570ecdd30888af75fd) #### [v0.11.0](https://github.com/mafintosh/mongojs/compare/v0.10.1...v0.11.0) > 1 April 2014 - Update License to year range [`#128`](https://github.com/mafintosh/mongojs/pull/128) - Add support for cursor.rewind. Closes #131 [`#131`](https://github.com/mafintosh/mongojs/issues/131) - Add the cursor.size method [`4de6a44`](https://github.com/mafintosh/mongojs/commit/4de6a44805328cffa31f2f2d94cf0e1a78c29745) - Add the cursor.map function [`a3e50ef`](https://github.com/mafintosh/mongojs/commit/a3e50ef13b42c2b6d9874b